1

I'm experimenting with a language (ooc) that transpiles into C and is then compiled using gcc. I want to check code coverage for a project written in this language and display it using lcov and genhtml. The C code has #line references throughout the file pointing to the corresponding file in the original source.

So far so good, I have it setup and working. But lcov seems to generate results for both the orignal source and the generated C code, which bloats the output.

How can I hide results for the C code?

4

1 回答 1

0

我自己设法解决了这个问题。

在初始lcov调用之后,但之前genhtml,调用例如:

lcov --remove <info-file> '/usr/include/*' -o <info-file>

lcov 在初始步骤中生成<info-file>的文件在哪里。.info

于 2016-01-12T13:16:13.367 回答