Home
last modified time | relevance | path

Searched refs:NewMethod (Results 1 – 4 of 4) sorted by relevance

/external/clang/lib/Sema/
DSemaDeclObjC.cpp111 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride() argument
115 !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 …]
DSemaDecl.cpp2117 CXXMethodDecl* NewMethod = dyn_cast<CXXMethodDecl>(New); in MergeFunctionDecl() local
2118 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 …]
DSemaOverload.cpp992 CXXMethodDecl* NewMethod = dyn_cast<CXXMethodDecl>(New); in IsOverload() local
993 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()
/external/clang/include/clang/Sema/
DSema.h6263 void CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,