]> granicus.if.org Git - clang/commitdiff
Turn on 'RegionStore' as the default store manager both for 'clang --analyze' and...
authorTed Kremenek <kremenek@apple.com>
Fri, 25 Sep 2009 05:55:59 +0000 (05:55 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 25 Sep 2009 05:55:59 +0000 (05:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82752 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
utils/ccc-analyzer
utils/scan-build

index 9472928f40b90f027e3b23594085639550ea6f9e..1044e0229270ad735e5e253cf9ccaebe80c15ba3 100644 (file)
@@ -532,6 +532,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
     CmdArgs.push_back("-static-define");
 
   if (isa<AnalyzeJobAction>(JA)) {
+    // Enable region store model by default.
+    CmdArgs.push_back("-analyzer-store=region");
+
     // Add default argument set.
     if (!Args.hasArg(options::OPT__analyzer_no_default_checks)) {
       CmdArgs.push_back("-warn-dead-stores");
index e60c69425e74cbeaf77368dc0b57bcdc30c7b87e..ddc5030bc2ef8e30cdabc81a7a969981d2b92f80 100755 (executable)
@@ -378,7 +378,7 @@ if (!defined($Analyses)) { $Analyses = '-checker-cfref'; }
 
 # Get the store model.
 my $StoreModel = $ENV{'CCC_ANALYZER_STORE_MODEL'};
-if (!defined $StoreModel) { $StoreModel = "basic"; }
+if (!defined $StoreModel) { $StoreModel = "region"; }
 
 # Get the constraints engine.
 my $ConstraintsModel = $ENV{'CCC_ANALYZER_CONSTRAINTS_MODEL'};
index 4b097a72ecbaa80a604cc2eb8e7943323b08cf12..78394b179d560391e3c52e11b2d783e8b30712bf 100755 (executable)
@@ -949,10 +949,12 @@ ADVANCED OPTIONS:
                         used by checker-0.160 and earlier.
 
  -store [model] - Specify the store model used by the analyzer. By default,
-                  the 'basic' store model is used. 'region' specifies a field-
-                  sensitive store model. Be warned that the 'region' model
-                  is still in very early testing phase and may often crash.
-                  
+                  the 'region' store model is used. 'region' specifies a field-
+                  sensitive store model. Users can also specify 'basic', which
+                  is far less precise but can more quickly analyze code.
+                  'basic' was the default store model for checker-0.221 and
+                  earlier.
+
  -no-failure-reports - Do not create a 'failures' subdirectory that includes
                        analyzer crash reports and preprocessed source files.