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()
4660 auto diagClash = [&](const ObjCMethodDecl *IMD) { in checkObjCDirectMethodClashes() argument
4661 if (diagnosed || IMD->isImplicit()) in checkObjCDirectMethodClashes()
4663 if (Method->isDirectMethod() || IMD->isDirectMethod()) { in checkObjCDirectMethodClashes()
4665 << Method->isDirectMethod() << /* method */ 0 << IMD->isDirectMethod() in checkObjCDirectMethodClashes()
4667 S.Diag(IMD->getLocation(), diag::note_previous_declaration); in checkObjCDirectMethodClashes()
4685 if (auto *IMD = IDecl->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4686 diagClash(IMD); in checkObjCDirectMethodClashes()
4689 if (auto *IMD = IDecl->getImplementation()->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4690 diagClash(IMD); in checkObjCDirectMethodClashes()
4693 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4694 diagClash(IMD); in checkObjCDirectMethodClashes()
4697 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4698 diagClash(IMD); in checkObjCDirectMethodClashes()
4871 if (auto *IMD = IDecl->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4873 mergeInterfaceMethodToImpl(*this, ObjCMethod, IMD); in ActOnMethodDeclaration()
4891 if (IDecl == IMD->getClassInterface()) { in ActOnMethodDeclaration()
4895 if (auto *Cat = dyn_cast<ObjCCategoryDecl>(IMD->getDeclContext())) in ActOnMethodDeclaration()
4904 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4909 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4911 } else if (!IMD->isDirectMethod()) { in ActOnMethodDeclaration()
4913 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4915 } else if (IMD->isDirectMethod()) { in ActOnMethodDeclaration()
4916 const auto *attr = IMD->getAttr<ObjCDirectAttr>(); in ActOnMethodDeclaration()
4917 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4927 if (isa<ObjCCategoryImplDecl>(ImpDecl) && IMD->isOverriding() && in ActOnMethodDeclaration()
4942 if (auto *IMD = P->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4945 IMD->parameters().size() && in ActOnMethodDeclaration()
4947 auto OI = IMD->param_begin(), OE = IMD->param_end(); in ActOnMethodDeclaration()