From: Ted Kremenek Date: Wed, 26 Sep 2012 18:19:55 +0000 (+0000) Subject: Have set-xcode-analyer report an error if no xcspec file could be found. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2d6bc30a454c6831730eba322ffa6e2db751129;p=clang 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 --- 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()