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

/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp135 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, argument
138 !NewMethod->hasRelatedResultType()) {
143 QualType ResultType = NewMethod->getReturnType();
144 SourceRange ResultTypeRange = NewMethod->getReturnTypeSourceRange();
148 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext());
150 DeclContext *DC = NewMethod->getDeclContext();
161 Diag(NewMethod->getLocation(),
167 Diag(NewMethod->getLocation(),
183 if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() !=
185 Diag(NewMethod
[all...]
H A DSemaDecl.cpp3488 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New); local
3489 if (OldMethod && NewMethod) {
3491 NewMethod->setTrivial(OldMethod->isTrivial());
3498 NewMethod->isFunctionTemplateSpecialization();
3499 bool isFriend = NewMethod->getFriendObjectKind();
3501 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() &&
3506 if (OldMethod->isStatic() != NewMethod->isStatic()) {
3520 else if (isa<CXXDestructorDecl>(NewMethod))
3522 else if (isa<CXXConversionDecl>(NewMethod))
3542 NewMethod
[all...]
H A DSemaOverload.cpp1214 CXXMethodDecl *NewMethod = dyn_cast<CXXMethodDecl>(New);
1215 if (OldMethod && NewMethod &&
1216 !OldMethod->isStatic() && !NewMethod->isStatic()) {
1217 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) {
1220 NewMethod->getRefQualifier() == RQ_None)) {
1227 Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload)
1228 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier();
1239 auto NewQuals = NewMethod->getMethodQualifiers();
1240 if (!getLangOpts().CPlusPlus14 && NewMethod->isConstexpr() &&
1241 !isa<CXXConstructorDecl>(NewMethod))
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h9285 void CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,

Completed in 177 milliseconds