From 30130b78c53f581d73609521e3e98e3e76ad14f6 Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Tue, 26 Jun 2018 23:17:35 +0000 Subject: [PATCH] [analyzer] [tests] Include statistics in tests. llvm-svn: 335685 --- clang/utils/analyzer/SATestBuild.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py index 8f765b95463f..b76df748d06f 100755 --- a/clang/utils/analyzer/SATestBuild.py +++ b/clang/utils/analyzer/SATestBuild.py @@ -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 "