summaryrefslogtreecommitdiffstats
path: root/clang/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-14 17:31:00 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-14 17:31:00 +0000
commit7b00d15bc52ed8f8b131bf72ff9fb094ac3376b5 (patch)
treebcd95f835c6bc4eb7f73d606d2f77695336b1fc5 /clang/Analysis/CFRefCount.cpp
parent5ff2d5defab20aa5061d42996c3911cbe4488ba3 (diff)
downloadbcm5719-llvm-7b00d15bc52ed8f8b131bf72ff9fb094ac3376b5.tar.gz
bcm5719-llvm-7b00d15bc52ed8f8b131bf72ff9fb094ac3376b5.zip
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. llvm-svn: 48363
Diffstat (limited to 'clang/Analysis/CFRefCount.cpp')
-rw-r--r--clang/Analysis/CFRefCount.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/Analysis/CFRefCount.cpp b/clang/Analysis/CFRefCount.cpp
index c87ca673b9d..5088ff7ecbf 100644
--- a/clang/Analysis/CFRefCount.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud