Home
last modified time | relevance | path

Searched refs:VarTemplateDecl (Results 1 – 25 of 26) sorted by relevance

12

/external/clang/lib/AST/
DDeclTemplate.cpp934 void VarTemplateDecl::DeallocateCommon(void *Ptr) { in DeallocateCommon()
938 VarTemplateDecl *VarTemplateDecl::getDefinition() { in getDefinition()
939 VarTemplateDecl *CurD = this; in getDefinition()
948 VarTemplateDecl *VarTemplateDecl::Create(ASTContext &C, DeclContext *DC, in Create()
952 return new (C, DC) VarTemplateDecl(C, DC, L, Name, Params, Decl); in Create()
955 VarTemplateDecl *VarTemplateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
957 return new (C, ID) VarTemplateDecl(C, nullptr, SourceLocation(), in CreateDeserialized()
963 void VarTemplateDecl::LoadLazySpecializations() const { in LoadLazySpecializations()
979 VarTemplateDecl::getSpecializations() const { in getSpecializations()
985 VarTemplateDecl::getPartialSpecializations() { in getPartialSpecializations()
[all …]
DASTImporter.cpp136 bool IsStructuralMatch(VarTemplateDecl *From, VarTemplateDecl *To);
177 Decl *VisitVarTemplateDecl(VarTemplateDecl *D);
2409 bool ASTNodeImporter::IsStructuralMatch(VarTemplateDecl *From, in IsStructuralMatch()
2410 VarTemplateDecl *To) { in IsStructuralMatch()
4593 Decl *ASTNodeImporter::VisitVarTemplateDecl(VarTemplateDecl *D) { in VisitVarTemplateDecl()
4629 if (VarTemplateDecl *FoundTemplate = dyn_cast<VarTemplateDecl>(Found)) { in VisitVarTemplateDecl()
4681 VarTemplateDecl *D2 = VarTemplateDecl::Create( in VisitVarTemplateDecl()
4715 VarTemplateDecl *VarTemplate = cast_or_null<VarTemplateDecl>( in VisitVarTemplateSpecializationDecl()
DDecl.cpp522 VarTemplateDecl *temp = spec->getSpecializedTemplate(); in mergeTemplateLV()
2276 VarTemplateDecl *VarDecl::getDescribedVarTemplate() const { in getDescribedVarTemplate()
2278 .dyn_cast<VarTemplateDecl *>(); in getDescribedVarTemplate()
2281 void VarDecl::setDescribedVarTemplate(VarTemplateDecl *Template) { in setDescribedVarTemplate()
DASTDumper.cpp465 void VisitVarTemplateDecl(const VarTemplateDecl *D);
1419 void ASTDumper::VisitVarTemplateDecl(const VarTemplateDecl *D) { in VisitVarTemplateDecl()
/external/clang/include/clang/AST/
DDeclTemplate.h40 class VarTemplateDecl; variable
2391 llvm::PointerUnion<VarTemplateDecl *, SpecializedPartialSpecialization *>
2425 VarTemplateDecl *SpecializedTemplate,
2435 SourceLocation IdLoc, VarTemplateDecl *SpecializedTemplate, QualType T,
2450 VarTemplateDecl *getSpecializedTemplate() const;
2499 llvm::PointerUnion<VarTemplateDecl *, VarTemplatePartialSpecializationDecl *>
2502 return llvm::PointerUnion<VarTemplateDecl *,
2510 llvm::PointerUnion<VarTemplateDecl *, VarTemplatePartialSpecializationDecl *>
2516 return SpecializedTemplate.get<VarTemplateDecl *>();
2554 void setInstantiationOf(VarTemplateDecl *TemplDecl) {
[all …]
DASTMutationListener.h38 class VarTemplateDecl; variable
65 AddedCXXTemplateSpecialization(const VarTemplateDecl *TD, in AddedCXXTemplateSpecialization()
DDecl.h52 class VarTemplateDecl; variable
1346 VarTemplateDecl *getDescribedVarTemplate() const;
1348 void setDescribedVarTemplate(VarTemplateDecl *Template);
DASTContext.h317 typedef llvm::PointerUnion<VarTemplateDecl *, MemberSpecializationInfo *>
DRecursiveASTVisitor.h1562 VarTemplateDecl *D) {
/external/clang/include/clang/Sema/
DTemplate.h393 std::pair<VarTemplateDecl *, VarTemplatePartialSpecializationDecl *>, 4>
460 VarTemplateDecl *, VarTemplatePartialSpecializationDecl *> >::iterator
502 VarTemplateDecl *VarTemplate, VarDecl *FromVar, void *InsertPos,
513 VarTemplateDecl *VarTemplate,
DSema.h5784 DeclResult CheckVarTemplateId(VarTemplateDecl *Template,
5791 VarTemplateDecl *Template,
7266 VarTemplateDecl *VarTemplate, VarDecl *FromVar,
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp1243 Decl *TemplateDeclInstantiator::VisitVarTemplateDecl(VarTemplateDecl *D) { in VisitVarTemplateDecl()
1256 VarTemplateDecl *PrevVarTemplate = nullptr; in VisitVarTemplateDecl()
1261 PrevVarTemplate = dyn_cast<VarTemplateDecl>(Found.front()); in VisitVarTemplateDecl()
1271 VarTemplateDecl *Inst = VarTemplateDecl::Create( in VisitVarTemplateDecl()
1308 VarTemplateDecl *VarTemplate = D->getSpecializedTemplate(); in VisitVarTemplatePartialSpecializationDecl()
1314 VarTemplateDecl *InstVarTemplate = dyn_cast<VarTemplateDecl>(Found.front()); in VisitVarTemplatePartialSpecializationDecl()
2805 VarTemplateDecl *VarTemplate = D->getSpecializedTemplate(); in VisitVarTemplateSpecializationDecl()
2839 VarTemplateDecl *VarTemplate, VarDecl *D, void *InsertPos, in VisitVarTemplateSpecializationDecl()
3072 VarTemplateDecl *VarTemplate, in InstantiateVarTemplatePartialSpecialization()
3713 VarTemplateDecl *VarTemplate, VarDecl *FromVar, in BuildVarTemplateInstantiation()
[all …]
DSemaExprMember.cpp935 getVarTemplateSpecialization(Sema &S, VarTemplateDecl *VarTempl, in getVarTemplateSpecialization()
1132 assert((!TemplateArgs || isa<VarTemplateDecl>(MemberDecl)) && in BuildMemberReferenceExpr()
1134 if (isa<VarTemplateDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
1136 *this, cast<VarTemplateDecl>(MemberDecl), TemplateArgs, in BuildMemberReferenceExpr()
1199 if (VarTemplateDecl *VarTempl = dyn_cast<VarTemplateDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
DSemaTemplate.cpp214 isa<TypeAliasTemplateDecl>(TD) || isa<VarTemplateDecl>(TD) || in isTemplateName()
217 isa<VarTemplateDecl>(TD) ? TNK_Var_template : TNK_Type_template; in isTemplateName()
2021 : isa<VarTemplateDecl>(Template) in NoteAllFoundTemplates()
2131 isa<VarTemplateDecl>(Template)) { in CheckTemplateIdType()
2539 VarTemplateDecl *VarTemplate = in ActOnVarTemplateSpecialization()
2540 dyn_cast_or_null<VarTemplateDecl>(Name.getAsTemplateDecl()); in ActOnVarTemplateSpecialization()
2756 Sema::CheckVarTemplateId(VarTemplateDecl *Template, SourceLocation TemplateLoc, in CheckVarTemplateId()
2915 VarTemplateDecl *Template, SourceLocation TemplateLoc, in CheckVarTemplateId()
2954 if (R.getAsSingle<VarTemplateDecl>() && in BuildTemplateIdExpr()
2958 R.getAsSingle<VarTemplateDecl>(), in BuildTemplateIdExpr()
[all …]
DSemaCXXScopeSpec.cpp935 isa<FunctionTemplateDecl>(TD) || isa<VarTemplateDecl>(TD)) { in ActOnCXXNestedNameSpecifier()
941 << (TD && isa<VarTemplateDecl>(TD)) << Template.get() << R; in ActOnCXXNestedNameSpecifier()
DSemaTemplateInstantiate.cpp80 llvm::PointerUnion<VarTemplateDecl*, in getTemplateInstantiationArgs()
88 VarTemplateDecl *Tmpl = Specialized.get<VarTemplateDecl *>(); in getTemplateInstantiationArgs()
DSemaDecl.cpp990 IsVarTemplate = isa<VarTemplateDecl>(TD); in ClassifyName()
2672 static bool isExternC(VarTemplateDecl *) { return false; } in isExternC() argument
3476 VarTemplateDecl *NewTemplate = New->getDescribedVarTemplate(); in MergeVarDecl()
3480 VarTemplateDecl *OldTemplate = nullptr; in MergeVarDecl()
3483 OldTemplate = dyn_cast<VarTemplateDecl>(Previous.getFoundDecl()); in MergeVarDecl()
3488 if (checkUsingShadowRedecl<VarTemplateDecl>(*this, Shadow, NewTemplate)) in MergeVarDecl()
5973 VarTemplateDecl *NewTemplate = nullptr; in ActOnVariableDeclarator()
6105 VarTemplateDecl::Create(Context, DC, D.getIdentifierLoc(), Name, in ActOnVariableDeclarator()
6140 if (VarTemplateDecl *VTD = NewVD->getDescribedVarTemplate()) in ActOnVariableDeclarator()
6421 if (VarTemplateDecl *VarTmpl = dyn_cast<VarTemplateDecl>(PreviousDecl)) { in ActOnVariableDeclarator()
[all …]
DSemaTemplateDeduction.cpp2351 VarTemplateDecl *VarTemplate = Partial->getSpecializedTemplate(); in FinishTemplateArgumentDeduction()
DSemaDeclCXX.cpp2206 } else if (isa<VarDecl>(Member) || isa<VarTemplateDecl>(Member)) { in ActOnCXXMemberDeclarator()
2233 else if (VarTemplateDecl *VarTmpl = dyn_cast<VarTemplateDecl>(Member)) in ActOnCXXMemberDeclarator()
DSemaExpr.cpp2332 assert(R.getAsSingle<VarTemplateDecl>() && in ActOnIdExpression()
2848 Diag(Loc, diag::err_template_decl_ref) << (isa<VarTemplateDecl>(D) ? 1 : 0) in BuildDeclarationNameExpr()
/external/clang/lib/Frontend/
DMultiplexConsumer.cpp112 void AddedCXXTemplateSpecialization(const VarTemplateDecl *TD,
165 const VarTemplateDecl *TD, const VarTemplateSpecializationDecl *D) { in AddedCXXTemplateSpecialization()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp321 void VisitVarTemplateDecl(VarTemplateDecl *D);
1257 VD->setDescribedVarTemplate(ReadDeclAs<VarTemplateDecl>(Record, Idx)); in VisitVarDeclImpl()
1953 void ASTDeclReader::VisitVarTemplateDecl(VarTemplateDecl *D) { in VisitVarTemplateDecl()
2094 if (VarTemplateDecl *VTD = dyn_cast<VarTemplateDecl>(InstD)) { in VisitVarTemplateSpecializationDeclImpl()
2130 VarTemplateDecl *CanonPattern = ReadDeclAs<VarTemplateDecl>(Record, Idx); in VisitVarTemplateSpecializationDeclImpl()
3313 D = VarTemplateDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
DASTWriterDecl.cpp104 void VisitVarTemplateDecl(VarTemplateDecl *D);
917 if (VarTemplateDecl *TemplD = D->getDescribedVarTemplate()) { in VisitVarDecl()
1395 void ASTDeclWriter::VisitVarTemplateDecl(VarTemplateDecl *D) { in VisitVarTemplateDecl()
1409 llvm::PointerUnion<VarTemplateDecl *, VarTemplatePartialSpecializationDecl *> in VisitVarTemplateSpecializationDecl()
1411 if (Decl *InstFromD = InstFrom.dyn_cast<VarTemplateDecl *>()) { in VisitVarTemplateSpecializationDecl()
/external/clang/lib/Parse/
DParseDeclCXX.cpp2605 if (VarTemplateDecl *VT = in ParseCXXClassMemberDeclaration()
2606 ThisDecl ? dyn_cast<VarTemplateDecl>(ThisDecl) : nullptr) in ParseCXXClassMemberDeclaration()
DParseDecl.cpp1977 if (VarTemplateDecl *VT = dyn_cast_or_null<VarTemplateDecl>(ThisDecl)) in ParseDeclarationAfterDeclaratorAndAttributes()

12