summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-01-24 21:57:32 +0000
committerAnna Zaks <ganna@apple.com>2012-01-24 21:57:32 +0000
commitab2d46eb04a44580e6a2e670e4d91557fe78fae6 (patch)
tree1bc374480b36349d18a745ad77cfc241cd6ce396 /utils
parentc15707d8da08df2eb22f6ed047743fa3f7c9831b (diff)
[analyzer] Testing: make diagnostic diffs more informative (add
diagnostic message). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/analyzer/CmpRuns.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/analyzer/CmpRuns.py b/utils/analyzer/CmpRuns.py
index 2072e4d0a1..6d4be71299 100755
--- a/utils/analyzer/CmpRuns.py
+++ b/utils/analyzer/CmpRuns.py
@@ -65,15 +65,18 @@ class AnalysisDiagnostic:
filename = self.report.run.getSourceName(self.report.files[loc['file']])
line = loc['line']
column = loc['col']
+ category = self.data['category']
+ description = self.data['description']
# FIXME: Get a report number based on this key, to 'distinguish'
# reports, or something.
- return '%s:%d:%d' % (filename, line, column)
+ return '%s:%d:%d, %s: %s' % (filename, line, column, category,
+ description)
def getReportData(self):
if self.htmlReport is None:
- return "This diagnostic does not have any report data."
+ return " "
return open(os.path.join(self.report.run.path,
self.htmlReport), "rb").read()