[analyzer] Run AST checkers for ObjCMethodDecls.

llvm-svn: 126657
This commit is contained in:
Argyrios Kyrtzidis 2011-02-28 17:36:04 +00:00
parent 5a064725d6
commit 98b570ecad
1 changed files with 2 additions and 0 deletions

View File

@ -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())