title: How can I tell Cppcheck to skip a header file
body: <p>Cppcheck scans all files in a project folder:</p>
  
  <pre><code>c:\projectfolder\main.c
  c:\projectfolder\file.c
  c:\projectfolder\file.h
  c:\projectfolder\file_test.cc
  </code></pre>
  
  <p><code>c:\projectfolder\file_test.cc</code> contains the following code</p>
  
  <pre><code>#include "c:/gtest/gtest.h"
  
  extern "C"
  {
      #include "TMyStruct.h"
  }
  
  TEST(Stack, Overflow)
  {
      TMyStruct unterTest;
      EXPECT_EQ(1, TMyStruct_Init(&amp;unterTest));
      EXPECT_GE(unterTest.variable, 9000);
  }
  </code></pre>
  
  <p>File <code>file_test.cc</code> includes the gtest.h file</p>
  
  <pre><code>C:\gtest\gtest.h
  </code></pre>
  
  <p>All files in C:\gtest\ should not be tested.</p>
  
  <p>I call</p>
  
  <pre><code>cppcheck.exe -ic:\gtest\ c:\projectfolder\ --enable=style --template="SomeError"
  </code></pre>
  
  <p>Errors are found and reported in <code>c:\projectfolder\file_test.cc</code> coming from the included <code>gtest.h</code> (detail: "too many #ifdef configurations").</p>
  
  <p>How do I tell Cppcheck to not look at <code>C:\gtest\gtest.h</code> at all?</p>