/external/clang/lib/Sema/ |
D | SemaTemplateInstantiate.cpp | 135 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 …]
|
D | SemaTemplateInstantiateDecl.cpp | 41 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 …]
|
D | SemaExprMember.cpp | 238 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 …]
|
D | SemaTemplate.cpp | 415 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/ |
D | SemaTemplateInstantiateDecl.cpp | 46 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 …]
|
D | SemaTemplateInstantiate.cpp | 149 } 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 …]
|
D | SemaExprMember.cpp | 236 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 …]
|
D | SemaConcept.cpp | 195 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 …]
|
D | SemaTemplate.cpp | 727 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/ |
D | ASTConcept.h | 33 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);
|
D | DeclTemplate.h | 496 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/ |
D | ParsedTemplate.h | 204 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()
|
D | Template.h | 96 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/ |
D | Template.h | 56 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()
|
D | ParsedTemplate.h | 202 ParsedTemplateArgument *TemplateArgs = TemplateId->getTemplateArgs(); in Allocate() local 204 new (TemplateArgs + I) ParsedTemplateArgument(); in Allocate()
|
/external/clang/include/clang/AST/ |
D | DeclTemplate.h | 403 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/ |
D | ASTConcept.cpp | 63 const NamedDecl *ConstraintOwner, ArrayRef<TemplateArgument> TemplateArgs) { in Profile() argument 65 ID.AddInteger(TemplateArgs.size()); in Profile() 66 for (auto &Arg : TemplateArgs) in Profile()
|
D | DeclTemplate.cpp | 366 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 …]
|
D | ExprCXX.cpp | 352 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 …]
|
D | ItaniumMangle.cpp | 457 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/ |
D | ProBoundsConstantArrayIndexCheck.cpp | 106 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/ |
D | ExprCXX.cpp | 254 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 …]
|
D | ItaniumMangle.cpp | 473 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 …]
|
D | DeclTemplate.cpp | 459 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/ |
D | ParseTemplate.cpp | 904 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()
|