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()
4668 auto diagClash = [&](const ObjCMethodDecl *IMD) { in checkObjCDirectMethodClashes() argument
4669 if (diagnosed || IMD->isImplicit()) in checkObjCDirectMethodClashes()
4671 if (Method->isDirectMethod() || IMD->isDirectMethod()) { in checkObjCDirectMethodClashes()
4673 << Method->isDirectMethod() << /* method */ 0 << IMD->isDirectMethod() in checkObjCDirectMethodClashes()
4675 S.Diag(IMD->getLocation(), diag::note_previous_declaration); in checkObjCDirectMethodClashes()
4693 if (auto *IMD = IDecl->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4694 diagClash(IMD); in checkObjCDirectMethodClashes()
4697 if (auto *IMD = IDecl->getImplementation()->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4698 diagClash(IMD); in checkObjCDirectMethodClashes()
4701 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4702 diagClash(IMD); in checkObjCDirectMethodClashes()
4705 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4706 diagClash(IMD); in checkObjCDirectMethodClashes()
4879 if (auto *IMD = IDecl->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4881 mergeInterfaceMethodToImpl(*this, ObjCMethod, IMD); in ActOnMethodDeclaration()
4899 if (IDecl == IMD->getClassInterface()) { in ActOnMethodDeclaration()
4903 if (auto *Cat = dyn_cast<ObjCCategoryDecl>(IMD->getDeclContext())) in ActOnMethodDeclaration()
4912 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4917 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4919 } else if (!IMD->isDirectMethod()) { in ActOnMethodDeclaration()
4921 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4923 } else if (IMD->isDirectMethod()) { in ActOnMethodDeclaration()
4924 const auto *attr = IMD->getAttr<ObjCDirectAttr>(); in ActOnMethodDeclaration()
4925 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4935 if (isa<ObjCCategoryImplDecl>(ImpDecl) && IMD->isOverriding() && in ActOnMethodDeclaration()
4950 if (auto *IMD = P->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4953 IMD->parameters().size() && in ActOnMethodDeclaration()
4955 auto OI = IMD->param_begin(), OE = IMD->param_end(); in ActOnMethodDeclaration()