Home
last modified time | relevance | path

Searched refs:OldDecl (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DTemplate.h597 bool SubstQualifier(const DeclaratorDecl *OldDecl,
599 bool SubstQualifier(const TagDecl *OldDecl,
H A DSema.h2694 bool shouldLinkDependentDeclWithPrevious(Decl *D, Decl *OldDecl);
3381 NamedDecl *&OldDecl,
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaDecl.cpp6483 static void checkDLLAttributeRedeclaration(Sema &S, NamedDecl *OldDecl, in checkDLLAttributeRedeclaration() argument
6487 if (OldDecl->isInvalidDecl() || NewDecl->isInvalidDecl()) in checkDLLAttributeRedeclaration()
6491 if (TemplateDecl *OldTD = dyn_cast<TemplateDecl>(OldDecl)) { in checkDLLAttributeRedeclaration()
6492 OldDecl = OldTD->getTemplatedDecl(); in checkDLLAttributeRedeclaration()
6502 if (!OldDecl || !NewDecl) in checkDLLAttributeRedeclaration()
6505 const DLLImportAttr *OldImportAttr = OldDecl->getAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
6506 const DLLExportAttr *OldExportAttr = OldDecl->getAttr<DLLExportAttr>(); in checkDLLAttributeRedeclaration()
6521 if (AddsAttr && !IsSpecialization && !OldDecl->isImplicit()) { in checkDLLAttributeRedeclaration()
6524 if (!OldDecl->isCXXClassMember()) { in checkDLLAttributeRedeclaration()
6525 auto *VD = dyn_cast<VarDecl>(OldDecl); in checkDLLAttributeRedeclaration()
[all …]
H A DSemaTemplateInstantiateDecl.cpp45 static bool SubstQualifier(Sema &SemaRef, const DeclT *OldDecl, DeclT *NewDecl, in SubstQualifier() argument
47 if (!OldDecl->getQualifierLoc()) in SubstQualifier()
51 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier()
57 : OldDecl->getLexicalDeclContext())); in SubstQualifier()
60 = SemaRef.SubstNestedNameSpecifierLoc(OldDecl->getQualifierLoc(), in SubstQualifier()
70 bool TemplateDeclInstantiator::SubstQualifier(const DeclaratorDecl *OldDecl, in SubstQualifier() argument
72 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
75 bool TemplateDeclInstantiator::SubstQualifier(const TagDecl *OldDecl, in SubstQualifier() argument
77 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
H A DSemaDeclCXX.cpp11741 NamedDecl *OldDecl = nullptr; in CheckUsingShadowDecl() local
11742 switch (CheckOverload(nullptr, FD, Previous, OldDecl, in CheckUsingShadowDecl()
11765 Diag(OldDecl->getLocation(), diag::note_using_decl_conflict); in CheckUsingShadowDecl()
12630 TypeAliasTemplateDecl *OldDecl = nullptr; in ActOnAliasDeclaration() local
12650 OldDecl = Previous.getAsSingle<TypeAliasTemplateDecl>(); in ActOnAliasDeclaration()
12651 if (!OldDecl && !Invalid) { in ActOnAliasDeclaration()
12662 if (!Invalid && OldDecl && !OldDecl->isInvalidDecl()) { in ActOnAliasDeclaration()
12664 OldDecl->getTemplateParameters(), in ActOnAliasDeclaration()
12668 OldDecl->getMostRecentDecl()->getTemplateParameters(); in ActOnAliasDeclaration()
12672 TypeAliasDecl *OldTD = OldDecl->getTemplatedDecl(); in ActOnAliasDeclaration()
[all …]