title: Inline way to disable clang-tidy checks
body: <p>I'm trying to set up clang-tidy for a project. I'd like to be able to have clean output, and encourage the use of -fix mode where possible. However, there are individual cases where an exception is needed.</p>
  
  <p>Much as it is possible to use</p>
  
  <pre><code>#pragma clang diagnostic push
  #pragma clang diagnostic ignored "-Wreserved-id-macro"
  // Code that is being specially exempted
  #pragma clang diagnostic pop
  </code></pre>
  
  <p>for the equivalent case where one wants to locally disable a compiler warning, is it possible to do something similar from clang-tidy?</p>
  
  <p>I have tried </p>
  
  <pre><code>#pragma clang diagnostic push
  #pragma clang diagnostic ignored "readability-identifier-naming"
  // Code that is being specially exempted
  #pragma clang diagnostic pop
  </code></pre>
  
  <p>and also with <code>clang</code> replaced with <code>clang-tidy</code>. Unfortunately when using <code>clang</code> as the pragma target and compiling with regular clang, I get the compilation warning </p>
  
  <pre><code>warning: pragma diagnostic expected option name (e.g. "-Wundef") [-Wunknown-pragmas]
  </code></pre>
  
  <p>and  </p>
  
  <pre><code>warning: unknown pragma ignored [clang-diagnostic-unknown-pragmas]
  </code></pre>
  
  <p>when compiling if I use <code>clang-tidy</code> in place of <code>clang</code>. Neither make an impact on what <code>clang-tidy</code> itself outputs when run over the source.</p>
  
  <p>This is with <code>clang</code> and <code>clang-tidy</code> 3.8 on x86_64 Linux.</p>