Have set-xcode-analyer report an error if no xcspec file could be found.

llvm-svn: 164713
This commit is contained in:
Ted Kremenek 2012-09-26 18:19:55 +00:00
parent 66dfa34404
commit f81b0e387a
1 changed files with 5 additions and 0 deletions

View File

@ -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()