[cfe-commits] r164712 - /cfe/trunk/tools/scan-build/set-xcode-analyzer

Ted Kremenek kremenek at apple.com
Wed Sep 26 11:13:03 PDT 2012


Author: kremenek
Date: Wed Sep 26 13:13:03 2012
New Revision: 164712

URL: http://llvm.org/viewvc/llvm-project?rev=164712&view=rev
Log:
Make set-xcode-analyzer more tolerant of the naming differenes reported by xcode-select.

Modified:
    cfe/trunk/tools/scan-build/set-xcode-analyzer

Modified: cfe/trunk/tools/scan-build/set-xcode-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/set-xcode-analyzer?rev=164712&r1=164711&r2=164712&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/set-xcode-analyzer (original)
+++ cfe/trunk/tools/scan-build/set-xcode-analyzer Wed Sep 26 13:13:03 2012
@@ -80,7 +80,7 @@
   except AttributeError:
     # Fall back to the default install location when using Python < 2.7.0
     xcode_path = "/Developer"
-  if (re.search("Xcode.app", xcode_path)):
+  if (xcode_path.find(".app/") != -1):
     # Cut off the 'Developer' dir, as the xcspec lies in another part
     # of the Xcode.app subtree.
     xcode_path = os.path.dirname(xcode_path)





More information about the cfe-commits mailing list