Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaDecl.cpp3543 const CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in MergeFunctionDecl() local
3545 if (OldMethod && NewMethod) { in MergeFunctionDecl()
3547 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()
3553 OldMethod->isFunctionTemplateSpecialization() && in MergeFunctionDecl()
3562 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()
3574 if (isa<CXXConstructorDecl>(OldMethod)) in MergeFunctionDecl()
3596 } else if (OldMethod->isImplicit()) { in MergeFunctionDecl()
3602 << New << getSpecialMember(OldMethod); in MergeFunctionDecl()
3605 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
3608 << getSpecialMember(OldMethod); in MergeFunctionDecl()
H A DSemaOverload.cpp1217 CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in IsOverload() local
1219 if (OldMethod && NewMethod && in IsOverload()
1220 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()
1221 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()
1223 (OldMethod->getRefQualifier() == RQ_None || in IsOverload()
1232 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()
1233 Diag(OldMethod->getLocation(), diag::note_previous_declaration); in IsOverload()
1242 auto OldQuals = OldMethod->getMethodQualifiers(); in IsOverload()