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;
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);
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();