Exclude the header files coverage while doing the unitests for .cpp files using lcov
问题 I have generated the html code coverage for unittest. The problem is that it generates the code coverage for everything that is defined in the include preprocessor. The codecoverage for the unittest is inside the unitTest link of the code coverage report. I only need the unitTest I also remove everything else and keep the gcda and gcno files of the test file before generating the code coverage but it still doesnot help. The code that does this is : find obj/ ! -name '*_unittests*' -type f