Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/tools/clang/include/clang/Sema/
HDTemplate.h496 bool SubstQualifier(const DeclaratorDecl *OldDecl,
498 bool SubstQualifier(const TagDecl *OldDecl,
HDSema.h2139 NamedDecl *&OldDecl,
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaDecl.cpp5356 static void checkDLLAttributeRedeclaration(Sema &S, NamedDecl *OldDecl, in checkDLLAttributeRedeclaration() argument
5359 if (TemplateDecl *OldTD = dyn_cast<TemplateDecl>(OldDecl)) in checkDLLAttributeRedeclaration()
5360 OldDecl = OldTD->getTemplatedDecl(); in checkDLLAttributeRedeclaration()
5364 if (!OldDecl || !NewDecl) in checkDLLAttributeRedeclaration()
5367 const DLLImportAttr *OldImportAttr = OldDecl->getAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
5368 const DLLExportAttr *OldExportAttr = OldDecl->getAttr<DLLExportAttr>(); in checkDLLAttributeRedeclaration()
5383 if (AddsAttr && !IsSpecialization && !OldDecl->isImplicit()) { in checkDLLAttributeRedeclaration()
5386 if (!OldDecl->isCXXClassMember()) { in checkDLLAttributeRedeclaration()
5387 auto *VD = dyn_cast<VarDecl>(OldDecl); in checkDLLAttributeRedeclaration()
5390 auto *FD = dyn_cast<FunctionDecl>(OldDecl); in checkDLLAttributeRedeclaration()
[all …]
HDSemaTemplateInstantiateDecl.cpp40 static bool SubstQualifier(Sema &SemaRef, const DeclT *OldDecl, DeclT *NewDecl, in SubstQualifier() argument
42 if (!OldDecl->getQualifierLoc()) in SubstQualifier()
46 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier()
52 : OldDecl->getLexicalDeclContext())); in SubstQualifier()
55 = SemaRef.SubstNestedNameSpecifierLoc(OldDecl->getQualifierLoc(), in SubstQualifier()
65 bool TemplateDeclInstantiator::SubstQualifier(const DeclaratorDecl *OldDecl, in SubstQualifier() argument
67 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
70 bool TemplateDeclInstantiator::SubstQualifier(const TagDecl *OldDecl, in SubstQualifier() argument
72 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
HDSemaDeclCXX.cpp7815 NamedDecl *OldDecl = nullptr; in CheckUsingShadowDecl() local
7816 switch (CheckOverload(nullptr, FD, Previous, OldDecl, in CheckUsingShadowDecl()
7839 Diag(OldDecl->getLocation(), diag::note_using_decl_conflict); in CheckUsingShadowDecl()
8580 TypeAliasTemplateDecl *OldDecl = nullptr; in ActOnAliasDeclaration() local
8596 OldDecl = Previous.getAsSingle<TypeAliasTemplateDecl>(); in ActOnAliasDeclaration()
8597 if (!OldDecl && !Invalid) { in ActOnAliasDeclaration()
8608 if (!Invalid && OldDecl && !OldDecl->isInvalidDecl()) { in ActOnAliasDeclaration()
8610 OldDecl->getTemplateParameters(), in ActOnAliasDeclaration()
8613 OldTemplateParams = OldDecl->getTemplateParameters(); in ActOnAliasDeclaration()
8617 TypeAliasDecl *OldTD = OldDecl->getTemplatedDecl(); in ActOnAliasDeclaration()
[all …]