[PATCH] D121390: [llvm-cov gcov] Fix calculating coverage statistics of template functions
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 13 07:14:05 PDT 2022
ikudrin added inline comments.
================
Comment at: llvm/test/tools/llvm-cov/gcov/tmpl.cpp:14
+int main() {
+ return test<1>(1) +
+ test<1>(2) +
----------------
MaskRay wrote:
> It's useful to dump `llvm-cov gcov -t` and test the line counts for the three lines, to better leverage this test file.
I'm not sure I follow you. The patch fixes and the test checks the coverage statistics for template functions (`-f`), not execution counts (`-t`).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121390/new/
https://reviews.llvm.org/D121390
More information about the llvm-commits
mailing list