[clang] 11c8c2a - [analyzer] SATestBuild.py: Fix support for #NOPREFIX.
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Tue May 12 12:44:40 PDT 2020
Author: Artem Dergachev
Date: 2020-05-12T22:43:32+03:00
New Revision: 11c8c2a551c53db5ecf8c1f253b1a49d5e98324f
URL: https://github.com/llvm/llvm-project/commit/11c8c2a551c53db5ecf8c1f253b1a49d5e98324f
DIFF: https://github.com/llvm/llvm-project/commit/11c8c2a551c53db5ecf8c1f253b1a49d5e98324f.diff
LOG: [analyzer] SATestBuild.py: Fix support for #NOPREFIX.
Regressed in ec2d93c.
Added:
Modified:
clang/utils/analyzer/SATestBuild.py
Removed:
################################################################################
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py
index 38273af27f21..347f1e2dd5e0 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.
More information about the cfe-commits
mailing list