nl_for_leave_one_liners
Category: Newline adding and removing options Type: boolean [false, true] Default: false
Don't split one-line for statements, as in 'for(...) b++;'.
raw CPP code | nl_for_leave_one_liners=false | nl_for_leave_one_liners=true | nl nl_for_leave_one_liners=true |
---|---|---|---|
void f1(){for(i=0;i<10;i++)a++;} void f2(){for(i=0;i<10;i++){a++;}} | void f1(){ for(i=0; i<10; i++) a++; } void f2(){ for(i=0; i<10; i++){a++;} } | void f1(){ for(i=0; i<10; i++) a++; } void f2(){ for(i=0; i<10; i++){a++;} } | void f1(){ for(i=0;i<10;i++) a++; } void f2(){ for(i=0;i<10;i++){a++;} } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.