Reputation: 312
Our project migrated from gcc
to clang
so we changed coverage tool from gcov
to llvm-cov
.
It's led to many false-positives of this type:
While with gcc it worked as expected
I tried clang-12, 15, 16 and results are equal
Capturing coverage data from /home/user/build_release
Found LLVM gcov version 16.0.0, which emulates gcov version 4.2.0
Are there any ideas what can I do with this uncovered braces?
PS: of course I disabled optimization with -O0 flag
Upvotes: 1
Views: 240
Reputation: 91
That looks like genhtml output. You can use 'genhtml --filter brace ...' to remove those artifacts. (There are other filters that you can read about in the genhtml man page.)
Upvotes: 0