diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-18 20:54:29 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-18 20:54:29 +0000 |
commit | 95cc1bae89ac68626d6f4d389e189ce1ef3aa7f6 (patch) | |
tree | 329013af8c1456752d42f1f2fe908533a7fa629b /lib/Analysis/CFRefCount.cpp | |
parent | b0533965f1b4db020692e3b23ca7b3bc15bf5897 (diff) |
Generalize caching mechanism for bugs reports. Now individual BugTypes
can decide the policy on how to cache related bugs. This allows us to
properly to handle warning about multiple leaks in the same location in the
ref count checker (not yet done).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 3eb037978a..253e00589e 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1268,7 +1268,7 @@ namespace { // Bug Descriptions. // //===-------------===// - class VISIBILITY_HIDDEN CFRefBug : public BugType { + class VISIBILITY_HIDDEN CFRefBug : public BugTypeCacheLocation { protected: CFRefCount& TF; @@ -1331,7 +1331,7 @@ namespace { class VISIBILITY_HIDDEN CFRefReport : public RangedBugReport { SymbolID Sym; public: - CFRefReport(const BugType& D, ExplodedNode<ValueState> *n, SymbolID sym) + CFRefReport(BugType& D, ExplodedNode<ValueState> *n, SymbolID sym) : RangedBugReport(D, n), Sym(sym) {} virtual ~CFRefReport() {} |