nl_after_brace_close
Category: Newline adding and removing options
Type: boolean [false, true]
Default: false
Whether to add a newline after '}'. Does not apply if followed by a necessary ';'.
| raw CPP code | nl_after_brace_close=false | nl_after_brace_close=true | nl nl_after_brace_close=true |
|---|---|---|---|
| void f(int a){ if ( a ) { g(); } else { while ( a ) { a = h(); } } } | void f(int a){ if ( a ) { g(); } else { while ( a ) { a = h(); } } } | void f(int a){ if ( a ) { g(); } else { while ( a ) { a = h(); } } } | void f(int a){ if ( a ) { g(); } else{ while ( a ) { a = h(); } } } |
Looks like the tracking is not working Edited by JEAYNE
Not the best code for this option? See how to improve the .uds file used to generate these examples.