From 98b570ecad4806c8116ae8298caae039007329ef Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 28 Feb 2011 17:36:04 +0000 Subject: [PATCH] [analyzer] Run AST checkers for ObjCMethodDecls. llvm-svn: 126657 --- clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp index 26ee0403e2f7..cc5fb6a599d2 100644 --- a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp +++ b/clang/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())