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()121 SourceRange ResultTypeRange = NewMethod->getReturnTypeSourceRange(); in CheckObjCMethodOverride()125 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride()127 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride()138 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()144 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()160 if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() != in CheckObjCMethodOverride()162 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()[all …]
2977 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New); in MergeFunctionDecl() local2978 if (OldMethod && NewMethod) { in MergeFunctionDecl()2980 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()2987 NewMethod->isFunctionTemplateSpecialization(); in MergeFunctionDecl()2988 bool isFriend = NewMethod->getFriendObjectKind(); in MergeFunctionDecl()2990 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl()2995 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()3009 else if (isa<CXXDestructorDecl>(NewMethod)) in MergeFunctionDecl()3011 else if (isa<CXXConversionDecl>(NewMethod)) in MergeFunctionDecl()3031 NewMethod->setImplicit(); in MergeFunctionDecl()[all …]
1067 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New); in IsOverload() local1068 if (OldMethod && NewMethod && in IsOverload()1069 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()1070 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()1073 NewMethod->getRefQualifier() == RQ_None)) { in IsOverload()1080 Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload) in IsOverload()1081 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()1092 unsigned NewQuals = NewMethod->getTypeQualifiers(); in IsOverload()1093 if (!getLangOpts().CPlusPlus14 && NewMethod->isConstexpr() && in IsOverload()1094 !isa<CXXConstructorDecl>(NewMethod)) in IsOverload()
7700 void CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,