Open ghost opened 3 years ago
Can you link to this file? Could be a bug. Or maybe something weird going on with macros.
I've had similar problems with other inline functions but it doesn't look like any one instantiation of it would be missing coverage - not according to the number of executions per line shown?
There are only 54 lines of code and all of them have coverage. So how can it only be 60% covered?
This definitely looks like a bug in LLVM's coverage tooling to me. I don't know if we have the cycles to fix this. I suspect it only happens with inline functions so hopefully it isn't common enough to adversely impact many users.
Great! Yeah I don't care I just thought it was strange. Should this be reported to LLVM or just ignored?
Probably, but the reproducer will be pretty non-minimal here (ie: 1. do coverage build of uwebsockets 2. Do coverage run of all fuzzers. 3. Merge profdata files. 4. Generate report). @morehouse What do you think?
I think the bug is unlikely to be fixed upstream without a small reproducer.
I have one file that has coverage
according to the Coverage Report. Looking at the source file and the indication of calls per line shows that the file is pretty much 100% line covered too? What am I missing? I can't get the line coverage up.