summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclang/utils/analyzer/CmpRuns.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/clang/utils/analyzer/CmpRuns.py b/clang/utils/analyzer/CmpRuns.py
index 4d60c0f7e7e..68668d510d8 100755
--- a/clang/utils/analyzer/CmpRuns.py
+++ b/clang/utils/analyzer/CmpRuns.py
@@ -86,9 +86,15 @@ class AnalysisDiagnostic:
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.
OpenPOWER on IntegriCloud