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()
4679 auto diagClash = [&](const ObjCMethodDecl *IMD) { in checkObjCDirectMethodClashes() argument
4680 if (diagnosed || IMD->isImplicit()) in checkObjCDirectMethodClashes()
4682 if (Method->isDirectMethod() || IMD->isDirectMethod()) { in checkObjCDirectMethodClashes()
4684 << Method->isDirectMethod() << /* method */ 0 << IMD->isDirectMethod() in checkObjCDirectMethodClashes()
4686 S.Diag(IMD->getLocation(), diag::note_previous_declaration); in checkObjCDirectMethodClashes()
4704 if (auto *IMD = IDecl->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4705 diagClash(IMD); in checkObjCDirectMethodClashes()
4708 if (auto *IMD = IDecl->getImplementation()->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4709 diagClash(IMD); in checkObjCDirectMethodClashes()
4712 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4713 diagClash(IMD); in checkObjCDirectMethodClashes()
4716 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4717 diagClash(IMD); in checkObjCDirectMethodClashes()
4891 if (auto *IMD = IDecl->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4893 mergeInterfaceMethodToImpl(*this, ObjCMethod, IMD); in ActOnMethodDeclaration()
4911 if (IDecl == IMD->getClassInterface()) { in ActOnMethodDeclaration()
4915 if (auto *Cat = dyn_cast<ObjCCategoryDecl>(IMD->getDeclContext())) in ActOnMethodDeclaration()
4924 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4929 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4931 } else if (!IMD->isDirectMethod()) { in ActOnMethodDeclaration()
4933 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4935 } else if (IMD->isDirectMethod()) { in ActOnMethodDeclaration()
4936 const auto *attr = IMD->getAttr<ObjCDirectAttr>(); in ActOnMethodDeclaration()
4937 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4947 if (isa<ObjCCategoryImplDecl>(ImpDecl) && IMD->isOverriding() && in ActOnMethodDeclaration()
4962 if (auto *IMD = P->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4965 IMD->parameters().size() && in ActOnMethodDeclaration()
4967 auto OI = IMD->param_begin(), OE = IMD->param_end(); in ActOnMethodDeclaration()