title: Disabling clang-tidy diagnostic
body: <p>I'm trying to set up <code>clang-tidy</code> for enforcing naming conventions in a C project. This project is composed of multiple external sources and uses a plain makefile environment, thus no tool like <code>cmake</code> or <code>bear</code> is available to generate a compilation database.</p>
  
  <p>This is also what I want: Using the custom environment I'd like to selectively invoke <code>clang-tidy</code> for each file that should be checked.</p>
  
  <p>I was configuring the tool, mainly for the check <code>readability-identifier-naming</code>. For testing I have a <code>.c</code> and <code>.h</code> file, both in the same directory, with the following content:</p>
  
  <p><strong>dummy.c</strong></p>
  
  <pre><code>#include "dummy.h"
  #include "MISSING_module.h"
  
  // EOF
  </code></pre>
  
  <p><strong>dummy.h</strong></p>
  
  <pre><code>#ifndef _DUMMY_H_
  #define _DUMMY_H_
  
  #include &lt;stdlib.h&gt;
  
  // EOF
  </code></pre>
  
  <p>The command I'm invoking is</p>
  
  <pre><code>clang-tidy dummy.c -checks='-*,readability-identifier-naming' -- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON`
  </code></pre>
  
  <p>However, <code>clang-tidy</code> is still following the <code>#include</code> within the C-file and checks for existing headers:</p>
  
  <pre><code>dummy.h:4:10: error: 'stdlib.h' file not found [clang-diagnostic-error]
  #include &lt;stdlib.h&gt;
            ^
  Found compiler error(s).
  </code></pre>
  
  <p>Is there any way to disable this? <code>clang-diagnostic-error</code> is not even enabled as check. Or are there alternative tools I should know of to enforce naming conventions?</p>