title: How to specify pass analysis ("-Rpass", ...) in Clang for a specific file?
body: <p>I want to pass to Clang something like <code>-Rpass-analysis=loop-vectorize</code> for a specific translation unit regardless of command line options.</p>
  
  <p>Somewhere (I <em>think</em>, but can't find it now) I'd read that the way to do it was:</p>
  
  <pre><code>#pragma clang diagnostic push
  #pragma clang diagnostic "-Rpass-analysis=loop-vectorize"
  // Code
  #pragma clang diagnostic pop
  </code></pre>
  
  <p>for example. However, Clang complains that </p>
  
  <blockquote>
    <p>pragma diagnostic expected 'error', 'warning', 'ignored', 'fatal', 'push', or 'pop' [-Wunknown-pragmas]</p>
  </blockquote>
  
  <p>Is there any way to achieve this without build system help?</p>