]> granicus.if.org Git - clang/commitdiff
Tweak output.
authorTed Kremenek <kremenek@apple.com>
Tue, 9 Feb 2010 18:51:44 +0000 (18:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 9 Feb 2010 18:51:44 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95676 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/set-xcode-analyzer

index 5f7551b7cb8c2ffca7fcf844776c578289704d19..cc068a56adf9bf9c97615985c7844983231964f9 100755 (executable)
@@ -28,14 +28,14 @@ def ModifySpec(path, pathToChecker):
           line = "".join([m.group(0), pathToChecker, '";\n'])
       t.write(line)
   t.close()
-  print "(+)", path
+  print "(+) processing:", path
   try:
     shutil.copy(t.name, path)
     os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
   except IOError, why:
-    print "\n    Cannot update file:", why, "\n"
+    print "    (-) Cannot update file:", why, "\n"
   except OSError, why:
-    print "\n    Cannot update file:", why, "\n"
+    print "    (-) Cannot update file:", why, "\n"
   os.unlink(t.name)
 
 def main():
@@ -54,21 +54,20 @@ def main():
   # determine if Xcode is running
   for x in NSWorkspace.sharedWorkspace().runningApplications():
     if x.localizedName().find("Xcode") >= 0:
-      print "You must quit Xcode first before modifying its configuration files."
+      print "(-) You must quit Xcode first before modifying its configuration files."
       return
 
   if options.path:
     # Expand tildes.
     path = os.path.expanduser(options.path)
     if not path.endswith("clang"):
-      print "Using Clang bundled with checker build:", path
+      print "(+) Using Clang bundled with checker build:", path
       path = os.path.join(path, "bin", "clang");
     else:
-      print "Using Clang located at:", path
+      print "(+) Using Clang located at:", path
   else:
-    print "Using the Clang bundled with Xcode"
+    print "(+) Using the Clang bundled with Xcode"
     path = options.default
-  print ""
   
   for x in FindClangSpecs('/Developer'):
     ModifySpec(x, path)