]> granicus.if.org Git - clang/commitdiff
Fix set-xcode-analyzer to only modify the ExecPath for the analyzer when using -...
authorTed Kremenek <kremenek@apple.com>
Sat, 5 Jan 2013 07:31:54 +0000 (07:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 5 Jan 2013 07:31:54 +0000 (07:31 +0000)
Turns out that the ExecPath for the ObjC migrator would also get set.

Fixes <rdar://problem/12961769>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171607 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/set-xcode-analyzer

index e76e30446763a543811c4438f6672366226e341c..a32e6762d9e184260776368ad6d4ba68a358d004 100755 (executable)
@@ -45,6 +45,8 @@ def ModifySpec(path, isBuiltinAnalyzer, pathToChecker):
         m = re.search('^(\s*ExecPath\s*=\s*")', line)
         if m:
           line = "".join([m.group(0), pathToChecker, '";\n'])
+          # Do not modify further ExecPath's later in the xcspec.
+          foundAnalyzer = False
       t.write(line)
   t.close()
   print "(+) processing:", path