[clang] ec2d93c - [analyzer] SATestBuild.py: Allow comments in run_static_analyzer.cmd.
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Mon May 11 07:26:48 PDT 2020
Author: Artem Dergachev
Date: 2020-05-11T17:26:37+03:00
New Revision: ec2d93c7d7b00374535cb3d6658abec4b150f6f6
URL: https://github.com/llvm/llvm-project/commit/ec2d93c7d7b00374535cb3d6658abec4b150f6f6
DIFF: https://github.com/llvm/llvm-project/commit/ec2d93c7d7b00374535cb3d6658abec4b150f6f6.diff
LOG: [analyzer] SATestBuild.py: Allow comments in run_static_analyzer.cmd.
Because those can get really weird sometimes.
Added:
Modified:
clang/utils/analyzer/SATestBuild.py
Removed:
################################################################################
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py
index 691ded80a1ef..38273af27f21 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:
+ if len(Command) == 0 or Command.startswith("#"):
continue
# Custom analyzer invocation specified by project.
More information about the cfe-commits
mailing list