[cfe-commits] r164713 - /cfe/trunk/tools/scan-build/set-xcode-analyzer
Ted Kremenek
kremenek at apple.com
Wed Sep 26 11:19:55 PDT 2012
Author: kremenek
Date: Wed Sep 26 13:19:55 2012
New Revision: 164713
URL: http://llvm.org/viewvc/llvm-project?rev=164713&view=rev
Log:
Have set-xcode-analyer report an error if no xcspec file could be found.
Modified:
cfe/trunk/tools/scan-build/set-xcode-analyzer
Modified: cfe/trunk/tools/scan-build/set-xcode-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/set-xcode-analyzer?rev=164713&r1=164712&r2=164713&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/set-xcode-analyzer (original)
+++ cfe/trunk/tools/scan-build/set-xcode-analyzer Wed Sep 26 13:19:55 2012
@@ -85,8 +85,13 @@
# 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()
More information about the cfe-commits
mailing list