Searched refs:NewMethod (Results 1 – 4 of 4) sorted by relevance
112 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride() argument115 !NewMethod->hasRelatedResultType()) { in CheckObjCMethodOverride()120 QualType ResultType = NewMethod->getReturnType(); in CheckObjCMethodOverride()123 NewMethod->getReturnTypeSourceInfo()) in CheckObjCMethodOverride()128 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride()130 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride()141 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()147 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()163 if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() != in CheckObjCMethodOverride()165 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()[all …]
2629 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New); in MergeFunctionDecl() local2630 if (OldMethod && NewMethod) { in MergeFunctionDecl()2632 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()2639 NewMethod->isFunctionTemplateSpecialization(); in MergeFunctionDecl()2640 bool isFriend = NewMethod->getFriendObjectKind(); in MergeFunctionDecl()2642 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl()2647 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()2661 else if (isa<CXXDestructorDecl>(NewMethod)) in MergeFunctionDecl()2663 else if (isa<CXXConversionDecl>(NewMethod)) in MergeFunctionDecl()2682 NewMethod->setImplicit(); in MergeFunctionDecl()[all …]
1044 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New); in IsOverload() local1045 if (OldMethod && NewMethod && in IsOverload()1046 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()1047 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()1050 NewMethod->getRefQualifier() == RQ_None)) { in IsOverload()1057 Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload) in IsOverload()1058 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()1069 unsigned NewQuals = NewMethod->getTypeQualifiers(); in IsOverload()1070 if (!getLangOpts().CPlusPlus1y && NewMethod->isConstexpr() && in IsOverload()1071 !isa<CXXConstructorDecl>(NewMethod)) in IsOverload()
7057 void CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,