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