r335685 - [analyzer] [tests] Include statistics in tests.

George Karpenkov via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 26 16:17:35 PDT 2018


Author: george.karpenkov
Date: Tue Jun 26 16:17:35 2018
New Revision: 335685

URL: http://llvm.org/viewvc/llvm-project?rev=335685&view=rev
Log:
[analyzer] [tests] Include statistics in tests.

Modified:
    cfe/trunk/utils/analyzer/SATestBuild.py

Modified: cfe/trunk/utils/analyzer/SATestBuild.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/SATestBuild.py?rev=335685&r1=335684&r2=335685&view=diff
==============================================================================
--- cfe/trunk/utils/analyzer/SATestBuild.py (original)
+++ cfe/trunk/utils/analyzer/SATestBuild.py Tue Jun 26 16:17:35 2018
@@ -274,7 +274,13 @@ def runScanBuild(Dir, SBOutputDir, PBuil
     SBOptions += "-plist-html -o '%s' " % SBOutputDir
     SBOptions += "-enable-checker " + AllCheckers + " "
     SBOptions += "--keep-empty "
-    SBOptions += "-analyzer-config 'stable-report-filename=true' "
+    AnalyzerConfig = {
+        "stable-report-filename": "true",
+        "serialize-stats": "true"
+    }
+
+    SBOptions += "-analyzer-config '%s' " % (
+        ",".join("%s=%s" for key, value in AnalyzerConfig.iteritems()))
     # Always use ccc-analyze to ensure that we can locate the failures
     # directory.
     SBOptions += "--override-compiler "




More information about the cfe-commits mailing list