Skip to content

Commit a9c6b01

Browse files
committed
fix(reflect): add space to avoid max munch on >=
1 parent 24c684b commit a9c6b01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/reflect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ declaration::declaration(declaration const& that)
10301030
cpp2::Default.expects(parent_is_type(), "");
10311031
#line 361 "reflect.h2"
10321032
auto prefix {CPP2_UFCS(pretty_print_visualize, (*cpp2::assert_not_null(n)), 0)};
1033-
CPP2_UFCS_0(pop_back, prefix);// Remove final ';'.
1033+
CPP2_UFCS_0(back, prefix) = ' ';// Remove final ';'.
10341034
auto p {CPP2_UFCS_0(as_type, get_parent())};
10351035
CPP2_UFCS(add_member, p, std::move(prefix) + source);
10361036
static_cast<void>(std::move(p));

source/reflect.h2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ function_declaration: @copyable type =
359359
pre(parent_is_type())
360360
= {
361361
prefix := n*.pretty_print_visualize(0);
362-
prefix.pop_back(); // Remove final ';'.
362+
prefix.back() = ' '; // Remove final ';'.
363363
p := get_parent().as_type();
364364
p.add_member(prefix + source);
365365
_ = p;

0 commit comments

Comments
 (0)