Skip to content

Commit

Permalink
Make pretty-print include @struct if present, updates #840
Browse files Browse the repository at this point in the history
  • Loading branch information
hsutter committed Dec 29, 2023
1 parent 07e00c8 commit 7fe06da
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 7fe06da

Please sign in to comment.