Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaOverload.cpp1338 CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in IsOverload() local
1340 if (OldMethod && NewMethod && in IsOverload()
1341 !OldMethod->isStatic() && !NewMethod->isStatic()) { in IsOverload()
1342 if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) { in IsOverload()
1344 (OldMethod->getRefQualifier() == RQ_None || in IsOverload()
1354 << NewMethod->getRefQualifier() << OldMethod->getRefQualifier(); in IsOverload()
1355 Diag(OldMethod->getLocation(), diag::note_previous_declaration); in IsOverload()
1364 auto OldQuals = OldMethod->getMethodQualifiers(); in IsOverload()
H A DSemaDecl.cpp3953 const CXXMethodDecl *OldMethod = dyn_cast<CXXMethodDecl>(Old); in MergeFunctionDecl() local
3955 if (OldMethod && NewMethod) { in MergeFunctionDecl()
3957 NewMethod->setTrivial(OldMethod->isTrivial()); in MergeFunctionDecl()
3963 OldMethod->isFunctionTemplateSpecialization() && in MergeFunctionDecl()
3972 if (OldMethod->isStatic() != NewMethod->isStatic()) { in MergeFunctionDecl()
3984 if (isa<CXXConstructorDecl>(OldMethod)) in MergeFunctionDecl()
4006 } else if (OldMethod->isImplicit()) { in MergeFunctionDecl()
4012 << New << getSpecialMember(OldMethod); in MergeFunctionDecl()
4015 } else if (OldMethod->getFirstDecl()->isExplicitlyDefaulted() && !isFriend) { in MergeFunctionDecl()
4018 << getSpecialMember(OldMethod); in MergeFunctionDecl()