[cfe-commits] r162497 - /cfe/trunk/tools/scan-build/ccc-analyzer

Jordan Rose jordan_rose at apple.com
Thu Aug 23 16:16:35 PDT 2012


Author: jrose
Date: Thu Aug 23 18:16:34 2012
New Revision: 162497

URL: http://llvm.org/viewvc/llvm-project?rev=162497&view=rev
Log:
[scan-build] Accept -fno-objc-arc as well as -fobjc-arc.

This is how Xcode lets individual files be marked as non-ARC when the rest
of the project is ARC-enabled, so this is necessary for scan-build xcodebuild.

Patch by Paul Eipper!

Modified:
    cfe/trunk/tools/scan-build/ccc-analyzer

Modified: cfe/trunk/tools/scan-build/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/ccc-analyzer?rev=162497&r1=162496&r2=162497&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/ccc-analyzer (original)
+++ cfe/trunk/tools/scan-build/ccc-analyzer Thu Aug 23 18:16:34 2012
@@ -346,6 +346,7 @@
 
 my %CompilerLinkerOptionMap = (
   '-fobjc-arc' => 0,
+  '-fno-objc-arc' => 0,
   '-fobjc-abi-version' => 0, # This is really a 1 argument, but always has '='
   '-fobjc-legacy-dispatch' => 0,
   '-mios-simulator-version-min' => 0, # This really has 1 argument, but always has '='





More information about the cfe-commits mailing list