Searched refs:NewMethod (Results 1 – 4 of 4) sorted by relevance
111 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride() argument115 !NewMethod->hasRelatedResultType()) { in CheckObjCMethodOverride()120 QualType ResultType = NewMethod->getResultType(); in CheckObjCMethodOverride()123 = NewMethod->getResultTypeSourceInfo()) 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()162 if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() != in CheckObjCMethodOverride()164 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()[all …]
2117 CXXMethodDecl* NewMethod = dyn_cast<CXXMethodDecl>(New); in MergeFunctionDecl() local2118 if (OldMethod && NewMethod) { in MergeFunctionDecl()2120 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()2127 NewMethod->isFunctionTemplateSpecialization(); in MergeFunctionDecl()2128 bool isFriend = NewMethod->getFriendObjectKind(); in MergeFunctionDecl()2130 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl()2135 if (OldMethod->isStatic() || NewMethod->isStatic()) { in MergeFunctionDecl()2149 else if (isa<CXXDestructorDecl>(NewMethod)) in MergeFunctionDecl()2151 else if (isa<CXXConversionDecl>(NewMethod)) in MergeFunctionDecl()2170 NewMethod->setImplicit(); in MergeFunctionDecl()[all …]
992 CXXMethodDecl* NewMethod = dyn_cast<CXXMethodDecl>(New); in IsOverload() local993 if (OldMethod && NewMethod && in IsOverload()994 !OldMethod->isStatic() && !NewMethod->isStatic() && in IsOverload()995 (OldMethod->getTypeQualifiers() != NewMethod->getTypeQualifiers() || in IsOverload()996 OldMethod->getRefQualifier() != NewMethod->getRefQualifier())) { in IsOverload()998 OldMethod->getRefQualifier() != NewMethod->getRefQualifier() && in IsOverload()1000 NewMethod->getRefQualifier() == RQ_None)) { in IsOverload()1007 Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload) in IsOverload()1008 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()
6263 void CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,