Open ja-b opened 5 years ago
This is caused by this line: https://github.com/zero9178/C-Cpp-Coverage-for-CLion/blob/066cbcec99267b79c46fb16d896786a3ab542a70/src/main/kotlin/net/zero9178/cov/data/LLVMCoverageGenerator.kt#L167
funcStart is returning -1 which means that when trying to calculate branch coverage it somehow didn't find the function. This could be caused by an incorrect expression inside the filter function above but I have no clue. Easiest way would be to skip the function if funcStart is negative but that is probably the lazy and incorrect solution and the problem is somewhere deeper.
Do you by any chance have a C or C++ source file(s) that I could compile and run to reproduce this issue?
Sure, I'll try to run with more isolated cases and send one of those your way.
C C++ Coverage-2019.2.0.zip I have created a version of the plugin that should send you a notification of what the function is called right before the exception happens. Should help you find the function causing it and hopefully isolate the case
Getting the current exception at the time of coverage report generation on clang 8 and 9.