nl_for_brace
Category: Newline adding and removing options Type: multiple (ignore add remove force) Default: ignore
Add or remove newline between 'for' and '{'.
raw CPP code | nl_for_brace=ignore | nl_for_brace=add | nl_for_brace=remove | nl_for_brace=force | nl nl_for_brace=force |
---|---|---|---|---|---|
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++; } } | 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.