[cfe-commits] r50597 - in /cfe/trunk: include/clang/Analysis/PathSensitive/BugReporter.h lib/Analysis/BugReporter.cpp
Ted Kremenek
kremenek at apple.com
Fri May 2 16:21:21 PDT 2008
Author: kremenek
Date: Fri May 2 18:21:21 2008
New Revision: 50597
URL: http://llvm.org/viewvc/llvm-project?rev=50597&view=rev
Log:
Rename member variable.
Modified:
cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h
cfe/trunk/lib/Analysis/BugReporter.cpp
Modified: cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h?rev=50597&r1=50596&r2=50597&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h Fri May 2 18:21:21 2008
@@ -63,16 +63,16 @@
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;
Modified: cfe/trunk/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BugReporter.cpp?rev=50597&r1=50596&r2=50597&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Fri May 2 18:21:21 2008
@@ -91,12 +91,12 @@
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 @@
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();
More information about the cfe-commits
mailing list