From c647a6df7274476171490f4d2bccdf5c889a1c85 Mon Sep 17 00:00:00 2001 From: Anton Yartsev Date: Wed, 16 Sep 2015 18:12:15 +0000 Subject: [analyzer] Improved behavior if Clang was not found, part II - scan-build help: display 'Could not query Clang for the list of available checkers.' + the reason why it happened so if clang was not found. - display requested/forced help in case of --use-analyzer=Xcode. llvm-svn: 247828 --- clang/tools/scan-build/scan-build | 84 +++++++++++++++++++++++---------------- 1 file changed, 50 insertions(+), 34 deletions(-) (limited to 'clang/tools/scan-build') diff --git a/clang/tools/scan-build/scan-build b/clang/tools/scan-build/scan-build index 0e7dcc1f830..4b34256e180 100755 --- a/clang/tools/scan-build/scan-build +++ b/clang/tools/scan-build/scan-build @@ -1100,6 +1100,7 @@ sub RunBuildCommand { sub DisplayHelp { + my $ArgClangNotFoundErrMsg = shift; print < [build options] @@ -1348,6 +1349,12 @@ ENDTEXT } close PS; } + else { + print " *** Could not query Clang for the list of available checkers.\n"; + if (defined $ArgClangNotFoundErrMsg) { + print " *** Reason: $ArgClangNotFoundErrMsg\n"; + } + } print <