diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-05-02 23:21:21 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-05-02 23:21:21 +0000 |
commit | 200ed924bb13784ca043088f71c62fc323fd836d (patch) | |
tree | a723b78371d825b4c3c0a8c7093094a803ba6208 | |
parent | 7a4648df321be70bb009a8dc56e0162c3f13c18c (diff) |
Rename member variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50597 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Analysis/PathSensitive/BugReporter.h | 6 | ||||
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h index 714e888369..7aefb1c57c 100644 --- a/include/clang/Analysis/PathSensitive/BugReporter.h +++ b/include/clang/Analysis/PathSensitive/BugReporter.h @@ -63,16 +63,16 @@ public: class BugReport { BugType& Desc; - ExplodedNode<ValueState> *N; + ExplodedNode<ValueState> *EndNode; SourceRange R; public: - BugReport(BugType& D, ExplodedNode<ValueState> *n) : Desc(D), N(n) {} + BugReport(BugType& D, ExplodedNode<ValueState> *n) : Desc(D), EndNode(n) {} virtual ~BugReport(); const BugType& getBugType() const { return Desc; } BugType& getBugType() { return Desc; } - ExplodedNode<ValueState>* getEndNode() const { return N; } + ExplodedNode<ValueState>* getEndNode() const { return EndNode; } Stmt* getStmt(BugReporter& BR) const; diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index 0ec1a35b68..c907c248c0 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -91,12 +91,12 @@ static void ExecutionContinues(std::ostream& os, SourceManager& SMgr, Stmt* BugReport::getStmt(BugReporter& BR) const { - ProgramPoint ProgP = N->getLocation(); + ProgramPoint ProgP = EndNode->getLocation(); Stmt *S = NULL; if (BlockEntrance* BE = dyn_cast<BlockEntrance>(&ProgP)) if (BE->getBlock() == &BR.getCFG().getExit()) - S = GetLastStmt(N); + S = GetLastStmt(EndNode); if (!S) S = GetStmt(ProgP); @@ -138,10 +138,10 @@ void BugReport::getRanges(BugReporter& BR, const SourceRange*& beg, FullSourceLoc BugReport::getLocation(SourceManager& Mgr) { - if (!N) + if (!EndNode) return FullSourceLoc(); - Stmt* S = GetStmt(N->getLocation()); + Stmt* S = GetStmt(EndNode->getLocation()); if (!S) return FullSourceLoc(); |