[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 @@
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 @@
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.