home  

nl_before_switch

Properties

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

Description

Add or remove blank line before 'switch'.

Examples

raw CPP code nl_before_switch=ignore nl_before_switch=add nl_before_switch=remove nl_before_switch=force nl
nl_before_switch=force
void f(){switch(a){case 1:a++;break;case -1:a--;case 123:a--;break;default:a=0;}} void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } void f(){ switch(a){case 1: a++;break;case -1: a--;case 123: a--;break;default: a=0;} }
 

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