LocationContext *getParent() const { return Parent; }
+ const Decl *getDecl() const { return getAnalysisContext()->getDecl(); }
+
CFG *getCFG() const { return getAnalysisContext()->getCFG(); }
LiveVariables *getLiveVariables() const {
if (const Stmt *S = GetNextStmt(N))
return PathDiagnosticLocation(S, getSourceManager());
- return FullSourceLoc(getCodeDecl().getBodyRBrace(), getSourceManager());
+ return FullSourceLoc(N->getLocationContext()->getDecl()->getBodyRBrace(),
+ getSourceManager());
}
PathDiagnosticLocation
<< '.';
else
os << "Execution jumps to the end of the "
- << (isa<ObjCMethodDecl>(getCodeDecl()) ? "method" : "function") << '.';
+ << (isa<ObjCMethodDecl>(N->getLocationContext()->getDecl()) ?
+ "method" : "function") << '.';
return Loc;
}