From: Anna Zaks Date: Tue, 24 Jan 2012 21:57:32 +0000 (+0000) Subject: [analyzer] Testing: make diagnostic diffs more informative (add X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab2d46eb04a44580e6a2e670e4d91557fe78fae6;p=clang [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 --- 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()