Lines Matching refs:IMD

446     ObjCMethodDecl *IMD =  in ActOnStartOfObjCMethodDef()  local
449 if (IMD) { in ActOnStartOfObjCMethodDef()
453 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext()); in ActOnStartOfObjCMethodDef()
467 DiagnoseObjCImplementedDeprecations(SemaRef, IMD, MDecl->getLocation()); in ActOnStartOfObjCMethodDef()
4687 auto diagClash = [&](const ObjCMethodDecl *IMD) { in checkObjCDirectMethodClashes() argument
4688 if (diagnosed || IMD->isImplicit()) in checkObjCDirectMethodClashes()
4690 if (Method->isDirectMethod() || IMD->isDirectMethod()) { in checkObjCDirectMethodClashes()
4692 << Method->isDirectMethod() << /* method */ 0 << IMD->isDirectMethod() in checkObjCDirectMethodClashes()
4694 S.Diag(IMD->getLocation(), diag::note_previous_declaration); in checkObjCDirectMethodClashes()
4712 if (auto *IMD = IDecl->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4713 diagClash(IMD); in checkObjCDirectMethodClashes()
4716 if (auto *IMD = IDecl->getImplementation()->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4717 diagClash(IMD); in checkObjCDirectMethodClashes()
4720 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4721 diagClash(IMD); in checkObjCDirectMethodClashes()
4724 if (auto *IMD = Cat->getMethod(Sel, isInstance)) in checkObjCDirectMethodClashes() local
4725 diagClash(IMD); in checkObjCDirectMethodClashes()
4904 if (auto *IMD = IDecl->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4906 mergeInterfaceMethodToImpl(SemaRef, ObjCMethod, IMD); in ActOnMethodDeclaration()
4924 if (IDecl == IMD->getClassInterface()) { in ActOnMethodDeclaration()
4928 if (auto *Cat = dyn_cast<ObjCCategoryDecl>(IMD->getDeclContext())) in ActOnMethodDeclaration()
4937 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4942 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4944 } else if (!IMD->isDirectMethod()) { in ActOnMethodDeclaration()
4946 Diag(IMD->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4948 } else if (IMD->isDirectMethod()) { in ActOnMethodDeclaration()
4949 const auto *attr = IMD->getAttr<ObjCDirectAttr>(); in ActOnMethodDeclaration()
4950 if (ObjCMethod->getCanonicalDecl() != IMD) { in ActOnMethodDeclaration()
4960 if (isa<ObjCCategoryImplDecl>(ImpDecl) && IMD->isOverriding() && in ActOnMethodDeclaration()
4975 if (auto *IMD = P->lookupMethod(ObjCMethod->getSelector(), in ActOnMethodDeclaration() local
4978 IMD->parameters().size() && in ActOnMethodDeclaration()
4980 auto OI = IMD->param_begin(), OE = IMD->param_end(); in ActOnMethodDeclaration()