home  

nl_after_while

Properties

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

Description

Add or remove blank line after 'while' statement.

Examples

raw CPP code nl_after_while=ignore nl_after_while=add nl_after_while=remove nl_after_while=force nl
nl_after_while=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.