Skip to content

VSCode extension to generate lcov from profraw/gcda files

License

Notifications You must be signed in to change notification settings

sr-tream/vscode-lcov-generator

Repository files navigation

Lcov Generator

This extension generate lcov.info files from LLVM profraw* and GNU gcda files.

By default lcov file generates in folder with build artifacts**, but folder may be specified in settings***

* When present default.profraw file - it used instead other profraw files. When default.profraw missed, all profraw files will be merged.

** Path to build artifacts may be specified in settings and automaticly extracted from CMake and launch.json

*** For multiple artifacts coverage data merged in one file to save in one folder

To view generated data in VSCode, you may use Coverage Gutters

Motivation

This plugin is fork of Gcov viever cmake. Gcov viewer cmake provide integration of Gcov Viewer with CMake via MS CMake-tools extension - this solution works fine, but we locked on CMake and (important) GNU toolkit, because LLVM generates too old gcov data, compatible with GCC 4.2.

This plugin generates lcov - so it can work with LLVM profraw files. Also this plugin can import configurations from launch.json and can work with non-cmake build systems.

About

VSCode extension to generate lcov from profraw/gcda files

Resources

License

Stars

Watchers

Forks

Packages

No packages published