nl_create_for_one_liner
Category: Newline adding and removing options Type: boolean [false, true] Default: false
Whether to remove a newline in simple unbraced for statements, turning them into one-liners, as in 'for (...)\n stmt;' => 'for (...) stmt;'.
raw CPP code | nl_create_for_one_liner=false | nl_create_for_one_liner=true | nl nl_create_for_one_liner=true |
---|---|---|---|
void fnl1(){for(i=0;i<10;i++)a++;} void fnl2(){for(i=0;i<10;i++){a++;}} | void fnl1(){ for(i=0; i<10; i++) a++; } void fnl2(){ for(i=0; i<10; i++){a++;} } | void fnl1(){ for(i=0; i<10; i++) a++; } void fnl2(){ for(i=0; i<10; i++){a++;} } | void fnl1(){ for(i=0;i<10;i++) a++; } void fnl2(){ 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.