ccc-analyzer now dispatches the options "-checker-cfref" and "-warn-dead-stores" to clang instead of just "-checker-cfref".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53053 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/scan-build b/utils/scan-build
index f881cc8..23bda90 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -634,7 +634,7 @@
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 @@
$ENV{'CCC_ANALYZER_LOG'} = 1;
}
-$ENV{'CCC_ANALYZER_ANALYSIS'} = $Analysis;
+if (defined($Analysis)) {
+ $ENV{'CCC_ANALYZER_ANALYSIS'} = $Analysis;
+}
# Run the build.