]> granicus.if.org Git - clang/commitdiff
[analyzer] [tests] Include statistics in tests.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Tue, 26 Jun 2018 23:17:35 +0000 (23:17 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Tue, 26 Jun 2018 23:17:35 +0000 (23:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335685 91177308-0d34-0410-b5e6-96231b3b80d8

utils/analyzer/SATestBuild.py

index 8f765b95463f73c3b6cbe8c204e5c586091ac718..b76df748d06fc4dc2a9d4043d91002033a6c4247 100755 (executable)
@@ -274,7 +274,13 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
     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 "