Skip to content

Commit 23ca6b9

Browse files
committed
Also account for volatile type qualifiers
1 parent abe1e61 commit 23ca6b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/ClangImporter/ClangClassTemplateNamePrinter.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,16 @@ struct TemplateArgumentPrinter
183183
void VisitTypeTemplateArgument(const clang::TemplateArgument &arg,
184184
llvm::raw_svector_ostream &buffer) {
185185
auto ty = arg.getAsType();
186+
186187
if (ty.isConstQualified())
187188
buffer << "__cxxConst<";
189+
if (ty.isVolatileQualified())
190+
buffer << "__cxxVolatile<";
191+
188192
buffer << typePrinter.Visit(ty.getTypePtr());
193+
194+
if (ty.isVolatileQualified())
195+
buffer << ">";
189196
if (ty.isConstQualified())
190197
buffer << ">";
191198
}

0 commit comments

Comments
 (0)