Skip to content

Commit a382aa9

Browse files
committed
[ASTDump] Add support for structural value template arguments in TextNodeDumper
1 parent 9d5edc9 commit a382aa9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

clang/include/clang/AST/TextNodeDumper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ class TextNodeDumper
249249
void VisitDeclarationTemplateArgument(const TemplateArgument &TA);
250250
void VisitNullPtrTemplateArgument(const TemplateArgument &TA);
251251
void VisitIntegralTemplateArgument(const TemplateArgument &TA);
252+
void VisitStructuralValueTemplateArgument(const TemplateArgument &TA);
252253
void VisitTemplateTemplateArgument(const TemplateArgument &TA);
253254
void VisitTemplateExpansionTemplateArgument(const TemplateArgument &TA);
254255
void VisitExpressionTemplateArgument(const TemplateArgument &TA);

clang/lib/AST/TextNodeDumper.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,11 @@ void TextNodeDumper::VisitIntegralTemplateArgument(const TemplateArgument &TA) {
12261226
dumpTemplateArgument(TA);
12271227
}
12281228

1229+
void TextNodeDumper::VisitStructuralValueTemplateArgument(const TemplateArgument &TA) {
1230+
OS << " structural value";
1231+
dumpTemplateArgument(TA);
1232+
}
1233+
12291234
void TextNodeDumper::dumpTemplateName(TemplateName TN, StringRef Label) {
12301235
AddChild(Label, [=] {
12311236
{

0 commit comments

Comments
 (0)