Have set-xcode-analyer report an error if no xcspec file could be found.
authorTed Kremenek <kremenek@apple.com>
Wed, 26 Sep 2012 18:19:55 +0000 (18:19 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 26 Sep 2012 18:19:55 +0000 (18:19 +0000)
llvm-svn: 164713

clang/tools/scan-build/set-xcode-analyzer

index de3219b..8ef5faa 100755 (executable)
@@ -85,8 +85,13 @@ def main():
     # of the Xcode.app subtree.
     xcode_path = os.path.dirname(xcode_path)
   
+  foundSpec = False
   for x in FindClangSpecs(xcode_path):
+    foundSpec = True
     ModifySpec(x, path)
+    
+  if foundSpec == False:
+      print "(-) No compiler configuration file was found.  Xcode's analyzer has not been updated."
 
 if __name__ == '__main__':
   main()