Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DTemplate.h721 bool SubstQualifier(const DeclaratorDecl *OldDecl,
723 bool SubstQualifier(const TagDecl *OldDecl,
H A DSema.h4005 bool shouldLinkDependentDeclWithPrevious(Decl *D, Decl *OldDecl);
10018 const LookupResult &OldDecls, NamedDecl *&OldDecl,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp7119 static void checkDLLAttributeRedeclaration(Sema &S, NamedDecl *OldDecl, in checkDLLAttributeRedeclaration() argument
7123 if (OldDecl->isInvalidDecl() || NewDecl->isInvalidDecl()) in checkDLLAttributeRedeclaration()
7127 if (TemplateDecl *OldTD = dyn_cast<TemplateDecl>(OldDecl)) { in checkDLLAttributeRedeclaration()
7128 OldDecl = OldTD->getTemplatedDecl(); in checkDLLAttributeRedeclaration()
7138 if (!OldDecl || !NewDecl) in checkDLLAttributeRedeclaration()
7141 const DLLImportAttr *OldImportAttr = OldDecl->getAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
7142 const DLLExportAttr *OldExportAttr = OldDecl->getAttr<DLLExportAttr>(); in checkDLLAttributeRedeclaration()
7157 if (AddsAttr && !IsSpecialization && !OldDecl->isImplicit()) { in checkDLLAttributeRedeclaration()
7160 if (!OldDecl->isCXXClassMember()) { in checkDLLAttributeRedeclaration()
7161 auto *VD = dyn_cast<VarDecl>(OldDecl); in checkDLLAttributeRedeclaration()
[all …]
H A DSemaTemplateInstantiateDecl.cpp53 static bool SubstQualifier(Sema &SemaRef, const DeclT *OldDecl, DeclT *NewDecl, in SubstQualifier() argument
55 if (!OldDecl->getQualifierLoc()) in SubstQualifier()
59 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier()
65 : OldDecl->getLexicalDeclContext())); in SubstQualifier()
68 = SemaRef.SubstNestedNameSpecifierLoc(OldDecl->getQualifierLoc(), in SubstQualifier()
78 bool TemplateDeclInstantiator::SubstQualifier(const DeclaratorDecl *OldDecl, in SubstQualifier() argument
80 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
83 bool TemplateDeclInstantiator::SubstQualifier(const TagDecl *OldDecl, in SubstQualifier() argument
85 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
1357 const OpenACCRoutineDeclAttr *OldAttr, const Decl *OldDecl, Decl *NewDecl) { in instantiateDependentOpenACCRoutineDeclAttr() argument
[all …]
H A DSemaDeclCXX.cpp12791 NamedDecl *OldDecl = nullptr; in CheckUsingShadowDecl() local
12792 switch (CheckOverload(nullptr, FD, Previous, OldDecl, in CheckUsingShadowDecl()
12815 Diag(OldDecl->getLocation(), diag::note_using_decl_conflict); in CheckUsingShadowDecl()
13718 TypeAliasTemplateDecl *OldDecl = nullptr; in ActOnAliasDeclaration() local
13739 OldDecl = Previous.getAsSingle<TypeAliasTemplateDecl>(); in ActOnAliasDeclaration()
13740 if (!OldDecl && !Invalid) { in ActOnAliasDeclaration()
13751 if (!Invalid && OldDecl && !OldDecl->isInvalidDecl()) { in ActOnAliasDeclaration()
13753 OldDecl->getTemplateParameters(), in ActOnAliasDeclaration()
13757 OldDecl->getMostRecentDecl()->getTemplateParameters(); in ActOnAliasDeclaration()
13761 TypeAliasDecl *OldTD = OldDecl->getTemplatedDecl(); in ActOnAliasDeclaration()
[all …]
H A DSemaOverload.cpp1338 NamedDecl *OldDecl = Old; in IsOverloadOrOverrideImpl() local
1384 OldDecl = OldTemplate; in IsOverloadOrOverrideImpl()
1567 !SemaRef.AreConstraintExpressionsEqual(OldDecl, OldRC.ConstraintExpr, in IsOverloadOrOverrideImpl()