[PATCH] D42831: [analyzer] [tests] Show function name in test summaries

George Karpenkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 6 09:25:02 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL324362: [analyzer] [tests] Show function name in CmpRuns output (authored by george.karpenkov, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D42831?vs=132522&id=133028#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D42831

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


Index: cfe/trunk/utils/analyzer/CmpRuns.py
===================================================================
--- cfe/trunk/utils/analyzer/CmpRuns.py
+++ cfe/trunk/utils/analyzer/CmpRuns.py
@@ -86,9 +86,15 @@
         return os.path.join(self._report.run.path, self._htmlReport)
 
     def getReadableName(self):
-        return '%s:%d:%d, %s: %s' % (self.getFileName(), self.getLine(),
-                                     self.getColumn(), self.getCategory(),
-                                     self.getDescription())
+        if 'issue_context' in self._data:
+            funcnamePostfix = "#" + self._data['issue_context']
+        else:
+            funcnamePostfix = ""
+        return '%s%s:%d:%d, %s: %s' % (self.getFileName(),
+                                       funcnamePostfix,
+                                       self.getLine(),
+                                       self.getColumn(), self.getCategory(),
+                                       self.getDescription())
 
     # Note, the data format is not an API and may change from one analyzer
     # version to another.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42831.133028.patch
Type: text/x-patch
Size: 1101 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180206/cbe3840b/attachment.bin>


More information about the llvm-commits mailing list