I am using gcov and gcovr to generate my code test coverage (the tests are done with google test++). So, I compile with the -ftest-coverage -fprofile-arcs options, and then I run gcovr (which itself runs gcov). However, on my output, I have the cpp files, with a cover of 100%, but also the .h files, even if they do not have executable code, and hence they have a 0% coverage output.
This 0% does not mean anything, and hence, I would like to remove the .h files from the coverage output. I can't find anything about that...
I already try to add : -e "*.h" to the govr options, to exclude files with .h extension, but it doesn't work (it actually excludes everything...).
Does anybody have an idea ??
Thank you !!