diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2019-05-29 18:49:31 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2019-05-29 18:49:31 +0000 |
commit | e8b29c00dd0724c5dc06e981b2dc4fb391784178 (patch) | |
tree | 61dac3387612bfb6443c1cffb2046e1a0757ee03 /clang/utils/analyzer/SATestBuild.py | |
parent | 8a88d6aaaa7e2a56a3df5dffb795d305361ee9b9 (diff) | |
download | bcm5719-llvm-e8b29c00dd0724c5dc06e981b2dc4fb391784178.tar.gz bcm5719-llvm-e8b29c00dd0724c5dc06e981b2dc4fb391784178.zip |
[analyzer] SATestBuild.py: Use driver for analyzing single-file tests.
Don't bother coming up with a -cc1 run-line ourselves.
This, in particular, gets rid of a macOS-specific code path.
llvm-svn: 362009
Diffstat (limited to 'clang/utils/analyzer/SATestBuild.py')
-rwxr-xr-x | clang/utils/analyzer/SATestBuild.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py index 1c96cd88381..691ded80a1e 100755 --- a/clang/utils/analyzer/SATestBuild.py +++ b/clang/utils/analyzer/SATestBuild.py @@ -343,18 +343,13 @@ def runAnalyzePreprocessed(Args, Dir, SBOutputDir, Mode): BuildScript)) raise Exception() - CmdPrefix = Clang + " -cc1 " + CmdPrefix = Clang + " --analyze " - # For now, we assume the preprocessed files should be analyzed - # with the OS X SDK. - SDKPath = SATestUtils.getSDKPath("macosx") - if SDKPath is not None: - CmdPrefix += "-isysroot " + SDKPath + " " - - CmdPrefix += "-analyze -analyzer-output=plist -w " - CmdPrefix += "-analyzer-checker=" + Checkers + CmdPrefix += "--analyzer-output plist " + CmdPrefix += " -Xclang -analyzer-checker=" + Checkers CmdPrefix += " -fcxx-exceptions -fblocks " - CmdPrefix += " -analyzer-config %s " % generateAnalyzerConfig(Args) + CmdPrefix += " -Xclang -analyzer-config -Xclang %s "\ + % generateAnalyzerConfig(Args) if (Mode == 2): CmdPrefix += "-std=c++11 " |