File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
clang/tools/scan-build/bin Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1972,11 +1972,13 @@ my $CCC_ANALYZER_ANALYSIS = join ' ', @AnalysesToRun;
1972
1972
my $CCC_ANALYZER_PLUGINS = join ' ' , map { " -load " .$_ } @{$Options {PluginsToLoad }};
1973
1973
my $CCC_ANALYZER_CONFIG = join ' ' , map { " -analyzer-config " .$_ } @{$Options {ConfigOptions }};
1974
1974
1975
- foreach (sort { $Options {SilenceCheckers }{$a } <=> $Options {SilenceCheckers }{$b } }
1976
- keys %{$Options {SilenceCheckers }}) {
1977
- # Add checkers in order they were silenced.
1975
+ if (%{$Options {SilenceCheckers }}) {
1978
1976
$CCC_ANALYZER_CONFIG =
1979
- $CCC_ANALYZER_CONFIG ." -analyzer-config silence-checkers=" .$_ ;
1977
+ $CCC_ANALYZER_CONFIG ." -analyzer-config silence-checkers="
1978
+ .join (' ;' , sort {
1979
+ $Options {SilenceCheckers }{$a } <=>
1980
+ $Options {SilenceCheckers }{$b }
1981
+ } keys %{$Options {SilenceCheckers }});
1980
1982
}
1981
1983
1982
1984
my %EnvVars = (
You can’t perform that action at this time.
0 commit comments