Home
last modified time | relevance | path

Searched refs:TemplateArgument (Results 1 – 25 of 66) sorted by relevance

123

/external/clang/include/clang/AST/
DTemplateBase.h40 class TemplateArgument {
99 const TemplateArgument *Args;
118 TemplateArgument(TemplateName, bool) = delete;
122 TemplateArgument() { in TemplateArgument() function
128 TemplateArgument(QualType T, bool isNullPtr = false) {
136 TemplateArgument(ValueDecl *D, QualType QT) { in TemplateArgument() function
145 TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, QualType Type);
149 TemplateArgument(const TemplateArgument &Other, QualType Type) { in TemplateArgument() function
162 TemplateArgument(TemplateName Name) { in TemplateArgument() function
179 TemplateArgument(TemplateName Name, Optional<unsigned> NumExpansions) { in TemplateArgument() function
[all …]
DDeclTemplate.h174 : private llvm::TrailingObjects<TemplateArgumentList, TemplateArgument> {
176 const TemplateArgument *Arguments;
187 TemplateArgumentList(ArrayRef<TemplateArgument> Args);
197 ArrayRef<TemplateArgument> Args);
203 explicit TemplateArgumentList(OnStackType, ArrayRef<TemplateArgument> Args) in TemplateArgumentList()
216 const TemplateArgument &get(unsigned Idx) const { in get()
222 const TemplateArgument &operator[](unsigned Idx) const { return get(Idx); }
225 ArrayRef<TemplateArgument> asArray() const { in asArray()
234 const TemplateArgument *data() const { return Arguments; } in data()
489 Profile(llvm::FoldingSetNodeID &ID, ArrayRef<TemplateArgument> TemplateArgs, in Profile()
[all …]
DTemplateName.h36 class TemplateArgument; variable
123 const TemplateArgument *Arguments;
128 const TemplateArgument *Arguments) in SubstTemplateTemplateParmPackStorage()
139 TemplateArgument getArgumentPack() const;
146 const TemplateArgument &ArgPack);
DRecursiveASTVisitor.h242 bool TraverseTemplateArgument(const TemplateArgument &Arg);
256 bool TraverseTemplateArguments(const TemplateArgument *Args,
785 const TemplateArgument &Arg) {
787 case TemplateArgument::Null:
788 case TemplateArgument::Declaration:
789 case TemplateArgument::Integral:
790 case TemplateArgument::NullPtr:
793 case TemplateArgument::Type:
796 case TemplateArgument::Template:
797 case TemplateArgument::TemplateExpansion:
[all …]
DASTTypeTraits.h177 KIND_TO_KIND_ID(TemplateArgument)
441 llvm::AlignedCharArrayUnion<const void *, TemplateArgument,
471 TemplateArgument, void> : public ValueConverter<TemplateArgument> {};
/external/clang/lib/AST/
DTemplateBase.cpp38 static void printIntegral(const TemplateArgument &TemplArg, in printIntegral()
72 TemplateArgument::TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, in TemplateArgument() function in TemplateArgument
91 TemplateArgument
92 TemplateArgument::CreatePackCopy(ASTContext &Context, in CreatePackCopy()
93 ArrayRef<TemplateArgument> Args) { in CreatePackCopy()
97 return TemplateArgument(Args.copy(Context)); in CreatePackCopy()
100 bool TemplateArgument::isDependent() const { in isDependent()
141 bool TemplateArgument::isInstantiationDependent() const { in isInstantiationDependent()
180 bool TemplateArgument::isPackExpansion() const { in isPackExpansion()
203 bool TemplateArgument::containsUnexpandedParameterPack() const { in containsUnexpandedParameterPack()
[all …]
DDeclTemplate.cpp164 llvm::FoldingSetVector<EntryType> &Specs, ArrayRef<TemplateArgument> Args, in findSpecializationImpl()
204 TemplateArgument *Args) { in GenerateInjectedTemplateArgs()
206 TemplateArgument Arg; in GenerateInjectedTemplateArgs()
212 Arg = TemplateArgument(ArgType); in GenerateInjectedTemplateArgs()
222 Arg = TemplateArgument(E); in GenerateInjectedTemplateArgs()
226 Arg = TemplateArgument(TemplateName(TTP), Optional<unsigned>()); in GenerateInjectedTemplateArgs()
228 Arg = TemplateArgument(TemplateName(TTP)); in GenerateInjectedTemplateArgs()
232 Arg = TemplateArgument::CreatePackCopy(Context, Arg); in GenerateInjectedTemplateArgs()
291 FunctionTemplateDecl::findSpecialization(ArrayRef<TemplateArgument> Args, in findSpecialization()
302 ArrayRef<TemplateArgument> FunctionTemplateDecl::getInjectedTemplateArgs() { in getInjectedTemplateArgs()
[all …]
DTypeLoc.cpp455 const TemplateArgument *Args, in initializeArgLocs()
460 case TemplateArgument::Null: in initializeArgLocs()
463 case TemplateArgument::Integral: in initializeArgLocs()
464 case TemplateArgument::Declaration: in initializeArgLocs()
465 case TemplateArgument::NullPtr: in initializeArgLocs()
469 case TemplateArgument::Expression: in initializeArgLocs()
473 case TemplateArgument::Type: in initializeArgLocs()
479 case TemplateArgument::Template: in initializeArgLocs()
480 case TemplateArgument::TemplateExpansion: { in initializeArgLocs()
490 Args[i].getKind() == TemplateArgument::Template ? SourceLocation() in initializeArgLocs()
[all …]
DASTDiagnostic.cpp110 SmallVector<TemplateArgument, 4> Args; in Desugar()
112 const TemplateArgument &Arg = TST->getArg(I); in Desugar()
113 if (Arg.getKind() == TemplateArgument::Type) in Desugar()
895 typedef const TemplateArgument& reference;
896 typedef const TemplateArgument* pointer;
911 TemplateArgument::pack_iterator CurrentTA;
914 TemplateArgument::pack_iterator EndTA;
923 TemplateArgument TA = TST->getArg(0); in InternalIterator()
924 if (TA.getKind() != TemplateArgument::Pack) return; in InternalIterator()
963 TemplateArgument TA = TST->getArg(Index); in operator ++()
[all …]
DTemplateName.cpp25 TemplateArgument
27 return TemplateArgument(llvm::makeArrayRef(Arguments, size())); in getArgumentPack()
49 const TemplateArgument &ArgPack) { in Profile()
DStmtProfile.cpp67 void VisitTemplateArgument(const TemplateArgument &Arg);
1713 void StmtProfiler::VisitTemplateArgument(const TemplateArgument &Arg) { in VisitTemplateArgument()
1717 case TemplateArgument::Null: in VisitTemplateArgument()
1720 case TemplateArgument::Type: in VisitTemplateArgument()
1724 case TemplateArgument::Template: in VisitTemplateArgument()
1725 case TemplateArgument::TemplateExpansion: in VisitTemplateArgument()
1729 case TemplateArgument::Declaration: in VisitTemplateArgument()
1733 case TemplateArgument::NullPtr: in VisitTemplateArgument()
1737 case TemplateArgument::Integral: in VisitTemplateArgument()
1742 case TemplateArgument::Expression: in VisitTemplateArgument()
[all …]
DASTImporter.cpp125 TemplateArgument ImportTemplateArgument(const TemplateArgument &From);
126 bool ImportTemplateArguments(const TemplateArgument *FromArgs,
128 SmallVectorImpl<TemplateArgument> &ToArgs);
393 const TemplateArgument &Arg1, in IsStructurallyEquivalent()
394 const TemplateArgument &Arg2) { in IsStructurallyEquivalent()
399 case TemplateArgument::Null: in IsStructurallyEquivalent()
402 case TemplateArgument::Type: in IsStructurallyEquivalent()
405 case TemplateArgument::Integral: in IsStructurallyEquivalent()
412 case TemplateArgument::Declaration: in IsStructurallyEquivalent()
415 case TemplateArgument::NullPtr: in IsStructurallyEquivalent()
[all …]
DType.cpp2463 ArrayRef<TemplateArgument> Args, in DependentTemplateSpecializationType()
2471 TemplateArgument *ArgBuffer = getArgBuffer(); in DependentTemplateSpecializationType()
2472 for (const TemplateArgument &Arg : Args) { in DependentTemplateSpecializationType()
2476 new (ArgBuffer++) TemplateArgument(Arg); in DependentTemplateSpecializationType()
2486 ArrayRef<TemplateArgument> Args) { in Profile()
2490 for (const TemplateArgument &Arg : Args) in Profile()
3076 const TemplateArgument &ArgPack) in SubstTemplateTypeParmPackType()
3083 TemplateArgument SubstTemplateTypeParmPackType::getArgumentPack() const { in getArgumentPack()
3084 return TemplateArgument(llvm::makeArrayRef(Arguments, NumArguments)); in getArgumentPack()
3093 const TemplateArgument &ArgPack) { in Profile()
[all …]
/external/clang/lib/Sema/
DSemaTemplateDeduction.cpp89 const TemplateArgument &Param,
90 TemplateArgument Arg,
107 const TemplateArgument *Params, unsigned NumParams,
108 const TemplateArgument *Args, unsigned NumArgs,
161 case TemplateArgument::Null: in checkDeducedTemplateArguments()
164 case TemplateArgument::Type: in checkDeducedTemplateArguments()
166 if (Y.getKind() == TemplateArgument::Type && in checkDeducedTemplateArguments()
172 case TemplateArgument::Integral: in checkDeducedTemplateArguments()
176 if (Y.getKind() == TemplateArgument::Expression || in checkDeducedTemplateArguments()
177 Y.getKind() == TemplateArgument::Declaration || in checkDeducedTemplateArguments()
[all …]
DSemaTemplate.cpp509 return TemplateArgumentLoc(TemplateArgument(T), DI); in translateTemplateArgument()
514 return TemplateArgumentLoc(TemplateArgument(E), E); in translateTemplateArgument()
519 TemplateArgument TArg; in translateTemplateArgument()
521 TArg = TemplateArgument(Template, Optional<unsigned int>()); in translateTemplateArgument()
730 TemplateArgument Converted; in ActOnNonTypeTemplateParameter()
2041 const SmallVectorImpl<TemplateArgument> &Converted, in checkBuiltinTemplateIdType()
2060 TemplateArgument NumArgsArg = Converted[2]; in checkBuiltinTemplateIdType()
2076 TemplateArgument TA(Context, I, ArgTy); in checkBuiltinTemplateIdType()
2081 TemplateArgumentLoc(TemplateArgument(E), E)); in checkBuiltinTemplateIdType()
2097 TemplateArgument IndexArg = Converted[0], Ts = Converted[1]; in checkBuiltinTemplateIdType()
[all …]
DSemaTemplateInstantiate.cpp207 Decl *Entity, NamedDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
251 ArrayRef<TemplateArgument> TemplateArgs, SourceRange InstantiationRange) in InstantiatingTemplate()
261 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
271 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
282 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
292 ArrayRef<TemplateArgument> TemplateArgs, SourceRange InstantiationRange) in InstantiatingTemplate()
301 NonTypeTemplateParmDecl *Param, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
311 TemplateTemplateParmDecl *Param, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
321 NamedDecl *Param, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
674 TemplateArgument ForgetPartiallySubstitutedPack() { in ForgetPartiallySubstitutedPack()
[all …]
DSemaTemplateVariadic.cpp151 bool TraverseTemplateArgument(const TemplateArgument &Arg) { in TraverseTemplateArgument()
373 void Sema::collectUnexpandedParameterPacks(TemplateArgument Arg, in collectUnexpandedParameterPacks()
883 const TemplateArgument &Argument = OrigLoc.getArgument(); in getTemplateArgumentPackExpansionPattern()
886 case TemplateArgument::Type: { in getTemplateArgumentPackExpansionPattern()
907 return TemplateArgumentLoc(TemplateArgument(Pattern.getType()), in getTemplateArgumentPackExpansionPattern()
911 case TemplateArgument::Expression: { in getTemplateArgumentPackExpansionPattern()
920 case TemplateArgument::TemplateExpansion: in getTemplateArgumentPackExpansionPattern()
927 case TemplateArgument::Declaration: in getTemplateArgumentPackExpansionPattern()
928 case TemplateArgument::NullPtr: in getTemplateArgumentPackExpansionPattern()
929 case TemplateArgument::Template: in getTemplateArgumentPackExpansionPattern()
[all …]
/external/clang/include/clang/Sema/
DTemplate.h44 typedef ArrayRef<TemplateArgument> ArgList;
65 const TemplateArgument &operator()(unsigned Depth, unsigned Index) const { in operator()
86 TemplateArgument Arg) { in setArgument()
89 const_cast<TemplateArgument&>( in setArgument()
139 class DeducedTemplateArgument : public TemplateArgument {
146 : TemplateArgument(), DeducedFromArrayBound(false) { } in DeducedTemplateArgument()
148 DeducedTemplateArgument(const TemplateArgument &Arg,
150 : TemplateArgument(Arg), DeducedFromArrayBound(DeducedFromArrayBound) { } in TemplateArgument() function
158 : TemplateArgument(Ctx, Value, ValueType), in DeducedTemplateArgument()
233 const TemplateArgument *ArgsInPartiallySubstitutedPack;
[all …]
DTemplateDeduction.h148 TemplateArgument FirstArg;
162 TemplateArgument SecondArg;
221 const TemplateArgument *getFirstArg();
225 const TemplateArgument *getSecondArg();
/external/clang/lib/Tooling/Core/
DQualTypeNames.cpp107 TemplateArgument &Arg, in getFullyQualifiedTemplateArgument()
114 if (Arg.getKind() == TemplateArgument::Template) { in getFullyQualifiedTemplateArgument()
118 Arg = TemplateArgument(TName); in getFullyQualifiedTemplateArgument()
120 } else if (Arg.getKind() == TemplateArgument::Type) { in getFullyQualifiedTemplateArgument()
125 Arg = TemplateArgument(QTFQ); in getFullyQualifiedTemplateArgument()
143 SmallVector<TemplateArgument, 4> FQArgs; in getFullyQualifiedTemplateType()
148 TemplateArgument Arg(*I); in getFullyQualifiedTemplateType()
175 SmallVector<TemplateArgument, 4> FQArgs; in getFullyQualifiedTemplateType()
179 TemplateArgument Arg(TemplateArgs[I]); in getFullyQualifiedTemplateType()
/external/clang/lib/Index/
DUSRGeneration.cpp153 void VisitTemplateArgument(const TemplateArgument &Arg);
803 void USRGenerator::VisitTemplateArgument(const TemplateArgument &Arg) { in VisitTemplateArgument()
805 case TemplateArgument::Null: in VisitTemplateArgument()
808 case TemplateArgument::Declaration: in VisitTemplateArgument()
812 case TemplateArgument::NullPtr: in VisitTemplateArgument()
815 case TemplateArgument::TemplateExpansion: in VisitTemplateArgument()
818 case TemplateArgument::Template: in VisitTemplateArgument()
822 case TemplateArgument::Expression: in VisitTemplateArgument()
826 case TemplateArgument::Pack: in VisitTemplateArgument()
832 case TemplateArgument::Type: in VisitTemplateArgument()
[all …]
/external/v8/tools/clang/plugins/
DCheckIPCVisitor.cpp142 const TemplateArgument& arg = spec->getArg(i); in ValidateCheckedTuple()
226 for (const TemplateArgument& arg: *spec) { in CheckType()
263 bool CheckIPCVisitor::CheckTemplateArgument(const TemplateArgument& arg, in CheckTemplateArgument()
265 return arg.getKind() != TemplateArgument::Type || in CheckTemplateArgument()
/external/clang/tools/libclang/
DCXCursor.cpp1181 CXCursor C, unsigned I, TemplateArgument *TA) { in clang_Cursor_getTemplateArgument()
1208 TemplateArgument TA; in clang_Cursor_getTemplateArgumentKind()
1214 case TemplateArgument::Null: return CXTemplateArgumentKind_Null; in clang_Cursor_getTemplateArgumentKind()
1215 case TemplateArgument::Type: return CXTemplateArgumentKind_Type; in clang_Cursor_getTemplateArgumentKind()
1216 case TemplateArgument::Declaration: in clang_Cursor_getTemplateArgumentKind()
1218 case TemplateArgument::NullPtr: return CXTemplateArgumentKind_NullPtr; in clang_Cursor_getTemplateArgumentKind()
1219 case TemplateArgument::Integral: return CXTemplateArgumentKind_Integral; in clang_Cursor_getTemplateArgumentKind()
1220 case TemplateArgument::Template: return CXTemplateArgumentKind_Template; in clang_Cursor_getTemplateArgumentKind()
1221 case TemplateArgument::TemplateExpansion: in clang_Cursor_getTemplateArgumentKind()
1223 case TemplateArgument::Expression: return CXTemplateArgumentKind_Expression; in clang_Cursor_getTemplateArgumentKind()
[all …]
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h448 const internal::VariadicAllOfMatcher<TemplateArgument> templateArgument;
576 internal::Matcher<TemplateArgument>, InnerMatcher) { in AST_POLYMORPHIC_MATCHER_P() argument
577 ArrayRef<TemplateArgument> List = in AST_POLYMORPHIC_MATCHER_P()
718 unsigned, N, internal::Matcher<TemplateArgument>, InnerMatcher) { in AST_POLYMORPHIC_MATCHER_P2() argument
719 ArrayRef<TemplateArgument> List = in AST_POLYMORPHIC_MATCHER_P2()
754 AST_MATCHER_P(TemplateArgument, refersToType, in AST_MATCHER_P() argument
756 if (Node.getKind() != TemplateArgument::Type) in AST_MATCHER_P()
774 AST_MATCHER_P(TemplateArgument, refersToDeclaration, in AST_MATCHER_P() argument
776 if (Node.getKind() == TemplateArgument::Declaration) in AST_MATCHER_P()
793 AST_MATCHER_P(TemplateArgument, isExpr, internal::Matcher<Expr>, InnerMatcher) { in AST_MATCHER_P() argument
[all …]
/external/v8/tools/clang/blink_gc_plugin/
DRecordInfo.cpp52 TemplateArgument arg = args[i]; in GetTemplateArgs()
53 if (arg.getKind() == TemplateArgument::Type && !arg.getAsType().isNull()) { in GetTemplateArgs()
98 TemplateArgument arg = args[1]; in HasOptionalFinalizer()
101 return (arg.getKind() == TemplateArgument::Type && in HasOptionalFinalizer()
103 (arg.getKind() == TemplateArgument::Integral && in HasOptionalFinalizer()

123