From 5e73e9b7755fb6744bccefe9afdd333762a6c9ef 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335685 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/analyzer/SATestBuild.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py index 8f765b9546..b76df748d0 100755 --- a/utils/analyzer/SATestBuild.py +++ b/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 " -- 2.50.1