]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164713 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/set-xcode-analyzer

index de3219ba5bb800cd0cfe8afe36a84fdd985bf0a4..8ef5faad1295fc3c47ecdb24700b3bb1985f2819 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()