From 93283d0933d0784dc29a10bb37001979d998f0fa Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Tue, 16 Oct 2012 19:36:39 +0000 Subject: [analyzer] Expose clang_version in CmpRuns llvm-svn: 166048 --- clang/utils/analyzer/CmpRuns.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/utils/analyzer/CmpRuns.py') diff --git a/clang/utils/analyzer/CmpRuns.py b/clang/utils/analyzer/CmpRuns.py index 9b8deff061a..77384d471ed 100755 --- a/clang/utils/analyzer/CmpRuns.py +++ b/clang/utils/analyzer/CmpRuns.py @@ -119,9 +119,10 @@ class CmpOptions: self.verboseLog = verboseLog class AnalysisReport: - def __init__(self, run, files): + def __init__(self, run, files, clang_vers): self.run = run self.files = files + self.clang_version = clang_vers class AnalysisRun: def __init__(self, info): @@ -172,7 +173,7 @@ def loadResultsFromSingleRun(info, deleteEmpty=True): else: htmlFiles = [None] * len(data['diagnostics']) - report = AnalysisReport(run, data.pop('files')) + report = AnalysisReport(run, data.pop('files'), data.pop('clang_version')) diagnostics = [AnalysisDiagnostic(d, report, h) for d,h in zip(data.pop('diagnostics'), htmlFiles)] -- cgit v1.2.3