aboutsummaryrefslogtreecommitdiff
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
commitb2d6bc30a454c6831730eba322ffa6e2db751129 (patch)
treee42a0a03e5d18b38e43d98564793e41cf5348c48
parent9d86eab84b4169b9083a7b34f70ba9beeaf21537 (diff)
Have set-xcode-analyer report an error if no xcspec file could be found.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164713 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xtools/scan-build/set-xcode-analyzer5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/scan-build/set-xcode-analyzer b/tools/scan-build/set-xcode-analyzer
index de3219ba5b..8ef5faad12 100755
--- a/tools/scan-build/set-xcode-analyzer
+++ b/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()