summaryrefslogtreecommitdiffstats
path: root/clang/utils/scan-build
diff options
context:
space:
mode:
Diffstat (limited to 'clang/utils/scan-build')
-rwxr-xr-xclang/utils/scan-build6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/utils/scan-build b/clang/utils/scan-build
index f881cc8ea67..23bda909b67 100755
--- a/clang/utils/scan-build
+++ b/clang/utils/scan-build
@@ -634,7 +634,7 @@ ENDTEXT
my $HtmlDir; # Parent directory to store HTML files.
my $IgnoreErrors = 0; # Ignore build errors.
my $ViewResults = 0; # View results when the build terminates.
-my $Analysis = "checker-cfref";
+my $Analysis;
if (!@ARGV) {
DisplayHelp();
@@ -753,7 +753,9 @@ if ($Verbose >= 3) {
$ENV{'CCC_ANALYZER_LOG'} = 1;
}
-$ENV{'CCC_ANALYZER_ANALYSIS'} = $Analysis;
+if (defined($Analysis)) {
+ $ENV{'CCC_ANALYZER_ANALYSIS'} = $Analysis;
+}
# Run the build.
OpenPOWER on IntegriCloud