title: When using gcov, is there a way to avoid instrumenting the header files included in the cpp file?
body: <p>I instrument my productive code with the flags <code>-fprofile-arcs</code> and <code>-ftest-coverage</code>, then I test this code with unit tests. For the unit tests to compile and run, I am forced to make some fakes and mocks. </p>
  
  <p>I can control during compilation which cpp files are instrumented and which ones are not. But, when compiling my productive code with flags for instrumentation, the code for the fakes and mocks will also be included through the header files.</p>
  
  <p><strong><em>Is there a way to avoid instrumenting the header files included in the cpp files?</em></strong>, for example using some attribute, pre processor directive or compilation flag.</p>