[llvm-branch-commits] [cfe-tag] r182623 - Enable report-in-main-source-file and path-diagnostics-alternate by default.

Ted Kremenek kremenek at apple.com
Thu May 23 16:14:04 PDT 2013


Author: kremenek
Date: Thu May 23 18:14:03 2013
New Revision: 182623

URL: http://llvm.org/viewvc/llvm-project?rev=182623&view=rev
Log:
Enable report-in-main-source-file and path-diagnostics-alternate by default.

Modified:
    cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
    cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/BugReporter.cpp

Modified: cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp?rev=182623&r1=182622&r2=182623&view=diff
==============================================================================
--- cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp (original)
+++ cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp Thu May 23 18:14:03 2013
@@ -180,7 +180,7 @@ bool AnalyzerOptions::shouldSuppressFrom
 bool AnalyzerOptions::shouldReportIssuesInMainSourceFile() {
   return getBooleanOption(ReportIssuesInMainSourceFile,
                           "report-in-main-source-file",
-                          /* Default = */ false);
+                          /* Default = */ true);
 }
 
 int AnalyzerOptions::getOptionAsInteger(StringRef Name, int DefaultVal) {

Modified: cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/BugReporter.cpp?rev=182623&r1=182622&r2=182623&view=diff
==============================================================================
--- cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/BugReporter.cpp (original)
+++ cfe/tags/checker/checker-275/lib/StaticAnalyzer/Core/BugReporter.cpp Thu May 23 18:14:03 2013
@@ -2908,7 +2908,7 @@ bool GRBugReporter::generatePathDiagnost
 
   if (ActiveScheme == PathDiagnosticConsumer::Extensive) {
     AnalyzerOptions &options = getAnalyzerOptions();
-    if (options.getBooleanOption("path-diagnostics-alternate", false)) {
+    if (options.getBooleanOption("path-diagnostics-alternate", true)) {
       ActiveScheme = PathDiagnosticConsumer::AlternateExtensive;
     }
   }





More information about the llvm-branch-commits mailing list