home  

nl_after_brace_close

Properties

  Category: Newline adding and removing options
      Type: boolean [false, true]
   Default: false

Description

Whether to add a newline after '}'. Does not apply if followed by a
necessary ';'.

Examples

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(); } } }
 

Info

  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.