Skip to content

Commit 7fe06da

Browse files
committed
Make pretty-print include @struct if present, updates #840
1 parent 07e00c8 commit 7fe06da

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/parse.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4961,8 +4961,13 @@ auto pretty_print_visualize(declaration_node const& n, int indent, bool include_
49614961
// First compute the common parts
49624962

49634963
auto metafunctions = std::string{};
4964-
if (include_metafunctions_list) {
4965-
for (auto& meta : n.metafunctions) {
4964+
for (auto& meta : n.metafunctions)
4965+
{
4966+
if (
4967+
include_metafunctions_list
4968+
|| meta->to_string() == "struct"
4969+
)
4970+
{
49664971
metafunctions += " @" + pretty_print_visualize(*meta, indent);
49674972
}
49684973
}

0 commit comments

Comments
 (0)