Lines Matching defs:TST
117 if (const TemplateSpecializationType *TST =
119 if (!TST->isTypeAlias()) {
122 for (const TemplateArgument &Arg : TST->template_arguments()) {
133 TST->getTemplateName(), Args, QT);
966 /// TST - the template specialization whose arguments this iterator
968 const TemplateSpecializationType *TST;
970 /// Index - the index of the template argument in TST.
982 InternalIterator(const TemplateSpecializationType *TST)
983 : TST(TST), Index(0), CurrentTA(nullptr), EndTA(nullptr) {
984 if (!TST) return;
989 TemplateArgument TA = TST->template_arguments()[0];
1005 bool isValid() const { return TST; }
1009 assert(TST && "InternalIterator is invalid with a null TST.");
1010 return Index >= TST->template_arguments().size();
1015 assert(TST && "InternalIterator is invalid with a null TST.");
1030 if (++Index == TST->template_arguments().size())
1034 TemplateArgument TA = TST->template_arguments()[Index];
1051 assert(TST && "InternalIterator is invalid with a null TST.");
1054 return TST->template_arguments()[Index];
1061 assert(TST && "InternalIterator is invalid with a null TST.");
1070 TSTiterator(ASTContext &Context, const TemplateSpecializationType *TST)
1071 : SugaredIterator(TST),
1073 (TST->isSugared() && !TST->isTypeAlias())
1074 ? GetTemplateSpecializationType(Context, TST->desugar())
1119 if (const TemplateSpecializationType *TST =
1121 return TST;
1419 const TemplateSpecializationType *TST) {
1420 while (TST) {
1421 TemplateList.push_back(TST);
1422 if (!TST->isTypeAlias())
1424 TST = TST->getAliasedType()->getAs<TemplateSpecializationType>();