From f81b0e387a4ee5aae203910fb2ec46c527e2558c Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 26 Sep 2012 18:19:55 +0000 Subject: [PATCH] Have set-xcode-analyer report an error if no xcspec file could be found. llvm-svn: 164713 --- clang/tools/scan-build/set-xcode-analyzer | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clang/tools/scan-build/set-xcode-analyzer b/clang/tools/scan-build/set-xcode-analyzer index de3219b..8ef5faa 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() -- 2.7.4