Lines Matching refs:MethodDecl
1352 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument
1357 (MethodDecl->getObjCDeclQualifier() != in CheckMethodOverrideReturn()
1366 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
1367 << getTypeRange(MethodDecl->getReturnTypeSourceInfo()); in CheckMethodOverrideReturn()
1374 MethodDecl->getReturnType())) in CheckMethodOverrideReturn()
1388 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
1403 << MethodImpl->getDeclName() << MethodDecl->getReturnType() in CheckMethodOverrideReturn()
1406 S.Diag(MethodDecl->getLocation(), IsOverridingMode in CheckMethodOverrideReturn()
1409 << getTypeRange(MethodDecl->getReturnTypeSourceInfo()); in CheckMethodOverrideReturn()
1415 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideParam() argument
1554 ObjCMethodDecl *MethodDecl, in WarnConflictingTypedMethods() argument
1557 checkMethodFamilyMismatch(*this, ImpMethodDecl, MethodDecl)) in WarnConflictingTypedMethods()
1560 CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnConflictingTypedMethods()
1565 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnConflictingTypedMethods()
1566 EF = MethodDecl->param_end(); in WarnConflictingTypedMethods()
1568 CheckMethodOverrideParam(*this, ImpMethodDecl, MethodDecl, *IM, *IF, in WarnConflictingTypedMethods()
1572 if (ImpMethodDecl->isVariadic() != MethodDecl->isVariadic()) { in WarnConflictingTypedMethods()
1575 Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in WarnConflictingTypedMethods()
1605 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods() argument
1610 if (MethodDecl->getImplementationControl() == ObjCMethodDecl::Optional) in WarnExactTypedMethods()
1614 if (MethodDecl->hasAttr<UnavailableAttr>() || in WarnExactTypedMethods()
1615 MethodDecl->hasAttr<DeprecatedAttr>()) in WarnExactTypedMethods()
1618 bool match = CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
1622 IF = MethodDecl->param_begin(), EM = ImpMethodDecl->param_end(), in WarnExactTypedMethods()
1623 EF = MethodDecl->param_end(); in WarnExactTypedMethods()
1625 match = CheckMethodOverrideParam(*this, ImpMethodDecl, MethodDecl, in WarnExactTypedMethods()
1632 match = (ImpMethodDecl->isVariadic() == MethodDecl->isVariadic()); in WarnExactTypedMethods()
1634 match = !(MethodDecl->isClassMethod() && in WarnExactTypedMethods()
1635 MethodDecl->getSelector() == GetNullarySelector("load", Context)); in WarnExactTypedMethods()
1640 Diag(MethodDecl->getLocation(), diag::note_method_declared_at) in WarnExactTypedMethods()
1641 << MethodDecl->getDeclName(); in WarnExactTypedMethods()