summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-10-24 01:32:45 +0000
committerTed Kremenek <kremenek@apple.com>2011-10-24 01:32:45 +0000
commit81ce1c8a998a14ea42da1d429d50f9df7e350a8b (patch)
treef0c86a9bb88c44b1913c6113578158698e77baa3 /clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp
parent1700007eccf408aa39652792718ce939af9a45e6 (diff)
downloadbcm5719-llvm-81ce1c8a998a14ea42da1d429d50f9df7e350a8b.tar.gz
bcm5719-llvm-81ce1c8a998a14ea42da1d429d50f9df7e350a8b.zip
Rename AnalysisContext to AnalysisDeclContext. Not only is this name more accurate, but it frees up the name AnalysisContext for other uses.
llvm-svn: 142782
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp b/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp
index 469be05fb71..55945e6c07c 100644
--- a/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp
@@ -24,10 +24,10 @@ using namespace ento;
namespace {
class WalkAST : public StmtVisitor<WalkAST> {
BugReporter &BR;
- AnalysisContext* AC;
+ AnalysisDeclContext* AC;
public:
- WalkAST(BugReporter &br, AnalysisContext* ac) : BR(br), AC(ac) {}
+ WalkAST(BugReporter &br, AnalysisDeclContext* ac) : BR(br), AC(ac) {}
void VisitUnaryExprOrTypeTraitExpr(UnaryExprOrTypeTraitExpr *E);
void VisitStmt(Stmt *S) { VisitChildren(S); }
void VisitChildren(Stmt *S);
@@ -80,7 +80,7 @@ class SizeofPointerChecker : public Checker<check::ASTCodeBody> {
public:
void checkASTCodeBody(const Decl *D, AnalysisManager& mgr,
BugReporter &BR) const {
- WalkAST walker(BR, mgr.getAnalysisContext(D));
+ WalkAST walker(BR, mgr.getAnalysisDeclContext(D));
walker.Visit(D->getBody());
}
};
OpenPOWER on IntegriCloud