nl_after_brace_open
Category: Newline adding and removing options
Type: boolean [false, true]
Default: false
Whether to add a newline after '{'.
| raw CPP code | nl_after_brace_open=false | nl_after_brace_open=true | nl nl_after_brace_open=true |
|---|---|---|---|
| int f(int a){ a++; while (a) { g(a); } { if(a) { a--; } } } int g(a) { f(a)+1; } | int f(int a){ a++; while (a) { g(a); } { if(a) { a--; } } } int g(a) { f(a)+1; } | int f(int a){ a++; while (a) { g(a); } { if(a) { a--; } } } int g(a) { f(a)+1; } | int f(int a){ a++; while (a) { g(a); } { if(a) { a--; } } } int g(a) { f(a)+1; } |
This option doesn't apply to the '{' function body.
Looks like the tracking is not working
Edited by JEAYNENot the best code for this option? See how to improve the .uds file used to generate these examples.