diff options
author | Devin Coughlin <dcoughlin@apple.com> | 2015-09-16 01:52:32 +0000 |
---|---|---|
committer | Devin Coughlin <dcoughlin@apple.com> | 2015-09-16 01:52:32 +0000 |
commit | f3695c87cd17d4e108c668c6759523aa80abcbc4 (patch) | |
tree | be9572b71003b4e2e6f522f76c7641cb0a0a9afb /clang/utils/analyzer/SATestBuild.py | |
parent | 3ca7a3eb414d18f748255b532c6b399b12949541 (diff) | |
download | bcm5719-llvm-f3695c87cd17d4e108c668c6759523aa80abcbc4.tar.gz bcm5719-llvm-f3695c87cd17d4e108c668c6759523aa80abcbc4.zip |
[analyzer] SATestBuild.py: Move additional checkers logic so SATestAdd.py can use it as well.
Move the logic looking for additional checkers in the SA_ADDITIONAL_CHECKERS
environmental variable from SATestBuild's main() to runScanBuild(). This allows
SATestAdd.py to use the variable as well. Without it, we won't include
additional checkers when building reference results for the build bot.
Differential Revision: http://reviews.llvm.org/D12891
llvm-svn: 247767
Diffstat (limited to 'clang/utils/analyzer/SATestBuild.py')
-rwxr-xr-x | clang/utils/analyzer/SATestBuild.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py index 440b2ec956b..21cf4524bc7 100755 --- a/clang/utils/analyzer/SATestBuild.py +++ b/clang/utils/analyzer/SATestBuild.py @@ -210,9 +210,14 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile): if not os.path.exists(BuildScriptPath): print "Error: build script is not defined: %s" % BuildScriptPath sys.exit(-1) + + AllCheckers = Checkers + if os.environ.has_key('SA_ADDITIONAL_CHECKERS'): + AllCheckers = AllCheckers + ',' + os.environ['SA_ADDITIONAL_CHECKERS'] + SBOptions = "--use-analyzer " + Clang + " " SBOptions += "-plist-html -o " + SBOutputDir + " " - SBOptions += "-enable-checker " + Checkers + " " + SBOptions += "-enable-checker " + AllCheckers + " " SBOptions += "--keep-empty " # Always use ccc-analyze to ensure that we can locate the failures # directory. @@ -614,7 +619,4 @@ if __name__ == '__main__': IsReference = True UpdateSVN = True - if os.environ.has_key('SA_ADDITIONAL_CHECKERS'): - Checkers = Checkers + ',' + os.environ['SA_ADDITIONAL_CHECKERS'] - testAll(IsReference, UpdateSVN, Strictness) |