title: Getting clang-tidy to fix header files
body: <p>I'm in the process of moving a project currently compiling with gcc to clang,
  and have a bunch of warnings that gcc didn't generate (<code>-Winconsistent-missing-override</code>). <code>clang-tidy</code> works for fixing these errors in the <code>*.cpp</code> files, however it doesn't touch the <code>hpp</code> files because a compile command wasn't found in the database (as I would expect).</p>
  
  <p>I'm using <code>ninja</code> to build the project and <code>ninja -t compdb cc cxx &gt; .build/compile_commands.json</code> to generate the compilation database. I've tried running:</p>
  
  <pre><code>clang-tidy-3.6 -p .build/      \
        $(find src/ -name *.cpp) \
        $(find src/ -name *.hpp) \
        --checks=misc-use-override --fix
  </code></pre>
  
  <p>to fix the errors. It refuses to touch header files complaining:</p>
  
  <pre><code>Skipping .../src/header/file.hpp. Compile command not found.
  </code></pre>