mod_full_brace_for
Category: Code modifying options (non-whitespace) Type: multiple (ignore add remove force) Default: ignore
Add or remove braces on a single-line 'for' statement.
raw CPP code | mod_full_brace_for=ignore | mod_full_brace_for=add | mod_full_brace_for=remove | mod_full_brace_for=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++;} } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.