Home
last modified time | relevance | path

Searched refs:TemplateArgs (Results 1 – 25 of 41) sorted by relevance

12

/external/clang/lib/Sema/
DSemaTemplateInstantiate.cpp134 if (const TemplateArgumentList *TemplateArgs in getTemplateInstantiationArgs() local
137 Result.addOuterTemplateArguments(TemplateArgs); in getTemplateInstantiationArgs()
206 Decl *Entity, NamedDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
223 Inst.TemplateArgs = TemplateArgs.data(); in InstantiatingTemplate()
224 Inst.NumTemplateArgs = TemplateArgs.size(); in InstantiatingTemplate()
250 ArrayRef<TemplateArgument> TemplateArgs, SourceRange InstantiationRange) in InstantiatingTemplate() argument
255 TemplateArgs) {} in InstantiatingTemplate()
260 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
265 TemplateArgs, &DeductionInfo) {} in InstantiatingTemplate()
270 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
[all …]
DSemaTemplateInstantiateDecl.cpp41 const MultiLevelTemplateArgumentList &TemplateArgs) { in SubstQualifier() argument
56 TemplateArgs); in SubstQualifier()
67 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
72 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
79 Sema &S, const MultiLevelTemplateArgumentList &TemplateArgs, in instantiateDependentAlignedAttr() argument
84 ExprResult Result = S.SubstExpr(Aligned->getAlignmentExpr(), TemplateArgs); in instantiateDependentAlignedAttr()
90 TemplateArgs, Aligned->getLocation(), in instantiateDependentAlignedAttr()
99 Sema &S, const MultiLevelTemplateArgumentList &TemplateArgs, in instantiateDependentAlignedAttr() argument
102 instantiateDependentAlignedAttr(S, TemplateArgs, Aligned, New, false); in instantiateDependentAlignedAttr()
121 Unexpanded, TemplateArgs, Expand, in instantiateDependentAlignedAttr()
[all …]
DSemaTemplate.cpp413 const TemplateArgumentListInfo *TemplateArgs) { in ActOnDependentIdExpression() argument
428 FirstQualifierInScope, NameInfo, TemplateArgs); in ActOnDependentIdExpression()
431 return BuildDependentDeclRefExpr(SS, TemplateKWLoc, NameInfo, TemplateArgs); in ActOnDependentIdExpression()
438 const TemplateArgumentListInfo *TemplateArgs) { in BuildDependentDeclRefExpr() argument
441 TemplateArgs); in BuildDependentDeclRefExpr()
524 TemplateArgumentListInfo &TemplateArgs) { in translateTemplateArguments() argument
526 TemplateArgs.addArgument(translateTemplateArgument(*this, in translateTemplateArguments()
2026 TemplateArgumentListInfo &TemplateArgs) { in checkBuiltinTemplateIdType() argument
2036 SemaRef.Diag(TemplateArgs[1].getLocation(), in checkBuiltinTemplateIdType()
2046 SemaRef.Diag(TemplateArgs[2].getLocation(), in checkBuiltinTemplateIdType()
[all …]
DSemaExprMember.cpp237 const TemplateArgumentListInfo *TemplateArgs, in BuildPossibleImplicitMemberExpr() argument
241 return BuildImplicitMemberExpr(SS, TemplateKWLoc, R, TemplateArgs, true, S); in BuildPossibleImplicitMemberExpr()
246 return BuildImplicitMemberExpr(SS, TemplateKWLoc, R, TemplateArgs, false, in BuildPossibleImplicitMemberExpr()
257 if (TemplateArgs || TemplateKWLoc.isValid()) in BuildPossibleImplicitMemberExpr()
258 return BuildTemplateIdExpr(SS, TemplateKWLoc, R, false, TemplateArgs); in BuildPossibleImplicitMemberExpr()
449 const TemplateArgumentListInfo *TemplateArgs) { in ActOnDependentMemberExpr() argument
479 NameInfo, TemplateArgs); in ActOnDependentMemberExpr()
708 const TemplateArgumentListInfo *TemplateArgs, in BuildMemberReferenceExpr() argument
716 NameInfo, TemplateArgs); in BuildMemberReferenceExpr()
727 SS, TemplateArgs != nullptr, TE)) in BuildMemberReferenceExpr()
[all …]
DSemaTemplateVariadic.cpp541 const MultiLevelTemplateArgumentList &TemplateArgs, bool &ShouldExpand, in CheckParameterPacksForExpansion() argument
593 if (Depth >= TemplateArgs.getNumLevels() || in CheckParameterPacksForExpansion()
594 !TemplateArgs.hasTemplateArgument(Depth, Index)) { in CheckParameterPacksForExpansion()
600 NewPackSize = TemplateArgs(Depth, Index).pack_size(); in CheckParameterPacksForExpansion()
647 const MultiLevelTemplateArgumentList &TemplateArgs) { in getNumArgumentsInExpansion() argument
684 if (Depth >= TemplateArgs.getNumLevels() || in getNumArgumentsInExpansion()
685 !TemplateArgs.hasTemplateArgument(Depth, Index)) in getNumArgumentsInExpansion()
691 unsigned Size = TemplateArgs(Depth, Index).pack_size(); in getNumArgumentsInExpansion()
DSemaCXXScopeSpec.cpp872 TemplateArgumentListInfo TemplateArgs(LAngleLoc, RAngleLoc); in ActOnCXXNestedNameSpecifier() local
873 translateTemplateArguments(TemplateArgsIn, TemplateArgs); in ActOnCXXNestedNameSpecifier()
883 TemplateArgs); in ActOnCXXNestedNameSpecifier()
895 for (unsigned I = 0, N = TemplateArgs.size(); I != N; ++I) in ActOnCXXNestedNameSpecifier()
896 SpecTL.setArgLocInfo(I, TemplateArgs[I].getLocInfo()); in ActOnCXXNestedNameSpecifier()
919 TemplateArgs); in ActOnCXXNestedNameSpecifier()
939 for (unsigned I = 0, N = TemplateArgs.size(); I != N; ++I) in ActOnCXXNestedNameSpecifier()
940 SpecTL.setArgLocInfo(I, TemplateArgs[I].getLocInfo()); in ActOnCXXNestedNameSpecifier()
DSemaTemplateDeduction.cpp2117 const TemplateArgumentList &TemplateArgs, in FinishTemplateArgumentDeduction() argument
2149 TemplateArgumentList TemplateArgs(TemplateArgumentList::OnStack, in FinishTemplateArgumentDeduction() local
2152 MultiLevelTemplateArgumentList(TemplateArgs), in FinishTemplateArgumentDeduction()
2222 if (!isSameTemplateArg(S.Context, TemplateArgs[I], InstArg)) { in FinishTemplateArgumentDeduction()
2224 Info.FirstArg = TemplateArgs[I]; in FinishTemplateArgumentDeduction()
2241 const TemplateArgumentList &TemplateArgs, in DeduceTemplateArguments() argument
2262 TemplateArgs, Info, Deduced)) in DeduceTemplateArguments()
2274 return ::FinishTemplateArgumentDeduction(*this, Partial, TemplateArgs, in DeduceTemplateArguments()
2287 const TemplateArgumentList &TemplateArgs, in FinishTemplateArgumentDeduction() argument
2317 TemplateArgumentList TemplateArgs(TemplateArgumentList::OnStack, in FinishTemplateArgumentDeduction() local
[all …]
DSemaAccess.cpp1497 const MultiLevelTemplateArgumentList &TemplateArgs) { in HandleDependentAccessCheck() argument
1502 TemplateArgs); in HandleDependentAccessCheck()
1505 TemplateArgs); in HandleDependentAccessCheck()
1513 BaseObjectType = SubstType(BaseObjectType, TemplateArgs, Loc, in HandleDependentAccessCheck()
/external/clang/include/clang/Sema/
DTemplate.h56 MultiLevelTemplateArgumentList(const TemplateArgumentList &TemplateArgs) { in MultiLevelTemplateArgumentList() argument
57 addOuterTemplateArguments(&TemplateArgs); in MultiLevelTemplateArgumentList()
96 void addOuterTemplateArguments(const TemplateArgumentList *TemplateArgs) { in addOuterTemplateArguments() argument
97 addOuterTemplateArguments(ArgList(TemplateArgs->data(), in addOuterTemplateArguments()
98 TemplateArgs->size())); in addOuterTemplateArguments()
377 const MultiLevelTemplateArgumentList &TemplateArgs; variable
398 const MultiLevelTemplateArgumentList &TemplateArgs) in TemplateDeclInstantiator() argument
401 Owner(Owner), TemplateArgs(TemplateArgs), LateAttrs(nullptr), in TemplateDeclInstantiator()
DParsedTemplate.h195 ParsedTemplateArgument *TemplateArgs = TemplateId->getTemplateArgs(); in Allocate() local
197 new (TemplateArgs + I) ParsedTemplateArgument(); in Allocate()
DSema.h3687 const TemplateArgumentListInfo *&TemplateArgs);
3703 const TemplateArgumentListInfo *TemplateArgs);
3714 const TemplateArgumentListInfo *TemplateArgs = nullptr);
3727 const TemplateArgumentListInfo *TemplateArgs,
3732 const TemplateArgumentListInfo *TemplateArgs,
3748 const TemplateArgumentListInfo *TemplateArgs);
3757 const TemplateArgumentListInfo *TemplateArgs = nullptr,
3859 const TemplateArgumentListInfo *TemplateArgs,
3868 const TemplateArgumentListInfo *TemplateArgs,
3885 const TemplateArgumentListInfo *TemplateArgs);
[all …]
/external/clang/include/clang/AST/
DDeclTemplate.h397 const TemplateArgumentList *TemplateArgs, in FunctionTemplateSpecializationInfo() argument
402 TemplateArguments(TemplateArgs), in FunctionTemplateSpecializationInfo()
410 const TemplateArgumentList *TemplateArgs,
483 Profile(llvm::FoldingSetNodeID &ID, ArrayRef<TemplateArgument> TemplateArgs, in Profile() argument
485 ID.AddInteger(TemplateArgs.size()); in Profile()
486 for (unsigned Arg = 0; Arg != TemplateArgs.size(); ++Arg) in Profile()
487 TemplateArgs[Arg].Profile(ID, Context); in Profile()
581 const TemplateArgumentListInfo &TemplateArgs);
586 const TemplateArgumentListInfo &TemplateArgs);
1540 const TemplateArgumentList *TemplateArgs;
[all …]
DExprCXX.h2462 const TemplateArgumentListInfo *TemplateArgs,
2649 const TemplateArgumentListInfo *TemplateArgs, in UnresolvedLookupExpr() argument
2652 NameInfo, TemplateArgs, Begin, End, false, false, false), in UnresolvedLookupExpr()
2772 const TemplateArgumentListInfo *TemplateArgs);
3142 const TemplateArgumentListInfo *TemplateArgs);
3157 const TemplateArgumentListInfo *TemplateArgs);
3370 const TemplateArgumentListInfo *TemplateArgs,
3387 const TemplateArgumentListInfo *TemplateArgs,
DDecl.h1639 const TemplateArgumentList *TemplateArgs,
2206 const TemplateArgumentList *TemplateArgs,
2211 setFunctionTemplateSpecialization(getASTContext(), Template, TemplateArgs,
2220 const TemplateArgumentListInfo &TemplateArgs);
/external/clang/lib/AST/
DItaniumMangle.cpp338 const TemplateArgument *TemplateArgs,
356 const TemplateArgument *TemplateArgs,
398 void mangleTemplateArgs(const ASTTemplateArgumentListInfo &TemplateArgs);
399 void mangleTemplateArgs(const TemplateArgument *TemplateArgs,
557 isTemplate(const NamedDecl *ND, const TemplateArgumentList *&TemplateArgs) { in isTemplate() argument
561 TemplateArgs = FD->getTemplateSpecializationArgs(); in isTemplate()
569 TemplateArgs = &Spec->getTemplateArgs(); in isTemplate()
576 TemplateArgs = &Spec->getTemplateArgs(); in isTemplate()
607 const TemplateArgumentList *TemplateArgs = nullptr; in mangleName() local
608 if (const TemplateDecl *TD = isTemplate(ND, TemplateArgs)) { in mangleName()
[all …]
DDeclTemplate.cpp477 SmallVector<TemplateArgument, 16> TemplateArgs; in getInjectedClassNameSpecialization() local
478 TemplateArgs.resize(Params->size()); in getInjectedClassNameSpecialization()
479 GenerateInjectedTemplateArgs(getASTContext(), Params, TemplateArgs.data()); in getInjectedClassNameSpecialization()
482 &TemplateArgs[0], in getInjectedClassNameSpecialization()
483 TemplateArgs.size()); in getInjectedClassNameSpecialization()
708 const TemplateArgumentList *TemplateArgs, in Create() argument
717 TemplateArgs, in Create()
744 TemplateArgs(TemplateArgumentList::CreateCopy(Context, Args, NumArgs)), in ClassTemplateSpecializationDecl()
786 const TemplateArgumentList &TemplateArgs = getTemplateArgs(); in getNameForDiagnostic() local
788 OS, TemplateArgs.data(), TemplateArgs.size(), Policy); in getNameForDiagnostic()
[all …]
DExprCXX.cpp324 const TemplateArgumentListInfo *TemplateArgs, in OverloadExpr() argument
343 HasTemplateKWAndArgsInfo(TemplateArgs != nullptr || in OverloadExpr()
366 if (TemplateArgs) { in OverloadExpr()
370 getTemplateKWAndArgsInfo()->initializeFrom(TemplateKWLoc, *TemplateArgs, in OverloadExpr()
1206 const TemplateArgumentListInfo *TemplateArgs) in CXXDependentScopeMemberExpr() argument
1215 HasTemplateKWAndArgsInfo(TemplateArgs != nullptr || in CXXDependentScopeMemberExpr()
1220 if (TemplateArgs) { in CXXDependentScopeMemberExpr()
1224 getTemplateKWAndArgsInfo()->initializeFrom(TemplateKWLoc, *TemplateArgs, in CXXDependentScopeMemberExpr()
1263 const TemplateArgumentListInfo *TemplateArgs) { in Create() argument
1264 if (!TemplateArgs && !TemplateKWLoc.isValid()) in Create()
[all …]
DMicrosoftMangle.cpp289 const TemplateArgumentList &TemplateArgs);
316 const TemplateArgumentList &TemplateArgs);
661 isTemplate(const NamedDecl *ND, const TemplateArgumentList *&TemplateArgs) { in isTemplate() argument
665 TemplateArgs = FD->getTemplateSpecializationArgs(); in isTemplate()
673 TemplateArgs = &Spec->getTemplateArgs(); in isTemplate()
680 TemplateArgs = &Spec->getTemplateArgs(); in isTemplate()
695 const TemplateArgumentList *TemplateArgs = nullptr; in mangleUnqualifiedName() local
696 if (const TemplateDecl *TD = isTemplate(ND, TemplateArgs)) { in mangleUnqualifiedName()
701 mangleTemplateInstantiationName(TD, *TemplateArgs); in mangleUnqualifiedName()
724 Extra.mangleTemplateInstantiationName(TD, *TemplateArgs); in mangleUnqualifiedName()
[all …]
DTypePrinter.cpp880 const TemplateArgumentList &TemplateArgs = Spec->getTemplateArgs(); in AppendScope() local
882 TemplateArgs.data(), in AppendScope()
883 TemplateArgs.size(), in AppendScope()
968 const TemplateArgumentList &TemplateArgs = Spec->getTemplateArgs(); in printTag() local
969 Args = TemplateArgs.data(); in printTag()
970 NumArgs = TemplateArgs.size(); in printTag()
DDecl.cpp1428 const TemplateArgumentList &TemplateArgs = Spec->getTemplateArgs(); in printQualifiedName() local
1430 TemplateArgs.data(), in printQualifiedName()
1431 TemplateArgs.size(), in printQualifiedName()
2366 const TemplateArgumentList *TemplateArgs = getTemplateSpecializationArgs(); in getNameForDiagnostic() local
2367 if (TemplateArgs) in getNameForDiagnostic()
2369 OS, TemplateArgs->data(), TemplateArgs->size(), Policy); in getNameForDiagnostic()
3106 const TemplateArgumentList *TemplateArgs, in setFunctionTemplateSpecialization() argument
3117 TemplateArgs, in setFunctionTemplateSpecialization()
3127 const TemplateArgumentListInfo &TemplateArgs) { in setDependentTemplateSpecialization() argument
3131 TemplateArgs); in setDependentTemplateSpecialization()
DExpr.cpp328 const TemplateArgumentListInfo *TemplateArgs, in DeclRefExpr() argument
345 = (TemplateArgs || TemplateKWLoc.isValid()) ? 1 : 0; in DeclRefExpr()
348 if (TemplateArgs) { in DeclRefExpr()
352 getTemplateKWAndArgsInfo()->initializeFrom(TemplateKWLoc, *TemplateArgs, in DeclRefExpr()
376 const TemplateArgumentListInfo *TemplateArgs) { in Create() argument
380 T, VK, FoundD, TemplateArgs); in Create()
392 const TemplateArgumentListInfo *TemplateArgs) { in Create() argument
402 if (TemplateArgs) { in Create()
405 Size += ASTTemplateKWAndArgsInfo::sizeFor(TemplateArgs->size()); in Create()
415 NameInfo, FoundD, TemplateArgs, T, VK); in Create()
/external/clang/lib/Parse/
DParseTemplate.cpp884 TemplateArgList &TemplateArgs, in ParseTemplateIdAfterTemplateName() argument
896 Invalid = ParseTemplateArgumentList(TemplateArgs); in ParseTemplateIdAfterTemplateName()
963 TemplateArgList TemplateArgs; in AnnotateTemplateIdToken() local
967 TemplateArgs, in AnnotateTemplateIdToken()
977 ASTTemplateArgsPtr TemplateArgsPtr(TemplateArgs); in AnnotateTemplateIdToken()
1005 = TemplateIdAnnotation::Allocate(TemplateArgs.size(), TemplateIds); in AnnotateTemplateIdToken()
1021 for (unsigned Arg = 0, ArgEnd = TemplateArgs.size(); Arg != ArgEnd; ++Arg) in AnnotateTemplateIdToken()
1022 Args[Arg] = ParsedTemplateArgument(TemplateArgs[Arg]); in AnnotateTemplateIdToken()
1249 Parser::ParseTemplateArgumentList(TemplateArgList &TemplateArgs) { in ParseTemplateArgumentList() argument
1266 TemplateArgs.push_back(Arg); in ParseTemplateArgumentList()
DParseExprCXX.cpp2051 TemplateArgList TemplateArgs; in ParseUnqualifiedIdTemplateId() local
2055 TemplateArgs, in ParseUnqualifiedIdTemplateId()
2065 = TemplateIdAnnotation::Allocate(TemplateArgs.size(), TemplateIds); in ParseUnqualifiedIdTemplateId()
2085 for (unsigned Arg = 0, ArgEnd = TemplateArgs.size(); in ParseUnqualifiedIdTemplateId()
2087 Args[Arg] = TemplateArgs[Arg]; in ParseUnqualifiedIdTemplateId()
2094 ASTTemplateArgsPtr TemplateArgsPtr(TemplateArgs); in ParseUnqualifiedIdTemplateId()
/external/llvm/lib/TableGen/
DTGParser.cpp32 std::vector<Init*> TemplateArgs; member
41 std::vector<Init*> TemplateArgs; member
54 for (Init *TA : TemplateArgs) in dump()
158 if (TArgs.size() < SubClass.TemplateArgs.size()) in AddSubClass()
165 if (i < SubClass.TemplateArgs.size()) { in AddSubClass()
168 std::vector<unsigned>(), SubClass.TemplateArgs[i])) in AddSubClass()
235 if (SMCTArgs.size() < SubMultiClass.TemplateArgs.size()) in AddSubMultiClass()
242 if (i < SubMultiClass.TemplateArgs.size()) { in AddSubMultiClass()
247 SubMultiClass.TemplateArgs[i])) in AddSubMultiClass()
262 SubMultiClass.TemplateArgs[i])) in AddSubMultiClass()
[all …]
/external/llvm/include/llvm/TableGen/
DRecord.h1154 std::vector<Init *> TemplateArgs; variable
1197 ID(LastID++), Name(O.Name), Locs(O.Locs), TemplateArgs(O.TemplateArgs), in Record()
1224 return TemplateArgs; in getTemplateArgs()
1231 for (Init *TA : TemplateArgs) in isTemplateArg()
1258 TemplateArgs.push_back(Name); in addTemplateArg()

12