diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-30 23:47:44 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-30 23:47:44 +0000 |
commit | 072192bcbb05a0fee7ec3061750b27e8d2004952 (patch) | |
tree | 37048b412bd73992a50738e0b948108bf453bba5 /include/clang/Analysis/PathSensitive/BugReporter.h | |
parent | 6b6289848e215ff12d4d54fe0602d3371db52788 (diff) |
added preliminary diagnostics in scan-build results to denote whether
a CF memory leak occurred with GC enabled, etc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/BugReporter.h')
-rw-r--r-- | include/clang/Analysis/PathSensitive/BugReporter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h index 325e1a750f..5a8606f071 100644 --- a/include/clang/Analysis/PathSensitive/BugReporter.h +++ b/include/clang/Analysis/PathSensitive/BugReporter.h @@ -41,6 +41,10 @@ public: virtual const char* getName() const = 0; virtual const char* getDescription() const { return getName(); } + + virtual std::pair<const char**,const char**> getExtraDescriptiveText() { + return std::pair<const char**, const char**>(0, 0); + } virtual void EmitWarnings(BugReporter& BR) {} virtual void GetErrorNodes(std::vector<ExplodedNode<ValueState>*>& Nodes) {} @@ -78,6 +82,10 @@ public: return getBugType().getDescription(); } + virtual std::pair<const char**,const char**> getExtraDescriptiveText() { + return getBugType().getExtraDescriptiveText(); + } + virtual PathDiagnosticPiece* getEndPath(BugReporter& BR, ExplodedNode<ValueState>* N) const; |