File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -4064,11 +4064,6 @@ class cppfront
4064
4064
)
4065
4065
-> void
4066
4066
{ STACKINSTR
4067
- if (n.default_initializer ) {
4068
- printer.print_cpp2 (" {}" , n.position ());
4069
- return ;
4070
- }
4071
-
4072
4067
auto add_parens =
4073
4068
should_add_expression_list_parens ()
4074
4069
&& !n.inside_initializer
@@ -4078,6 +4073,14 @@ class cppfront
4078
4073
n.is_fold_expression () &&
4079
4074
!(n.inside_initializer && current_declarations.back ()->initializer ->position () != n.open_paren ->position ())
4080
4075
;
4076
+
4077
+ if (n.default_initializer ) {
4078
+ if (add_parens) {
4079
+ printer.print_cpp2 (" {}" , n.position ());
4080
+ }
4081
+ return ;
4082
+ }
4083
+
4081
4084
if (add_parens) {
4082
4085
printer.print_cpp2 ( *n.open_paren , n.position ());
4083
4086
}
You can’t perform that action at this time.
0 commit comments