I would like to run the clang static analyzer from the command line, and have a per-project breakdown of the results. In order to do that, each xcodebuild invocation needs to be wrapped in a call to scan-build (http://clang-analyzer.llvm.org/scan-build.html). I have a patch which adds a new 'analyze' target to allow for this.
Created attachment 235132 [details]
I've attached a patch to accomplish this.
Comment on attachment 235132 [details]
Attachment 235132 [details] did not pass mac-wk2-ews (mac-wk2):
New failing tests:
Created attachment 235141 [details]
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-10 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 235150 [details]
Updated patch to output static analysis to the command line if PATH_TO_SCAN_BUILD is not set.
Comment on attachment 235150 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=235150&action=review
Unintentional blank lined added?
> + $(SCRIPTS_PATH)/set-webkit-configuration --release
It would be nice if we could support analyze with --debug builds as well. Maybe add a STYLE=debug argument to the make command such that unset STYLE defaults to 'release', but lets you override to 'debug'.
This can be added later, though.
Was this landed?
Yes, this was landed.