Lines Matching refs:IMD

438     ObjCMethodDecl *IMD =  in ActOnStartOfObjCMethodDef()  local
441 if (IMD) { in ActOnStartOfObjCMethodDef()
445 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext()); in ActOnStartOfObjCMethodDef()
459 DiagnoseObjCImplementedDeprecations(*this, IMD, MDecl->getLocation()); in ActOnStartOfObjCMethodDef()
4658 auto diagClash = [&](const ObjCMethodDecl *IMD) { in checkObjCDirectMethodClashes() argument
4659 if (diagnosed || IMD->isImplicit()) in checkObjCDirectMethodClashes()
4661 if (Method->isDirectMethod() || IMD->isDirectMethod()) { in checkObjCDirectMethodClashes()
4663 << Method->isDirectMethod() << /* method */ 0 << IMD->isDirectMethod() in checkObjCDirectMethodClashes()
4665 S.Diag(IMD->getLocation(), diag::note_previous_declaration); in checkObjCDirectMethodClashes()
4683 if (auto *IMD = IDecl->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4684 diagClash(IMD); in checkObjCDirectMethodClashes()
4687 if (auto *IMD = IDecl->getImplementation()->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4688 diagClash(IMD); in checkObjCDirectMethodClashes()
4691 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4692 diagClash(IMD); in checkObjCDirectMethodClashes()
4695 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4696 diagClash(IMD); in checkObjCDirectMethodClashes()
4868 if (auto *IMD = IDecl->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4870 mergeInterfaceMethodToImpl(*this, ObjCMethod, IMD); in ActOnMethodDeclaration()
4888 if (IDecl == IMD->getClassInterface()) { in ActOnMethodDeclaration()
4892 if (auto *Cat = dyn_cast<ObjCCategoryDecl>(IMD->getDeclContext())) in ActOnMethodDeclaration()
4901 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4905 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4907 } else if (!IMD->isDirectMethod()) { in ActOnMethodDeclaration()
4909 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4911 } else if (const auto *attr = IMD->getAttr<ObjCDirectAttr>()) { in ActOnMethodDeclaration()
4912 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4922 if (isa<ObjCCategoryImplDecl>(ImpDecl) && IMD->isOverriding() && in ActOnMethodDeclaration()
4937 if (auto *IMD = P->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4940 IMD->parameters().size() && in ActOnMethodDeclaration()
4942 auto OI = IMD->param_begin(), OE = IMD->param_end(); in ActOnMethodDeclaration()