diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-03-14 17:31:00 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-03-14 17:31:00 +0000 |
commit | 63bbe5312cd89ce0ceb684bff68c5baef636e93c (patch) | |
tree | 3fbff95830634771941dd2997b69727ecc67b591 /Analysis/CFRefCount.cpp | |
parent | 6d39760673df2e92d9293f46ff8c66dad6ab5e0a (diff) |
Path-sensitive analyses no longer take a FunctionDecl, but any Decl representing
a block of "code".
Patched various ASTConsumers (such as ASTDumper) to have more support for
processing ObjCMethodDecl. CFGVisitor now builds CFGs for ObjCMethodDecls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Analysis/CFRefCount.cpp')
-rw-r--r-- | Analysis/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Analysis/CFRefCount.cpp b/Analysis/CFRefCount.cpp index c87ca673b9..5088ff7ecb 100644 --- a/Analysis/CFRefCount.cpp +++ b/Analysis/CFRefCount.cpp @@ -777,7 +777,7 @@ CFRefCount::RefBindings CFRefCount::Update(RefBindings B, SymbolID sym, namespace clang { - void CheckCFRefCount(CFG& cfg, FunctionDecl& FD, ASTContext& Ctx, + void CheckCFRefCount(CFG& cfg, Decl& CD, ASTContext& Ctx, Diagnostic& Diag) { if (Diag.hasErrorOccurred()) @@ -785,7 +785,7 @@ namespace clang { // FIXME: Refactor some day so this becomes a single function invocation. - GRCoreEngine<GRExprEngine> Eng(cfg, FD, Ctx); + GRCoreEngine<GRExprEngine> Eng(cfg, CD, Ctx); GRExprEngine* CS = &Eng.getCheckerState(); CFRefCount TF; CS->setTransferFunctions(TF); |