nl_else_if
Category: Newline adding and removing options Type: multiple (ignore add remove force) Default: ignore
Add or remove newline between 'else' and 'if'.
raw CPP code | nl_else_if=ignore | nl_else_if=add | nl_else_if=remove | nl_else_if=force | nl nl_else_if=force |
---|---|---|---|---|---|
void fnl1(){if(a)b();else c();} void fnl2(){if(a){b();}else{c();}} | void fnl1(){ if(a) b(); else c(); } void fnl2(){ if(a){b();}else{c();} } | void fnl1(){ if(a) b(); else c(); } void fnl2(){ if(a){b();}else{c();} } | void fnl1(){ if(a) b(); else c(); } void fnl2(){ if(a){b();}else{c();} } | void fnl1(){ if(a) b(); else c(); } void fnl2(){ if(a){b();}else{c();} } | void fnl1(){ if(a) b();elsec(); } void fnl2(){ if(a){b();}else{c();} } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.