We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
print_to_string
1 parent bad1903 commit 923e0f3Copy full SHA for 923e0f3
source/cppfront.cpp
@@ -1373,9 +1373,16 @@ class cppfront
1373
auto... more
1374
)
1375
{
1376
+ // Quick special-purpose preservation of need_* state... right now it's
1377
+ // only needed here so the tactical fix is fine, but if it's needed
1378
+ // elsewhere then generalize this
1379
+ auto state = need_expression_list_parens;
1380
+
1381
printer.emit_to_string(str);
1382
emit(i, more...);
1383
printer.emit_to_string();
1384
1385
+ need_expression_list_parens.swap(state); // restore the state
1386
};
1387
1388
auto print_to_string(
0 commit comments