Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp136 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride() argument
139 !NewMethod->hasRelatedResultType()) { in CheckObjCMethodOverride()
144 QualType ResultType = NewMethod->getReturnType(); in CheckObjCMethodOverride()
149 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride()
151 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride()
162 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
168 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
184 if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() != in CheckObjCMethodOverride()
186 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
193 if ((NewMethod->hasAttr<NSReturnsNotRetainedAttr>() != in CheckObjCMethodOverride()
[all …]
H A DSemaOverload.cpp1218 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New); in IsOverload() local
1219 if (OldMethod && NewMethod && in IsOverload()
1220 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()
1221 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()
1224 NewMethod->getRefQualifier() == RQ_None)) { in IsOverload()
1231 Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload) in IsOverload()
1232 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()
1243 auto NewQuals = NewMethod->getMethodQualifiers(); in IsOverload()
1244 if (!getLangOpts().CPlusPlus14 && NewMethod->isConstexpr() && in IsOverload()
1245 !isa<CXXConstructorDecl>(NewMethod)) in IsOverload()
H A DSemaDecl.cpp3607 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New); in MergeFunctionDecl() local
3608 if (OldMethod && NewMethod) { in MergeFunctionDecl()
3610 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()
3618 bool isFriend = NewMethod->getFriendObjectKind(); in MergeFunctionDecl()
3620 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl()
3625 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()
3639 else if (isa<CXXDestructorDecl>(NewMethod)) in MergeFunctionDecl()
3641 else if (isa<CXXConversionDecl>(NewMethod)) in MergeFunctionDecl()
3661 NewMethod->setImplicit(); in MergeFunctionDecl()
3663 Diag(NewMethod->getLocation(), in MergeFunctionDecl()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h9905 void CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,