home  

nl_while_brace

Properties

  Category: Newline adding and removing options
      Type: multiple (ignore add remove force)
   Default: ignore

Description

Add or remove newline between 'while' and '{'.

Examples

raw CPP code nl_while_brace=ignore nl_while_brace=add nl_while_brace=remove nl_while_brace=force nl
nl_while_brace=force
void f1(){while(a>0)a++;} void f1(){while(a>0){a++;}} void f1(){ while(a>0) a++; } void f1(){ while(a>0){a++;} } void f1(){ while(a>0) a++; } void f1(){ while(a>0) { a++; } } void f1(){ while(a>0) a++; } void f1(){ while(a>0){ a++; } } void f1(){ while(a>0) a++; } void f1(){ while(a>0) { a++; } } void f1(){ while(a>0) a++; } void f1(){ while(a>0) { a++; } }
 

Not the best code for this option? See how to improve the .uds file used to generate these examples.