Skip to content

Commit

Permalink
[analyzer] SATestBuild.py: Allow comments in run_static_analyzer.cmd.
Browse files Browse the repository at this point in the history
Because those can get really weird sometimes.
  • Loading branch information
haoNoQ committed May 11, 2020
1 parent 58cb887 commit ec2d93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/utils/analyzer/SATestBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ec2d93c

Please sign in to comment.