From: Artem Dergachev Date: Tue, 12 May 2020 19:43:32 +0000 (+0300) Subject: [analyzer] SATestBuild.py: Fix support for #NOPREFIX. X-Git-Tag: llvmorg-12-init~6257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11c8c2a551c53db5ecf8c1f253b1a49d5e98324f;p=platform%2Fupstream%2Fllvm.git [analyzer] SATestBuild.py: Fix support for #NOPREFIX. Regressed in ec2d93c. --- diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py index 38273af..347f1e2 100755 --- a/clang/utils/analyzer/SATestBuild.py +++ b/clang/utils/analyzer/SATestBuild.py @@ -298,7 +298,7 @@ def runScanBuild(Args, Dir, SBOutputDir, PBuildLogFile): SBPrefix = "scan-build " + SBOptions + " " for Command in SBCommandFile: Command = Command.strip() - if len(Command) == 0 or Command.startswith("#"): + if len(Command) == 0: continue # Custom analyzer invocation specified by project. @@ -311,6 +311,9 @@ def runScanBuild(Args, Dir, SBOutputDir, PBuildLogFile): ExtraEnv['ANALYZER_CONFIG'] = generateAnalyzerConfig(Args) continue + if Command.startswith("#"): + continue + # If using 'make', auto imply a -jX argument # to speed up analysis. xcodebuild will # automatically use the maximum number of cores.