Lines Matching refs:MethodDecl
2202 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument
2207 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn()
2216 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
2217 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2225 MethodDecl->getReturnType(), in CheckMethodOverrideReturn()
2230 *MethodDecl->getReturnType()->getNullability(S.Context); in CheckMethodOverrideReturn()
2239 ((MethodDecl->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability) in CheckMethodOverrideReturn()
2241 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn()
2245 MethodDecl->getReturnType())) in CheckMethodOverrideReturn()
2259 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
2274 << MethodImpl->getDeclName() << MethodDecl->getReturnType() in CheckMethodOverrideReturn()
2277 S.Diag(MethodDecl->getLocation(), IsOverridingMode in CheckMethodOverrideReturn()
2280 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2286 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideParam() argument
2440 ObjCMethodDecl *MethodDecl, in WarnConflictingTypedMethods() argument
2443 checkMethodFamilyMismatch(*this, ImpMethodDecl, MethodDecl)) in WarnConflictingTypedMethods()
2446 CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnConflictingTypedMethods()
2451 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnConflictingTypedMethods()
2452 EF = MethodDecl->param_end(); in WarnConflictingTypedMethods()
2454 CheckMethodOverrideParam(*this, ImpMethodDecl, MethodDecl, *IM, *IF, in WarnConflictingTypedMethods()
2458 if (ImpMethodDecl->isVariadic() != MethodDecl->isVariadic()) { in WarnConflictingTypedMethods()
2461 Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in WarnConflictingTypedMethods()
2491 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods() argument
2496 if (MethodDecl->getImplementationControl() == ObjCMethodDecl::Optional) in WarnExactTypedMethods()
2500 if (MethodDecl->hasAttr<UnavailableAttr>() || in WarnExactTypedMethods()
2501 MethodDecl->hasAttr<DeprecatedAttr>()) in WarnExactTypedMethods()
2504 bool match = CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
2508 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnExactTypedMethods()
2509 EF = MethodDecl->param_end(); in WarnExactTypedMethods()
2511 match = CheckMethodOverrideParam(*this, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
2518 match = (ImpMethodDecl->isVariadic() == MethodDecl->isVariadic()); in WarnExactTypedMethods()
2520 match = !(MethodDecl->isClassMethod() && in WarnExactTypedMethods()
2521 MethodDecl->getSelector() == GetNullarySelector("load", Context)); in WarnExactTypedMethods()
2526 Diag(MethodDecl->getLocation(), diag::note_method_declared_at) in WarnExactTypedMethods()
2527 << MethodDecl->getDeclName(); in WarnExactTypedMethods()