Home
last modified time | relevance | path

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

123

/external/clang/include/clang/AST/
DTemplateBase.h39 class TemplateArgument {
92 const TemplateArgument *Args;
107 TemplateArgument(TemplateName, bool) LLVM_DELETED_FUNCTION;
111 TemplateArgument() : Kind(Null), TypeOrValue(0) { } in TemplateArgument() function
114 TemplateArgument(QualType T, bool isNullPtr = false)
122 TemplateArgument(ValueDecl *D, bool ForRefParam) : Kind(Declaration) { in TemplateArgument() function
130 TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, QualType Type);
134 TemplateArgument(const TemplateArgument &Other, QualType Type) in TemplateArgument() function
148 TemplateArgument(TemplateName Name) : Kind(Template) in TemplateArgument() function
165 TemplateArgument(TemplateName Name, Optional<unsigned> NumExpansions) in TemplateArgument() function
[all …]
DDeclTemplate.h155 llvm::PointerIntPair<const TemplateArgument *, 1> Arguments;
164 TemplateArgumentList(const TemplateArgument *Args, unsigned NumArgs, in TemplateArgumentList()
176 const TemplateArgument *Args,
184 const TemplateArgument *Args, unsigned NumArgs) in TemplateArgumentList()
197 const TemplateArgument &get(unsigned Idx) const { in get()
203 const TemplateArgument &operator[](unsigned Idx) const { return get(Idx); }
206 llvm::ArrayRef<TemplateArgument> asArray() const { in asArray()
207 return llvm::ArrayRef<TemplateArgument>(data(), size()); in asArray()
215 const TemplateArgument *data() const { in data()
387 Profile(llvm::FoldingSetNodeID &ID, const TemplateArgument *TemplateArgs, in Profile()
[all …]
DTemplateName.h35 class TemplateArgument; variable
122 const TemplateArgument *Arguments;
127 const TemplateArgument *Arguments) in SubstTemplateTemplateParmPackStorage()
138 TemplateArgument getArgumentPack() const;
145 const TemplateArgument &ArgPack);
DRecursiveASTVisitor.h219 bool TraverseTemplateArgument(const TemplateArgument &Arg);
233 bool TraverseTemplateArguments(const TemplateArgument *Args,
728 const TemplateArgument &Arg) { in TraverseTemplateArgument()
730 case TemplateArgument::Null: in TraverseTemplateArgument()
731 case TemplateArgument::Declaration: in TraverseTemplateArgument()
732 case TemplateArgument::Integral: in TraverseTemplateArgument()
733 case TemplateArgument::NullPtr: in TraverseTemplateArgument()
736 case TemplateArgument::Type: in TraverseTemplateArgument()
739 case TemplateArgument::Template: in TraverseTemplateArgument()
740 case TemplateArgument::TemplateExpansion: in TraverseTemplateArgument()
[all …]
DASTTypeTraits.h111 KIND_TO_KIND_ID(TemplateArgument) in KIND_TO_KIND_ID() argument
260 llvm::AlignedCharArrayUnion<KindsByPointer, TemplateArgument, in KIND_TO_KIND_ID()
290 TemplateArgument, void> : public ValueConverter<TemplateArgument> {};
/external/clang/lib/AST/
DTemplateBase.cpp36 static void printIntegral(const TemplateArgument &TemplArg, in printIntegral()
57 TemplateArgument::TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, in TemplateArgument() function in TemplateArgument
76 TemplateArgument TemplateArgument::CreatePackCopy(ASTContext &Context, in CreatePackCopy()
77 const TemplateArgument *Args, in CreatePackCopy()
82 TemplateArgument *Storage = new (Context) TemplateArgument [NumArgs]; in CreatePackCopy()
84 return TemplateArgument(Storage, NumArgs); in CreatePackCopy()
87 bool TemplateArgument::isDependent() const { in isDependent()
128 bool TemplateArgument::isInstantiationDependent() const { in isInstantiationDependent()
169 bool TemplateArgument::isPackExpansion() const { in isPackExpansion()
192 bool TemplateArgument::containsUnexpandedParameterPack() const { in containsUnexpandedParameterPack()
[all …]
DTypeLoc.cpp354 const TemplateArgument *Args, in initializeArgLocs()
359 case TemplateArgument::Null: in initializeArgLocs()
362 case TemplateArgument::Integral: in initializeArgLocs()
363 case TemplateArgument::Declaration: in initializeArgLocs()
364 case TemplateArgument::NullPtr: in initializeArgLocs()
368 case TemplateArgument::Expression: in initializeArgLocs()
372 case TemplateArgument::Type: in initializeArgLocs()
378 case TemplateArgument::Template: in initializeArgLocs()
379 case TemplateArgument::TemplateExpansion: { in initializeArgLocs()
390 Args[i].getKind() == TemplateArgument::Template in initializeArgLocs()
[all …]
DDeclTemplate.cpp166 const TemplateArgument *Args, unsigned NumArgs, in findSpecializationImpl()
179 TemplateArgument *Args) { in GenerateInjectedTemplateArgs()
183 TemplateArgument Arg; in GenerateInjectedTemplateArgs()
189 Arg = TemplateArgument(ArgType); in GenerateInjectedTemplateArgs()
200 Arg = TemplateArgument(E); in GenerateInjectedTemplateArgs()
204 Arg = TemplateArgument(TemplateName(TTP), Optional<unsigned>()); in GenerateInjectedTemplateArgs()
206 Arg = TemplateArgument(TemplateName(TTP)); in GenerateInjectedTemplateArgs()
210 Arg = TemplateArgument::CreatePackCopy(Context, &Arg, 1); in GenerateInjectedTemplateArgs()
266 FunctionTemplateDecl::findSpecialization(const TemplateArgument *Args, in findSpecialization()
281 ArrayRef<TemplateArgument> FunctionTemplateDecl::getInjectedTemplateArgs() { in getInjectedTemplateArgs()
[all …]
DTemplateName.cpp25 TemplateArgument
27 return TemplateArgument(Arguments, size()); in getArgumentPack()
43 Profile(ID, Context, Parameter, TemplateArgument(Arguments, size())); in Profile()
49 const TemplateArgument &ArgPack) { in Profile()
DASTDiagnostic.cpp695 typedef const TemplateArgument& reference;
696 typedef const TemplateArgument* pointer;
711 TemplateArgument::pack_iterator CurrentTA;
714 TemplateArgument::pack_iterator EndTA;
725 TemplateArgument TA = TST->getArg(0); in TSTiterator()
726 if (TA.getKind() != TemplateArgument::Pack) return; in TSTiterator()
767 TemplateArgument TA = TST->getArg(Index); in operator ++()
768 if (TA.getKind() != TemplateArgument::Pack) break; in operator ++()
892 FromIter->getKind() == TemplateArgument::Integral; in DiffTemplate()
894 ToIter->getKind() == TemplateArgument::Integral; in DiffTemplate()
[all …]
DDumpXML.cpp308 void dispatch(const TemplateArgument &A) { in dispatch()
310 case TemplateArgument::Null: { in dispatch()
314 case TemplateArgument::Type: { in dispatch()
318 case TemplateArgument::Template: in dispatch()
319 case TemplateArgument::TemplateExpansion: in dispatch()
320 case TemplateArgument::NullPtr: in dispatch()
324 case TemplateArgument::Declaration: { in dispatch()
328 case TemplateArgument::Integral: { in dispatch()
335 case TemplateArgument::Expression: { in dispatch()
339 case TemplateArgument::Pack: { in dispatch()
[all …]
DASTImporter.cpp119 TemplateArgument ImportTemplateArgument(const TemplateArgument &From);
120 bool ImportTemplateArguments(const TemplateArgument *FromArgs,
122 SmallVectorImpl<TemplateArgument> &ToArgs);
293 const TemplateArgument &Arg1, in IsStructurallyEquivalent()
294 const TemplateArgument &Arg2) { in IsStructurallyEquivalent()
299 case TemplateArgument::Null: in IsStructurallyEquivalent()
302 case TemplateArgument::Type: in IsStructurallyEquivalent()
305 case TemplateArgument::Integral: in IsStructurallyEquivalent()
312 case TemplateArgument::Declaration: in IsStructurallyEquivalent()
315 case TemplateArgument::NullPtr: in IsStructurallyEquivalent()
[all …]
DStmtProfile.cpp66 void VisitTemplateArgument(const TemplateArgument &Arg);
1217 void StmtProfiler::VisitTemplateArgument(const TemplateArgument &Arg) { in VisitTemplateArgument()
1221 case TemplateArgument::Null: in VisitTemplateArgument()
1224 case TemplateArgument::Type: in VisitTemplateArgument()
1228 case TemplateArgument::Template: in VisitTemplateArgument()
1229 case TemplateArgument::TemplateExpansion: in VisitTemplateArgument()
1233 case TemplateArgument::Declaration: in VisitTemplateArgument()
1237 case TemplateArgument::NullPtr: in VisitTemplateArgument()
1241 case TemplateArgument::Integral: in VisitTemplateArgument()
1246 case TemplateArgument::Expression: in VisitTemplateArgument()
[all …]
DMicrosoftMangle.cpp137 void mangleTemplateArg(const TemplateDecl *TD, const TemplateArgument &TA,
872 const TemplateArgument &TA = TemplateArgs[i]; in mangleTemplateArgs()
879 const TemplateArgument &TA, in mangleTemplateArg()
882 case TemplateArgument::Null: in mangleTemplateArg()
884 case TemplateArgument::Type: { in mangleTemplateArg()
889 case TemplateArgument::Declaration: in mangleTemplateArg()
892 case TemplateArgument::Integral: in mangleTemplateArg()
896 case TemplateArgument::NullPtr: in mangleTemplateArg()
899 case TemplateArgument::Expression: in mangleTemplateArg()
902 case TemplateArgument::Pack: in mangleTemplateArg()
[all …]
DType.cpp1438 unsigned NumArgs, const TemplateArgument *Args, in DependentTemplateSpecializationType()
1450 new (&getArgBuffer()[I]) TemplateArgument(Args[I]); in DependentTemplateSpecializationType()
1461 const TemplateArgument *Args) { in Profile()
1897 const TemplateArgument &ArgPack) in SubstTemplateTypeParmPackType()
1904 TemplateArgument SubstTemplateTypeParmPackType::getArgumentPack() const { in getArgumentPack()
1905 return TemplateArgument(Arguments, NumArguments); in getArgumentPack()
1914 const TemplateArgument &ArgPack) { in Profile()
1917 for (TemplateArgument::pack_iterator P = ArgPack.pack_begin(), in Profile()
1947 anyDependentTemplateArguments(const TemplateArgument *Args, unsigned N, in anyDependentTemplateArguments()
1964 const TemplateArgument *Args, unsigned NumArgs, in TemplateSpecializationType()
[all …]
DASTDumper.cpp190 void dumpTemplateArgument(const TemplateArgument &A,
651 void ASTDumper::dumpTemplateArgument(const TemplateArgument &A, SourceRange R) { in dumpTemplateArgument()
658 case TemplateArgument::Null: in dumpTemplateArgument()
661 case TemplateArgument::Type: in dumpTemplateArgument()
666 case TemplateArgument::Declaration: in dumpTemplateArgument()
671 case TemplateArgument::NullPtr: in dumpTemplateArgument()
674 case TemplateArgument::Integral: in dumpTemplateArgument()
677 case TemplateArgument::Template: in dumpTemplateArgument()
681 case TemplateArgument::TemplateExpansion: in dumpTemplateArgument()
685 case TemplateArgument::Expression: in dumpTemplateArgument()
[all …]
DItaniumMangle.cpp321 const TemplateArgument *TemplateArgs,
339 const TemplateArgument *TemplateArgs,
376 void mangleTemplateArgs(const TemplateArgument *TemplateArgs,
379 void mangleTemplateArg(TemplateArgument A);
619 const TemplateArgument *TemplateArgs, in mangleName()
1288 const TemplateArgument *TemplateArgs, in mangleNestedName()
3258 void CXXNameMangler::mangleTemplateArgs(const TemplateArgument *TemplateArgs, in mangleTemplateArgs()
3267 void CXXNameMangler::mangleTemplateArg(TemplateArgument A) { in mangleTemplateArg()
3277 case TemplateArgument::Null: in mangleTemplateArg()
3280 case TemplateArgument::Type: in mangleTemplateArg()
[all …]
/external/clang/lib/Sema/
DSemaTemplateDeduction.cpp89 const TemplateArgument &Param,
90 TemplateArgument Arg,
134 const TemplateArgument *Params, unsigned NumParams,
135 const TemplateArgument *Args, unsigned NumArgs,
187 case TemplateArgument::Null: in checkDeducedTemplateArguments()
190 case TemplateArgument::Type: in checkDeducedTemplateArguments()
192 if (Y.getKind() == TemplateArgument::Type && in checkDeducedTemplateArguments()
198 case TemplateArgument::Integral: in checkDeducedTemplateArguments()
202 if (Y.getKind() == TemplateArgument::Expression || in checkDeducedTemplateArguments()
203 Y.getKind() == TemplateArgument::Declaration || in checkDeducedTemplateArguments()
[all …]
DSemaTemplateVariadic.cpp151 bool TraverseTemplateArgument(const TemplateArgument &Arg) { in TraverseTemplateArgument()
364 void Sema::collectUnexpandedParameterPacks(TemplateArgument Arg, in collectUnexpandedParameterPacks()
857 const TemplateArgument &Argument = OrigLoc.getArgument(); in getTemplateArgumentPackExpansionPattern()
860 case TemplateArgument::Type: { in getTemplateArgumentPackExpansionPattern()
881 return TemplateArgumentLoc(TemplateArgument(Pattern.getType()), in getTemplateArgumentPackExpansionPattern()
885 case TemplateArgument::Expression: { in getTemplateArgumentPackExpansionPattern()
894 case TemplateArgument::TemplateExpansion: in getTemplateArgumentPackExpansionPattern()
901 case TemplateArgument::Declaration: in getTemplateArgumentPackExpansionPattern()
902 case TemplateArgument::NullPtr: in getTemplateArgumentPackExpansionPattern()
903 case TemplateArgument::Template: in getTemplateArgumentPackExpansionPattern()
[all …]
DSemaTemplateInstantiate.cpp236 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
261 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
290 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
315 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
338 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
362 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
386 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
410 ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
778 TemplateArgument ForgetPartiallySubstitutedPack() { in ForgetPartiallySubstitutedPack()
779 TemplateArgument Result; in ForgetPartiallySubstitutedPack()
[all …]
DSemaTemplate.cpp508 return TemplateArgumentLoc(TemplateArgument(T), DI); in translateTemplateArgument()
513 return TemplateArgumentLoc(TemplateArgument(E), E); in translateTemplateArgument()
518 TemplateArgument TArg; in translateTemplateArgument()
520 TArg = TemplateArgument(Template, Optional<unsigned int>()); in translateTemplateArgument()
735 TemplateArgument Converted; in ActOnNonTypeTemplateParameter()
1983 SmallVector<TemplateArgument, 4> Converted; in CheckTemplateIdType()
2275 SmallVectorImpl<TemplateArgument> &TemplateArgs);
2338 SmallVector<TemplateArgument, 4> Converted; in ActOnVarTemplateSpecialization()
2549 SmallVector<TemplateArgument, 4> Converted; in CheckVarTemplateId()
2895 SmallVectorImpl<TemplateArgument> &Converted) { in CheckTemplateTypeArgument()
[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.h147 TemplateArgument FirstArg;
156 TemplateArgument SecondArg;
201 const TemplateArgument *getFirstArg();
205 const TemplateArgument *getSecondArg();
/external/clang/tools/libclang/
DCIndexUSRs.cpp131 void VisitTemplateArgument(const TemplateArgument &Arg);
728 void USRGenerator::VisitTemplateArgument(const TemplateArgument &Arg) { in VisitTemplateArgument()
730 case TemplateArgument::Null: in VisitTemplateArgument()
733 case TemplateArgument::Declaration: in VisitTemplateArgument()
737 case TemplateArgument::NullPtr: in VisitTemplateArgument()
740 case TemplateArgument::TemplateExpansion: in VisitTemplateArgument()
743 case TemplateArgument::Template: in VisitTemplateArgument()
747 case TemplateArgument::Expression: in VisitTemplateArgument()
751 case TemplateArgument::Pack: in VisitTemplateArgument()
753 for (TemplateArgument::pack_iterator P = Arg.pack_begin(), PEnd = Arg.pack_end(); in VisitTemplateArgument()
[all …]
DRecursiveASTVisitor.h212 bool TraverseTemplateArgument(const TemplateArgument &Arg);
226 bool TraverseTemplateArguments(const TemplateArgument *Args,
662 const TemplateArgument &Arg) { in TraverseTemplateArgument()
664 case TemplateArgument::Null: in TraverseTemplateArgument()
665 case TemplateArgument::Declaration: in TraverseTemplateArgument()
666 case TemplateArgument::Integral: in TraverseTemplateArgument()
667 case TemplateArgument::NullPtr: in TraverseTemplateArgument()
670 case TemplateArgument::Type: in TraverseTemplateArgument()
673 case TemplateArgument::Template: in TraverseTemplateArgument()
674 case TemplateArgument::TemplateExpansion: in TraverseTemplateArgument()
[all …]

123