tenta4
tenta4

Reputation: 312

llvm-cov shows braces as uncovered

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:

enter image description here

While with gcc it worked as expected

enter image description here

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

Answers (1)

Henry Cox
Henry Cox

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

Related Questions