[cfe-commits] r148867 - /cfe/trunk/utils/analyzer/CmpRuns.py

Anna Zaks ganna at apple.com
Tue Jan 24 13:57:32 PST 2012


Author: zaks
Date: Tue Jan 24 15:57:32 2012
New Revision: 148867

URL: http://llvm.org/viewvc/llvm-project?rev=148867&view=rev
Log:
[analyzer] Testing: make diagnostic diffs more informative (add
diagnostic message).

Modified:
    cfe/trunk/utils/analyzer/CmpRuns.py

Modified: cfe/trunk/utils/analyzer/CmpRuns.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/CmpRuns.py?rev=148867&r1=148866&r2=148867&view=diff
==============================================================================
--- cfe/trunk/utils/analyzer/CmpRuns.py (original)
+++ cfe/trunk/utils/analyzer/CmpRuns.py Tue Jan 24 15:57:32 2012
@@ -65,15 +65,18 @@
         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() 





More information about the cfe-commits mailing list