Home
last modified time | relevance | path

Searched refs:OldMethod (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDecl.cpp3877 const CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in MergeFunctionDecl() local
3879 if (OldMethod && NewMethod) { in MergeFunctionDecl()
3881 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()
3887 OldMethod->isFunctionTemplateSpecialization() && in MergeFunctionDecl()
3896 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()
3908 if (isa<CXXConstructorDecl>(OldMethod)) in MergeFunctionDecl()
3930 } else if (OldMethod->isImplicit()) { in MergeFunctionDecl()
3936 << New << getSpecialMember(OldMethod); in MergeFunctionDecl()
3939 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
3942 << getSpecialMember(OldMethod); in MergeFunctionDecl()
H A DSemaOverload.cpp1215 CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in IsOverload() local
1217 if (OldMethod && NewMethod && in IsOverload()
1218 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()
1219 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()
1221 (OldMethod->getRefQualifier() == RQ_None || in IsOverload()
1230 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()
1231 Diag(OldMethod->getLocation(), diag::note_previous_declaration); in IsOverload()
1240 auto OldQuals = OldMethod->getMethodQualifiers(); in IsOverload()