From: Argyrios Kyrtzidis Date: Mon, 28 Feb 2011 17:36:04 +0000 (+0000) Subject: [analyzer] Run AST checkers for ObjCMethodDecls. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b742dfde440c8bb0f7e655715e9413fa69f0fefd;p=clang [analyzer] Run AST checkers for ObjCMethodDecls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126657 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp b/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp index 26ee0403e2..cc5fb6a599 100644 --- a/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp +++ b/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp @@ -236,6 +236,8 @@ void AnalysisConsumer::HandleDeclContext(ASTContext &C, DeclContext *dc) { for (ObjCImplementationDecl::method_iterator MI = ID->meth_begin(), ME = ID->meth_end(); MI != ME; ++MI) { + checkerMgr->runCheckersOnASTDecl(*MI, *Mgr, BR); + if ((*MI)->isThisDeclarationADefinition()) { if (!Opts.AnalyzeSpecificFunction.empty() && Opts.AnalyzeSpecificFunction != (*MI)->getSelector().getAsString())