aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-01 22:50:36 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-01 22:50:36 +0000
commitbb77e9b908658b354b058509d3801f3aed052bec (patch)
tree0ce757f7d46d2b141ae695f9bfc14726d867cb57 /include/clang
parent0cca749f64ff54476df3a4fc084821b8a8d712d5 (diff)
Do not highlight bogus ranges for leaks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Analysis/PathSensitive/BugReporter.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h
index 5a8606f071..b823906364 100644
--- a/include/clang/Analysis/PathSensitive/BugReporter.h
+++ b/include/clang/Analysis/PathSensitive/BugReporter.h
@@ -64,7 +64,7 @@ public:
class BugReport {
BugType& Desc;
ExplodedNode<ValueState> *N;
-
+ SourceRange R;
public:
BugReport(BugType& D, ExplodedNode<ValueState> *n) : Desc(D), N(n) {}
virtual ~BugReport();
@@ -74,7 +74,7 @@ public:
ExplodedNode<ValueState>* getEndNode() const { return N; }
- Stmt* getStmt() const;
+ Stmt* getStmt(BugReporter& BR) const;
const char* getName() const { return getBugType().getName(); }
@@ -87,12 +87,12 @@ public:
}
virtual PathDiagnosticPiece* getEndPath(BugReporter& BR,
- ExplodedNode<ValueState>* N) const;
+ ExplodedNode<ValueState>* N);
virtual FullSourceLoc getLocation(SourceManager& Mgr);
- virtual void getRanges(const SourceRange*& beg,
- const SourceRange*& end) const;
+ virtual void getRanges(BugReporter& BR,const SourceRange*& beg,
+ const SourceRange*& end);
virtual PathDiagnosticPiece* VisitNode(ExplodedNode<ValueState>* N,
ExplodedNode<ValueState>* PrevN,
@@ -110,8 +110,8 @@ public:
void addRange(SourceRange R) { Ranges.push_back(R); }
- virtual void getRanges(const SourceRange*& beg,
- const SourceRange*& end) const {
+ virtual void getRanges(BugReporter& BR,const SourceRange*& beg,
+ const SourceRange*& end) {
if (Ranges.empty()) {
beg = NULL;