From: Chris Lattner
In the first case scan-build analyzes the code of a project built -with make, andin the second case scan-build analyzes a project +with make, and in the second case scan-build analyzes a project built using xcodebuild. In general, the format is:
@@ -100,7 +100,7 @@ built using xcodebuild. In general, the format is:
Operationally, scan-build literally runs
$ scan-build make -j4 @@ -225,7 +225,7 @@ what it's doing; two -v options emit more information. Redirecting the output of scan-build to a text file (make sure to redirect standard error) is useful for filing bug reports against scan-build or the analyzer, as we can see the exact options (and files) passed to the analyzer. -For more comprehendible logs, don't perform a parallel build. +For more comprehensible logs, don't perform a parallel build.Debugging the Analyzer