Python 3 script to filter lcov output and remove function signature lines that are never report as hit.
The lcov test coverage utility is designed to work with gcc and has some issued with running on binaries generated by the llvm compiler. One of these issues is that function signatures are output as lines that should be hit. However, while the binary is running those function signature lines are never registered as hit. Here's a simple python script to filter those lines from the lcov output.
remove-function-lines.py lcov_output.info cleaned_output.info
Check out this issue from the lcov project linux-test-project/lcov#30