diff options
Diffstat (limited to 'tools/scan-build/libexec/ccc-analyzer')
| -rwxr-xr-x | tools/scan-build/libexec/ccc-analyzer | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/scan-build/libexec/ccc-analyzer b/tools/scan-build/libexec/ccc-analyzer index 73cd2ff3d915..70afb5bcbbd5 100755 --- a/tools/scan-build/libexec/ccc-analyzer +++ b/tools/scan-build/libexec/ccc-analyzer @@ -243,11 +243,6 @@ sub Analyze { push @Args, "-Xclang", $arg; } - # Display Ubiviz graph? - if (defined $ENV{'CCC_UBI'}) { - push @Args, "-Xclang", "-analyzer-viz-egraph-ubigraph"; - } - if (defined $AnalyzerTarget) { push @Args, "-target", $AnalyzerTarget; } @@ -751,9 +746,10 @@ if ($Action eq 'compile' or $Action eq 'link') { if (defined $OutputFormat) { push @AnalyzeArgs, "-analyzer-output=" . $OutputFormat; - if ($OutputFormat =~ /plist/) { + if ($OutputFormat =~ /plist/ || $OutputFormat =~ /sarif/) { # Change "Output" to be a file. - my ($h, $f) = tempfile("report-XXXXXX", SUFFIX => ".plist", + my $Suffix = $OutputFormat =~ /plist/ ? ".plist" : ".sarif"; + my ($h, $f) = tempfile("report-XXXXXX", SUFFIX => $Suffix, DIR => $HtmlDir); $ResultFile = $f; # If the HtmlDir is not set, we should clean up the plist files. |
