Lines Matching refs:MethodDecl
2227 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument
2232 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn()
2241 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
2242 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2250 MethodDecl->getReturnType(), in CheckMethodOverrideReturn()
2255 *MethodDecl->getReturnType()->getNullability(S.Context); in CheckMethodOverrideReturn()
2264 ((MethodDecl->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability) in CheckMethodOverrideReturn()
2266 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn()
2270 MethodDecl->getReturnType())) in CheckMethodOverrideReturn()
2284 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
2299 << MethodImpl->getDeclName() << MethodDecl->getReturnType() in CheckMethodOverrideReturn()
2302 S.Diag(MethodDecl->getLocation(), IsOverridingMode in CheckMethodOverrideReturn()
2305 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2311 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideParam() argument
2465 ObjCMethodDecl *MethodDecl, in WarnConflictingTypedMethods() argument
2468 checkMethodFamilyMismatch(*this, ImpMethodDecl, MethodDecl)) in WarnConflictingTypedMethods()
2471 CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnConflictingTypedMethods()
2476 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnConflictingTypedMethods()
2477 EF = MethodDecl->param_end(); in WarnConflictingTypedMethods()
2479 CheckMethodOverrideParam(*this, ImpMethodDecl, MethodDecl, *IM, *IF, in WarnConflictingTypedMethods()
2483 if (ImpMethodDecl->isVariadic() != MethodDecl->isVariadic()) { in WarnConflictingTypedMethods()
2486 Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in WarnConflictingTypedMethods()
2516 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods() argument
2521 if (MethodDecl->getImplementationControl() == ObjCMethodDecl::Optional) in WarnExactTypedMethods()
2525 if (MethodDecl->hasAttr<UnavailableAttr>() || in WarnExactTypedMethods()
2526 MethodDecl->hasAttr<DeprecatedAttr>()) in WarnExactTypedMethods()
2529 bool match = CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
2533 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnExactTypedMethods()
2534 EF = MethodDecl->param_end(); in WarnExactTypedMethods()
2536 match = CheckMethodOverrideParam(*this, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
2543 match = (ImpMethodDecl->isVariadic() == MethodDecl->isVariadic()); in WarnExactTypedMethods()
2545 match = !(MethodDecl->isClassMethod() && in WarnExactTypedMethods()
2546 MethodDecl->getSelector() == GetNullarySelector("load", Context)); in WarnExactTypedMethods()
2551 Diag(MethodDecl->getLocation(), diag::note_method_declared_at) in WarnExactTypedMethods()
2552 << MethodDecl->getDeclName(); in WarnExactTypedMethods()