I'm starting to work with llvm-cov to produce coverage statistics for my project. llvm-cov has several categories: line coverage, function coverage and region coverage. But they all consider only instantiated functions, functions which are not instantiated are simply ignored. This way it is easy to get close to 100% coverage for files which have a low percentage of instantiated functions, which is not what I want. Is it possible to make llvm-cov consider even uninstantiated functions or make it produce separate coverage statistics?
llvm-cov: statistics for uninstantiated functions
443 Views Asked by Jakub Klinkovský At
1
There are 1 best solutions below
Related Questions in CODE-COVERAGE
- oss-fuzz does not cover the code after if - else in C code
- How to correctly generate an HTML report of coverage with grcov
- Getting a total line, branch, statement and function count per file in a TypeScript project
- xcbuild didn't run tests even though it can be run from XCode
- pytest command used in gitlab CICD pipeline does not automatically pick test_* script and throws error "CoverageWarning: No data was collected."
- How to check branch coverage in Bullseye Coverage?
- Dotnet solution: Code coverage cannot exclude modules/assemblies
- codecov doesn't find any reports
- VSTest branch coverage missing on fixed statement
- Pytest-cov: How can I increase coverage?
- system-verilog - cross cover between generate-loop instances
- Sonar showing condition always false error though it is not
- Multiple instances of covergroup based on parameter
- Code Coverage not working in CLion for linux
- For each java class, output the contributing tests (which cover that class) to a JSON report
Related Questions in LLVM-COV
- How to export llvm-cov as both html and json?
- May I use an already generated artifact from cargo build to run cargo-llvm-cov without recompiling again?
- Why `llvm-cov export` output a very large size lcov file? And what dose the content of lcov mean?
- CMake custom command formatting issue
- llvm-cov shows braces as uncovered
- llvm-cov gcov: for the -b option: may only occur zero or one times
- lld-link: warning: Cannot use debug info for clang_rt.profile-i386.lib
- How to collect Rust code coverage when running remote tests?
- Create zero-coverage baseline for all files with llvm-cov
- xcrun llvm-cov show: No coverage data found
- How to resolve unit test crash when code coverage is enabled on Xcode 11.4
- llvm-cov fails to generate report when run on cloud GitLab CI
- How is llvm-cov installed on Ubuntu 18.04?
- llvm-cov: statistics for uninstantiated functions
- How to read llvm-cov json format?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
At the moment, unfortunately not. This is a missing capability in llvm-cov.
The reason for this is that clang does not emit any code for unspecialized templates, and the coverage generation logic depends on clang emitting code for a function. This is a weird limitation. The compiler does have enough information to describe these templates.
Edit: Of course, another point to consider is that C++ translation units tend to contain absolutely enormous amounts of unspecialized/uninstantiated templates, and if the compiler were to emit coverage mapping regions for each of these, compile-time and binary size would likely regress massively.