Lines Matching refs:MethodDecl
2355 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument
2360 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn()
2369 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
2370 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2378 MethodDecl->getReturnType(), in CheckMethodOverrideReturn()
2381 auto nullabilityMethodDecl = *MethodDecl->getReturnType()->getNullability(); in CheckMethodOverrideReturn()
2388 ((MethodDecl->getObjCDeclQualifier() & in CheckMethodOverrideReturn()
2390 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn()
2394 MethodDecl->getReturnType())) in CheckMethodOverrideReturn()
2408 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
2423 << MethodImpl->getDeclName() << MethodDecl->getReturnType() in CheckMethodOverrideReturn()
2426 S.Diag(MethodDecl->getLocation(), IsOverridingMode in CheckMethodOverrideReturn()
2429 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2435 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideParam() argument
2587 ObjCMethodDecl *MethodDecl, in WarnConflictingTypedMethods() argument
2590 checkMethodFamilyMismatch(SemaRef, ImpMethodDecl, MethodDecl)) in WarnConflictingTypedMethods()
2593 CheckMethodOverrideReturn(SemaRef, ImpMethodDecl, MethodDecl, in WarnConflictingTypedMethods()
2597 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnConflictingTypedMethods()
2598 EF = MethodDecl->param_end(); in WarnConflictingTypedMethods()
2600 CheckMethodOverrideParam(SemaRef, ImpMethodDecl, MethodDecl, *IM, *IF, in WarnConflictingTypedMethods()
2604 if (ImpMethodDecl->isVariadic() != MethodDecl->isVariadic()) { in WarnConflictingTypedMethods()
2607 Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in WarnConflictingTypedMethods()
2636 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods() argument
2642 if (MethodDecl->getImplementationControl() == in WarnExactTypedMethods()
2647 if (MethodDecl->hasAttr<UnavailableAttr>() || in WarnExactTypedMethods()
2648 MethodDecl->hasAttr<DeprecatedAttr>()) in WarnExactTypedMethods()
2651 bool match = CheckMethodOverrideReturn(SemaRef, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
2655 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnExactTypedMethods()
2656 EF = MethodDecl->param_end(); in WarnExactTypedMethods()
2658 match = CheckMethodOverrideParam(SemaRef, ImpMethodDecl, MethodDecl, *IM, in WarnExactTypedMethods()
2664 match = (ImpMethodDecl->isVariadic() == MethodDecl->isVariadic()); in WarnExactTypedMethods()
2666 match = !(MethodDecl->isClassMethod() && in WarnExactTypedMethods()
2667 MethodDecl->getSelector() == GetNullarySelector("load", Context)); in WarnExactTypedMethods()
2672 Diag(MethodDecl->getLocation(), diag::note_method_declared_at) in WarnExactTypedMethods()
2673 << MethodDecl->getDeclName(); in WarnExactTypedMethods()