summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-09-26 18:19:55 +0000
committerTed Kremenek <kremenek@apple.com>2012-09-26 18:19:55 +0000
commitf81b0e387a4ee5aae203910fb2ec46c527e2558c (patch)
treea7c992330ad54d741bc3cc009602cc687a281ce0
parent66dfa34404165530e7daa13274c1272193814a73 (diff)
downloadbcm5719-llvm-f81b0e387a4ee5aae203910fb2ec46c527e2558c.tar.gz
bcm5719-llvm-f81b0e387a4ee5aae203910fb2ec46c527e2558c.zip
Have set-xcode-analyer report an error if no xcspec file could be found.
llvm-svn: 164713
-rwxr-xr-xclang/tools/scan-build/set-xcode-analyzer5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/tools/scan-build/set-xcode-analyzer b/clang/tools/scan-build/set-xcode-analyzer
index de3219ba5bb..8ef5faad129 100755
--- a/clang/tools/scan-build/set-xcode-analyzer
+++ b/clang/tools/scan-build/set-xcode-analyzer
@@ -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()
OpenPOWER on IntegriCloud