title: If I use g++ as my compiler, how do I scan a c++ file with the clang static analyzer?
body: <p>I use g++ to compile my C++ project.  When I try to use the <a href="http://clang-analyzer.llvm.org/index.html" rel="nofollow">clang static analyzer</a> (<a href="http://clang-analyzer.llvm.org/scan-build.html" rel="nofollow">scan-build</a>) to check my code, I get an error:</p>
  
  <pre><code>&gt;&gt; scan-build g++ main.cpp
  could not find clang line
  </code></pre>
  
  <p>How do I use the scan-build tool with g++?</p>