Hello,
If you run OpenCppCoverage with --verbose, you can see in the log which lines are ignored by the option --optimized_build (Search for "Optimized build support ignores line").
There is one known issue as explained in the documentation: "In rare cases, this heuristic can exclude a valid line when you rethrow an exception in a catch block."
I hope this will help,
OpenCppCoverage
You can see surprising coverage results when the target is compiled with optimization because there can be a big difference between the source code and the generated code.You should have the same behavior as if you try to debug an optimized code. If you can put a breakpoint on a line in an optimized code, OpenCppCoverage should be able to consider this line too.
If you run OpenCppCoverage with --verbose, you can see in the log which lines are ignored by the option --optimized_build (Search for "Optimized build support ignores line").
There is one known issue as explained in the documentation: "In rare cases, this heuristic can exclude a valid line when you rethrow an exception in a catch block."
I hope this will help,
OpenCppCoverage






