title: How to make the Clang Static Analyzer output its working from command line?
body: <p>I'm running Clang 3.4 on Ubuntu 12.10 (from <a href="http://llvm.org/apt/" rel="noreferrer">http://llvm.org/apt/</a>). I ran the analyzer (clang --analyze) over some code, and it found a couple of issues:</p>
  
  <pre><code>Blah.C:429:9: warning: Declared variable-length array (VLA) has zero size
          unsigned char separatedData[groupDataLength];
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
  </code></pre>
  
  <p>But the specific issue isn't important. I want to know the steps of how it came to that conclusion (the code is complex enough for me not to see it within 15 mins).</p>
  
  <p>I see a screenshot from the Clang site that shows steps of working viewed in a web browser:</p>
  
  <p><img src="https://clang-analyzer.llvm.org/images/analyzer_html.png" alt="screenshot"></p>
  
  <p>That's probably obtained from Xcode.</p>
  
  <p><strong>The question is: how do I get Clang to output such steps of working from the command line? Or even output results to a browser if it so wishes?</strong> This would make the analyzer significantly more useful, and make fixing things much quicker.</p>
  
  <p>(I have noticed that GCC's documentation is very excellent, but Clang/LLVM's documentation is very poor. I've tried "clang --analyze -Xanalyzer '-v'" as a stab in the dark to tell the analyzer to be more verbose -- the -Xanalyzer switch was from the man pages.)</p>