]> granicus.if.org Git - clang/commitdiff
Set process return code of 1 in set-xcode-analyzer when Xcode needs to be quit. ...
authorTed Kremenek <kremenek@apple.com>
Fri, 11 Jan 2013 21:49:36 +0000 (21:49 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 11 Jan 2013 21:49:36 +0000 (21:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172256 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/set-xcode-analyzer

index a32e6762d9e184260776368ad6d4ba68a358d004..3076b39da04564d7aca64e0da7dde3a97303fcef 100755 (executable)
@@ -76,7 +76,7 @@ def main():
   for x in NSWorkspace.sharedWorkspace().runningApplications():
     if x.localizedName().find("Xcode") >= 0:
       print "(-) You must quit Xcode first before modifying its configuration files."
-      return
+      sys.exit(1)
 
   isBuiltinAnalyzer = False
   if options.path: