Home
last modified time | relevance | path

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

12345

/external/clang/lib/Sema/
DSemaTemplateInstantiate.cpp135 if (const TemplateArgumentList *TemplateArgs in getTemplateInstantiationArgs() local
138 Result.addOuterTemplateArguments(TemplateArgs); in getTemplateInstantiationArgs()
207 Decl *Entity, NamedDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
224 Inst.TemplateArgs = TemplateArgs.data(); in InstantiatingTemplate()
225 Inst.NumTemplateArgs = TemplateArgs.size(); in InstantiatingTemplate()
251 ArrayRef<TemplateArgument> TemplateArgs, SourceRange InstantiationRange) in InstantiatingTemplate() argument
256 TemplateArgs) {} in InstantiatingTemplate()
261 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
266 TemplateArgs, &DeductionInfo) {} in InstantiatingTemplate()
271 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 …]
DSemaExprMember.cpp238 const TemplateArgumentListInfo *TemplateArgs, in BuildPossibleImplicitMemberExpr() argument
242 return BuildImplicitMemberExpr(SS, TemplateKWLoc, R, TemplateArgs, true, S); in BuildPossibleImplicitMemberExpr()
247 return BuildImplicitMemberExpr(SS, TemplateKWLoc, R, TemplateArgs, false, in BuildPossibleImplicitMemberExpr()
258 if (TemplateArgs || TemplateKWLoc.isValid()) in BuildPossibleImplicitMemberExpr()
259 return BuildTemplateIdExpr(SS, TemplateKWLoc, R, false, TemplateArgs); in BuildPossibleImplicitMemberExpr()
463 const TemplateArgumentListInfo *TemplateArgs) { in ActOnDependentMemberExpr() argument
493 NameInfo, TemplateArgs); in ActOnDependentMemberExpr()
722 const TemplateArgumentListInfo *TemplateArgs, in BuildMemberReferenceExpr() argument
730 NameInfo, TemplateArgs); in BuildMemberReferenceExpr()
741 SS, TemplateArgs != nullptr, TE)) in BuildMemberReferenceExpr()
[all …]
DSemaTemplate.cpp415 const TemplateArgumentListInfo *TemplateArgs) { in ActOnDependentIdExpression() argument
443 FirstQualifierInScope, NameInfo, TemplateArgs); in ActOnDependentIdExpression()
446 return BuildDependentDeclRefExpr(SS, TemplateKWLoc, NameInfo, TemplateArgs); in ActOnDependentIdExpression()
453 const TemplateArgumentListInfo *TemplateArgs) { in BuildDependentDeclRefExpr() argument
456 TemplateArgs); in BuildDependentDeclRefExpr()
538 TemplateArgumentListInfo &TemplateArgs) { in translateTemplateArguments() argument
540 TemplateArgs.addArgument(translateTemplateArgument(*this, in translateTemplateArguments()
2043 TemplateArgumentListInfo &TemplateArgs) { in checkBuiltinTemplateIdType() argument
2053 SemaRef.Diag(TemplateArgs[1].getLocation(), in checkBuiltinTemplateIdType()
2063 SemaRef.Diag(TemplateArgs[2].getLocation(), in checkBuiltinTemplateIdType()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp46 const MultiLevelTemplateArgumentList &TemplateArgs) { in SubstQualifier() argument
61 TemplateArgs); in SubstQualifier()
72 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
77 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
84 Sema &S, const MultiLevelTemplateArgumentList &TemplateArgs, in instantiateDependentAlignedAttr() argument
90 ExprResult Result = S.SubstExpr(Aligned->getAlignmentExpr(), TemplateArgs); in instantiateDependentAlignedAttr()
95 TemplateArgs, Aligned->getLocation(), in instantiateDependentAlignedAttr()
103 Sema &S, const MultiLevelTemplateArgumentList &TemplateArgs, in instantiateDependentAlignedAttr() argument
106 instantiateDependentAlignedAttr(S, TemplateArgs, Aligned, New, false); in instantiateDependentAlignedAttr()
125 Unexpanded, TemplateArgs, Expand, in instantiateDependentAlignedAttr()
[all …]
DSemaTemplateInstantiate.cpp149 } else if (const TemplateArgumentList *TemplateArgs in getTemplateInstantiationArgs() local
152 Result.addOuterTemplateArguments(TemplateArgs); in getTemplateInstantiationArgs()
238 Decl *Entity, NamedDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
256 Inst.TemplateArgs = TemplateArgs.data(); in InstantiatingTemplate()
257 Inst.NumTemplateArgs = TemplateArgs.size(); in InstantiatingTemplate()
286 TemplateDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
292 Template, TemplateArgs) {} in InstantiatingTemplate()
297 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
302 TemplateArgs, &DeductionInfo) { in InstantiatingTemplate()
311 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
[all …]
DSemaExprMember.cpp236 const TemplateArgumentListInfo *TemplateArgs, const Scope *S, in BuildPossibleImplicitMemberExpr() argument
240 return BuildImplicitMemberExpr(SS, TemplateKWLoc, R, TemplateArgs, true, S); in BuildPossibleImplicitMemberExpr()
245 return BuildImplicitMemberExpr(SS, TemplateKWLoc, R, TemplateArgs, false, in BuildPossibleImplicitMemberExpr()
256 if (TemplateArgs || TemplateKWLoc.isValid()) in BuildPossibleImplicitMemberExpr()
257 return BuildTemplateIdExpr(SS, TemplateKWLoc, R, false, TemplateArgs); in BuildPossibleImplicitMemberExpr()
484 const TemplateArgumentListInfo *TemplateArgs) { in ActOnDependentMemberExpr() argument
514 NameInfo, TemplateArgs); in ActOnDependentMemberExpr()
748 const TemplateArgumentListInfo *TemplateArgs, in BuildMemberReferenceExpr() argument
756 NameInfo, TemplateArgs); in BuildMemberReferenceExpr()
767 SS, TemplateArgs != nullptr, TemplateKWLoc, TE)) in BuildMemberReferenceExpr()
[all …]
DSemaConcept.cpp195 Sema &S, const NamedDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, in calculateConstraintSatisfaction() argument
259 ArrayRef<TemplateArgument> TemplateArgs, in CheckConstraintSatisfaction() argument
267 for (auto& Arg : TemplateArgs) in CheckConstraintSatisfaction()
276 const_cast<NamedDecl *>(Template), TemplateArgs, TemplateIDRange); in CheckConstraintSatisfaction()
281 MLTAL.addOuterTemplateArguments(TemplateArgs); in CheckConstraintSatisfaction()
284 if (calculateConstraintSatisfaction(S, Template, TemplateArgs, in CheckConstraintSatisfaction()
300 ArrayRef<TemplateArgument> TemplateArgs, SourceRange TemplateIDRange, in CheckConstraintSatisfaction() argument
312 ConstraintSatisfaction::Profile(ID, Context, Template, TemplateArgs); in CheckConstraintSatisfaction()
318 Satisfaction = new ConstraintSatisfaction(Template, TemplateArgs); in CheckConstraintSatisfaction()
323 TemplateArgs, TemplateIDRange, in CheckConstraintSatisfaction()
[all …]
DSemaTemplate.cpp727 const TemplateArgumentListInfo *TemplateArgs) { in ActOnDependentIdExpression() argument
760 FirstQualifierInScope, NameInfo, TemplateArgs); in ActOnDependentIdExpression()
763 return BuildDependentDeclRefExpr(SS, TemplateKWLoc, NameInfo, TemplateArgs); in ActOnDependentIdExpression()
770 const TemplateArgumentListInfo *TemplateArgs) { in BuildDependentDeclRefExpr() argument
777 Context, QualifierLoc, TemplateKWLoc, NameInfo, TemplateArgs); in BuildDependentDeclRefExpr()
955 TemplateArgumentListInfo &TemplateArgs) { in translateTemplateArguments() argument
957 TemplateArgs.addArgument(translateTemplateArgument(*this, in translateTemplateArguments()
1096 TemplateArgumentListInfo TemplateArgs(TemplateId.LAngleLoc, in makeTemplateArgumentListInfo() local
1100 S.translateTemplateArguments(TemplateArgsPtr, TemplateArgs); in makeTemplateArgumentListInfo()
1101 return TemplateArgs; in makeTemplateArgumentListInfo()
[all …]
/external/llvm-project/clang/include/clang/AST/
DASTConcept.h33 llvm::SmallVector<TemplateArgument, 4> TemplateArgs; variable
40 ArrayRef<TemplateArgument> TemplateArgs) : in ConstraintSatisfaction() argument
41 ConstraintOwner(ConstraintOwner), TemplateArgs(TemplateArgs.begin(), in ConstraintSatisfaction()
42 TemplateArgs.end()) { } in ConstraintSatisfaction()
56 Profile(ID, C, ConstraintOwner, TemplateArgs); in Profile()
61 ArrayRef<TemplateArgument> TemplateArgs);
DDeclTemplate.h496 TemplateSpecializationKind TSK, const TemplateArgumentList *TemplateArgs, in FunctionTemplateSpecializationInfo() argument
500 TemplateArguments(TemplateArgs), in FunctionTemplateSpecializationInfo()
517 const TemplateArgumentList *TemplateArgs,
607 Profile(llvm::FoldingSetNodeID &ID, ArrayRef<TemplateArgument> TemplateArgs, in Profile() argument
609 ID.AddInteger(TemplateArgs.size()); in Profile()
610 for (const TemplateArgument &TemplateArg : TemplateArgs) in Profile()
704 const TemplateArgumentListInfo &TemplateArgs);
711 const TemplateArgumentListInfo &TemplateArgs);
1810 const TemplateArgumentList *TemplateArgs;
1836 const TemplateArgumentList *TemplateArgs;
[all …]
/external/llvm-project/clang/include/clang/Sema/
DParsedTemplate.h204 ArrayRef<ParsedTemplateArgument> TemplateArgs, bool ArgsInvalid, in Create()
207 totalSizeToAlloc<ParsedTemplateArgument>(TemplateArgs.size()))) in Create()
210 LAngleLoc, RAngleLoc, TemplateArgs, ArgsInvalid); in Create()
245 ArrayRef<ParsedTemplateArgument> TemplateArgs, in TemplateIdAnnotation()
250 NumArgs(TemplateArgs.size()), ArgsInvalid(ArgsInvalid) { in TemplateIdAnnotation()
252 std::uninitialized_copy(TemplateArgs.begin(), TemplateArgs.end(), in TemplateIdAnnotation()
DTemplate.h96 MultiLevelTemplateArgumentList(const TemplateArgumentList &TemplateArgs) { in MultiLevelTemplateArgumentList() argument
97 addOuterTemplateArguments(&TemplateArgs); in MultiLevelTemplateArgumentList()
173 void addOuterTemplateArguments(const TemplateArgumentList *TemplateArgs) { in addOuterTemplateArguments() argument
174 addOuterTemplateArguments(ArgList(TemplateArgs->data(), in addOuterTemplateArguments()
175 TemplateArgs->size())); in addOuterTemplateArguments()
469 const MultiLevelTemplateArgumentList &TemplateArgs; variable
490 const MultiLevelTemplateArgumentList &TemplateArgs) in TemplateDeclInstantiator() argument
493 Owner(Owner), TemplateArgs(TemplateArgs) {} in TemplateDeclInstantiator()
/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.h202 ParsedTemplateArgument *TemplateArgs = TemplateId->getTemplateArgs(); in Allocate() local
204 new (TemplateArgs + I) ParsedTemplateArgument(); in Allocate()
/external/clang/include/clang/AST/
DDeclTemplate.h403 const TemplateArgumentList *TemplateArgs, in FunctionTemplateSpecializationInfo() argument
408 TemplateArguments(TemplateArgs), in FunctionTemplateSpecializationInfo()
416 const TemplateArgumentList *TemplateArgs,
489 Profile(llvm::FoldingSetNodeID &ID, ArrayRef<TemplateArgument> TemplateArgs, in Profile() argument
491 ID.AddInteger(TemplateArgs.size()); in Profile()
492 for (const TemplateArgument &TemplateArg : TemplateArgs) in Profile()
586 const TemplateArgumentListInfo &TemplateArgs);
591 const TemplateArgumentListInfo &TemplateArgs);
1542 const TemplateArgumentList *TemplateArgs;
1567 const TemplateArgumentList *TemplateArgs;
[all …]
/external/llvm-project/clang/lib/AST/
DASTConcept.cpp63 const NamedDecl *ConstraintOwner, ArrayRef<TemplateArgument> TemplateArgs) { in Profile() argument
65 ID.AddInteger(TemplateArgs.size()); in Profile()
66 for (auto &Arg : TemplateArgs) in Profile()
DDeclTemplate.cpp366 SmallVector<TemplateArgument, 16> TemplateArgs; in getInjectedTemplateArgs() local
367 Context.getInjectedTemplateArgs(Params, TemplateArgs); in getInjectedTemplateArgs()
369 new (Context) TemplateArgument[TemplateArgs.size()]; in getInjectedTemplateArgs()
370 std::copy(TemplateArgs.begin(), TemplateArgs.end(), in getInjectedTemplateArgs()
506 ArrayRef<TemplateArgument> TemplateArgs, TemplateParameterList *TPL, in Profile() argument
508 ID.AddInteger(TemplateArgs.size()); in Profile()
509 for (const TemplateArgument &TemplateArg : TemplateArgs) in Profile()
579 SmallVector<TemplateArgument, 16> TemplateArgs; in getInjectedClassNameSpecialization() local
580 Context.getInjectedTemplateArgs(Params, TemplateArgs); in getInjectedClassNameSpecialization()
583 TemplateArgs); in getInjectedClassNameSpecialization()
[all …]
DExprCXX.cpp352 const TemplateArgumentListInfo *TemplateArgs, UnresolvedSetIterator Begin, in UnresolvedLookupExpr() argument
355 TemplateKWLoc, NameInfo, TemplateArgs, Begin, End, false, in UnresolvedLookupExpr()
416 const TemplateArgumentListInfo *TemplateArgs, in OverloadExpr() argument
426 (TemplateArgs != nullptr ) || TemplateKWLoc.isValid(); in OverloadExpr()
435 if (TemplateArgs) { in OverloadExpr()
438 TemplateKWLoc, *TemplateArgs, getTrailingTemplateArgumentLoc(), Deps); in OverloadExpr()
1366 const TemplateArgumentListInfo *TemplateArgs) in CXXDependentScopeMemberExpr() argument
1373 (TemplateArgs != nullptr) || TemplateKWLoc.isValid(); in CXXDependentScopeMemberExpr()
1378 if (TemplateArgs) { in CXXDependentScopeMemberExpr()
1381 TemplateKWLoc, *TemplateArgs, getTrailingObjects<TemplateArgumentLoc>(), in CXXDependentScopeMemberExpr()
[all …]
DItaniumMangle.cpp457 const TemplateArgumentLoc *TemplateArgs,
468 const TemplateArgument *TemplateArgs,
497 const TemplateArgument *TemplateArgs,
544 const TemplateArgumentLoc *TemplateArgs,
554 void mangleTemplateArgs(const TemplateArgumentLoc *TemplateArgs,
556 void mangleTemplateArgs(const TemplateArgument *TemplateArgs,
799 isTemplate(GlobalDecl GD, const TemplateArgumentList *&TemplateArgs) { in isTemplate() argument
804 TemplateArgs = FD->getTemplateSpecializationArgs(); in isTemplate()
812 TemplateArgs = &Spec->getTemplateArgs(); in isTemplate()
819 TemplateArgs = &Spec->getTemplateArgs(); in isTemplate()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProBoundsConstantArrayIndexCheck.cpp106 const TemplateArgumentList &TemplateArgs = StdArrayDecl->getTemplateArgs(); in check() local
107 if (TemplateArgs.size() < 2) in check()
110 const auto &SizeArg = TemplateArgs[1]; in check()
/external/clang/lib/AST/
DExprCXX.cpp254 const TemplateArgumentListInfo *TemplateArgs, in OverloadExpr() argument
273 HasTemplateKWAndArgsInfo(TemplateArgs != nullptr || in OverloadExpr()
296 if (TemplateArgs) { in OverloadExpr()
301 TemplateKWLoc, *TemplateArgs, getTrailingTemplateArgumentLoc(), in OverloadExpr()
1113 const TemplateArgumentListInfo *TemplateArgs) in CXXDependentScopeMemberExpr() argument
1122 HasTemplateKWAndArgsInfo(TemplateArgs != nullptr || in CXXDependentScopeMemberExpr()
1127 if (TemplateArgs) { in CXXDependentScopeMemberExpr()
1132 TemplateKWLoc, *TemplateArgs, getTrailingObjects<TemplateArgumentLoc>(), in CXXDependentScopeMemberExpr()
1150 const TemplateArgumentListInfo *TemplateArgs) { in Create() argument
1151 bool HasTemplateKWAndArgsInfo = TemplateArgs || TemplateKWLoc.isValid(); in Create()
[all …]
DItaniumMangle.cpp473 const TemplateArgument *TemplateArgs,
501 const TemplateArgument *TemplateArgs,
547 void mangleTemplateArgs(const TemplateArgumentLoc *TemplateArgs,
549 void mangleTemplateArgs(const TemplateArgument *TemplateArgs,
774 isTemplate(const NamedDecl *ND, const TemplateArgumentList *&TemplateArgs) { in isTemplate() argument
778 TemplateArgs = FD->getTemplateSpecializationArgs(); in isTemplate()
786 TemplateArgs = &Spec->getTemplateArgs(); in isTemplate()
793 TemplateArgs = &Spec->getTemplateArgs(); in isTemplate()
858 const TemplateArgumentList *TemplateArgs = nullptr; in mangleNameWithAbiTags() local
859 if (const TemplateDecl *TD = isTemplate(ND, TemplateArgs)) { in mangleNameWithAbiTags()
[all …]
DDeclTemplate.cpp459 SmallVector<TemplateArgument, 16> TemplateArgs; in getInjectedClassNameSpecialization() local
460 TemplateArgs.resize(Params->size()); in getInjectedClassNameSpecialization()
461 GenerateInjectedTemplateArgs(getASTContext(), Params, TemplateArgs.data()); in getInjectedClassNameSpecialization()
464 TemplateArgs); in getInjectedClassNameSpecialization()
681 const TemplateArgumentList *TemplateArgs, in Create() argument
690 TemplateArgs, in Create()
716 TemplateArgs(TemplateArgumentList::CreateCopy(Context, Args)), in ClassTemplateSpecializationDecl()
757 const TemplateArgumentList &TemplateArgs = getTemplateArgs(); in getNameForDiagnostic() local
759 OS, TemplateArgs.asArray(), Policy); in getNameForDiagnostic()
1061 TemplateArgs(TemplateArgumentList::CreateCopy(Context, Args)), in VarTemplateSpecializationDecl()
[all …]
/external/clang/lib/Parse/
DParseTemplate.cpp904 TemplateArgList &TemplateArgs, in ParseTemplateIdAfterTemplateName() argument
916 Invalid = ParseTemplateArgumentList(TemplateArgs); in ParseTemplateIdAfterTemplateName()
983 TemplateArgList TemplateArgs; in AnnotateTemplateIdToken() local
987 TemplateArgs, in AnnotateTemplateIdToken()
997 ASTTemplateArgsPtr TemplateArgsPtr(TemplateArgs); in AnnotateTemplateIdToken()
1025 = TemplateIdAnnotation::Allocate(TemplateArgs.size(), TemplateIds); in AnnotateTemplateIdToken()
1041 for (unsigned Arg = 0, ArgEnd = TemplateArgs.size(); Arg != ArgEnd; ++Arg) in AnnotateTemplateIdToken()
1042 Args[Arg] = ParsedTemplateArgument(TemplateArgs[Arg]); in AnnotateTemplateIdToken()
1266 Parser::ParseTemplateArgumentList(TemplateArgList &TemplateArgs) { in ParseTemplateArgumentList() argument
1283 TemplateArgs.push_back(Arg); in ParseTemplateArgumentList()

12345