Lines Matching defs:IMD
445 ObjCMethodDecl *IMD =
448 if (IMD) {
452 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext());
466 DiagnoseObjCImplementedDeprecations(SemaRef, IMD, MDecl->getLocation());
4678 auto diagClash = [&](const ObjCMethodDecl *IMD) {
4679 if (diagnosed || IMD->isImplicit())
4681 if (Method->isDirectMethod() || IMD->isDirectMethod()) {
4683 << Method->isDirectMethod() << /* method */ 0 << IMD->isDirectMethod()
4685 S.Diag(IMD->getLocation(), diag::note_previous_declaration);
4703 if (auto *IMD = IDecl->getMethod(Sel, isInstance))
4704 diagClash(IMD);
4707 if (auto *IMD = IDecl->getImplementation()->getMethod(Sel, isInstance))
4708 diagClash(IMD);
4711 if (auto *IMD = Cat->getMethod(Sel, isInstance))
4712 diagClash(IMD);
4715 if (auto *IMD = Cat->getMethod(Sel, isInstance))
4716 diagClash(IMD);
4899 if (auto *IMD = IDecl->lookupMethod(ObjCMethod->getSelector(),
4901 mergeInterfaceMethodToImpl(SemaRef, ObjCMethod, IMD);
4919 if (IDecl == IMD->getClassInterface()) {
4923 if (auto *Cat = dyn_cast<ObjCCategoryDecl>(IMD->getDeclContext()))
4932 Diag(IMD->getLocation(), diag::note_previous_declaration);
4937 if (ObjCMethod->getCanonicalDecl() != IMD) {
4939 } else if (!IMD->isDirectMethod()) {
4941 Diag(IMD->getLocation(), diag::note_previous_declaration);
4943 } else if (IMD->isDirectMethod()) {
4944 const auto *attr = IMD->getAttr<ObjCDirectAttr>();
4945 if (ObjCMethod->getCanonicalDecl() != IMD) {
4955 if (isa<ObjCCategoryImplDecl>(ImpDecl) && IMD->isOverriding() &&
4970 if (auto *IMD = P->lookupMethod(ObjCMethod->getSelector(),
4973 IMD->parameters().size() &&
4975 auto OI = IMD->param_begin(), OE = IMD->param_end();