File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1145,6 +1145,12 @@ class ASTVisitor
1145
1145
{
1146
1146
auto R = std::make_unique<TemplateTArg>();
1147
1147
R->IsPackExpansion = A.isPackExpansion ();
1148
+
1149
+ // KRYSTIAN FIXME: template template arguments are
1150
+ // id-expression, so we don't properly support them yet.
1151
+ // for the time being, we will use the name & SymbolID of
1152
+ // the referenced declaration (if it isn't dependent),
1153
+ // and fallback to printing the template name otherwise
1148
1154
TemplateName TN = A.getAsTemplateOrTemplatePattern ();
1149
1155
if (auto * TD = TN.getAsTemplateDecl ())
1150
1156
{
@@ -1161,6 +1167,12 @@ class ASTVisitor
1161
1167
getOrBuildInfo (D);
1162
1168
}
1163
1169
}
1170
+ else
1171
+ {
1172
+ llvm::raw_string_ostream stream (R->Name );
1173
+ TN.print (stream, context_.getPrintingPolicy (),
1174
+ TemplateName::Qualified::AsWritten);
1175
+ }
1164
1176
return R;
1165
1177
}
1166
1178
// nullptr value
You can’t perform that action at this time.
0 commit comments