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
114 !NewMethod->hasRelatedResultType()) { in CheckObjCMethodOverride()
119 QualType ResultType = NewMethod->getResultType(); in CheckObjCMethodOverride()
122 = NewMethod->getResultTypeSourceInfo()) in CheckObjCMethodOverride()
127 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride()
129 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride()
140 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
146 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
162 if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() != in CheckObjCMethodOverride()
164 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
[all …]
DSemaDecl.cpp2503 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New); in MergeFunctionDecl() local
2504 if (OldMethod && NewMethod) { in MergeFunctionDecl()
2506 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()
2513 NewMethod->isFunctionTemplateSpecialization(); in MergeFunctionDecl()
2514 bool isFriend = NewMethod->getFriendObjectKind(); in MergeFunctionDecl()
2516 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl()
2521 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()
2535 else if (isa<CXXDestructorDecl>(NewMethod)) in MergeFunctionDecl()
2537 else if (isa<CXXConversionDecl>(NewMethod)) in MergeFunctionDecl()
2556 NewMethod->setImplicit(); in MergeFunctionDecl()
[all …]
DSemaOverload.cpp1043 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New); in IsOverload() local
1044 if (OldMethod && NewMethod && in IsOverload()
1045 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()
1046 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()
1049 NewMethod->getRefQualifier() == RQ_None)) { in IsOverload()
1056 Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload) in IsOverload()
1057 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()
1067 unsigned NewQuals = NewMethod->getTypeQualifiers(); in IsOverload()
1068 if (!getLangOpts().CPlusPlus1y && NewMethod->isConstexpr() && in IsOverload()
1069 !isa<CXXConstructorDecl>(NewMethod)) in IsOverload()
/external/clang/include/clang/Sema/
DSema.h6723 void CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,