From 7fe06da8ae18f6faa6004b426b71943f372c5339 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 28 Dec 2023 16:29:04 -0800 Subject: [PATCH] Make pretty-print include `@struct` if present, updates #840 --- source/parse.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/parse.h b/source/parse.h index e8e6dafc5..3ac3555c4 100644 --- a/source/parse.h +++ b/source/parse.h @@ -4961,8 +4961,13 @@ auto pretty_print_visualize(declaration_node const& n, int indent, bool include_ // First compute the common parts auto metafunctions = std::string{}; - if (include_metafunctions_list) { - for (auto& meta : n.metafunctions) { + for (auto& meta : n.metafunctions) + { + if ( + include_metafunctions_list + || meta->to_string() == "struct" + ) + { metafunctions += " @" + pretty_print_visualize(*meta, indent); } }