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 | a5e2df015a911fad3a33cdfd430adacb58dd51d5 (patch) | |
tree | 4e33e12a83161ec46f5dae57eca502f6f1caf81d | |
parent | ab8cacee2df7cdb5da39a93e3d9aad330cb988a9 (diff) | |
download | bcm5719-llvm-a5e2df015a911fad3a33cdfd430adacb58dd51d5.tar.gz bcm5719-llvm-a5e2df015a911fad3a33cdfd430adacb58dd51d5.zip |
Rename member variable.
llvm-svn: 50597
-rw-r--r-- | clang/include/clang/Analysis/PathSensitive/BugReporter.h | 6 | ||||
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/clang/include/clang/Analysis/PathSensitive/BugReporter.h b/clang/include/clang/Analysis/PathSensitive/BugReporter.h index 714e8883693..7aefb1c57c3 100644 --- a/clang/include/clang/Analysis/PathSensitive/BugReporter.h +++ b/clang/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/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index 0ec1a35b681..c907c248c04 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/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(); |