Lines Matching refs:MethodDecl
2333 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument
2338 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn()
2347 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
2348 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2356 MethodDecl->getReturnType(), in CheckMethodOverrideReturn()
2361 *MethodDecl->getReturnType()->getNullability(S.Context); in CheckMethodOverrideReturn()
2370 ((MethodDecl->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability) in CheckMethodOverrideReturn()
2372 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn()
2376 MethodDecl->getReturnType())) in CheckMethodOverrideReturn()
2390 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
2405 << MethodImpl->getDeclName() << MethodDecl->getReturnType() in CheckMethodOverrideReturn()
2408 S.Diag(MethodDecl->getLocation(), IsOverridingMode in CheckMethodOverrideReturn()
2411 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2417 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideParam() argument
2571 ObjCMethodDecl *MethodDecl, in WarnConflictingTypedMethods() argument
2574 checkMethodFamilyMismatch(*this, ImpMethodDecl, MethodDecl)) in WarnConflictingTypedMethods()
2577 CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnConflictingTypedMethods()
2582 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnConflictingTypedMethods()
2583 EF = MethodDecl->param_end(); in WarnConflictingTypedMethods()
2585 CheckMethodOverrideParam(*this, ImpMethodDecl, MethodDecl, *IM, *IF, in WarnConflictingTypedMethods()
2589 if (ImpMethodDecl->isVariadic() != MethodDecl->isVariadic()) { in WarnConflictingTypedMethods()
2592 Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in WarnConflictingTypedMethods()
2622 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods() argument
2627 if (MethodDecl->getImplementationControl() == ObjCMethodDecl::Optional) in WarnExactTypedMethods()
2631 if (MethodDecl->hasAttr<UnavailableAttr>() || in WarnExactTypedMethods()
2632 MethodDecl->hasAttr<DeprecatedAttr>()) in WarnExactTypedMethods()
2635 bool match = CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
2639 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnExactTypedMethods()
2640 EF = MethodDecl->param_end(); in WarnExactTypedMethods()
2642 match = CheckMethodOverrideParam(*this, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
2649 match = (ImpMethodDecl->isVariadic() == MethodDecl->isVariadic()); in WarnExactTypedMethods()
2651 match = !(MethodDecl->isClassMethod() && in WarnExactTypedMethods()
2652 MethodDecl->getSelector() == GetNullarySelector("load", Context)); in WarnExactTypedMethods()
2657 Diag(MethodDecl->getLocation(), diag::note_method_declared_at) in WarnExactTypedMethods()
2658 << MethodDecl->getDeclName(); in WarnExactTypedMethods()