[analyzer] Expose clang_version in CmpRuns
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166048 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/analyzer/CmpRuns.py b/utils/analyzer/CmpRuns.py
index 9b8deff..77384d4 100755
--- a/utils/analyzer/CmpRuns.py
+++ b/utils/analyzer/CmpRuns.py
@@ -119,9 +119,10 @@
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 @@
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)]