sp_brace_close_while
Category: Spacing options Type: multiple (ignore add remove force) Default: ignore
Add or remove space between '}' and 'while'.
raw CPP code | sp_brace_close_while=ignore | sp_brace_close_while=add | sp_brace_close_while=remove | sp_brace_close_while=force | space sp_brace_close_while=force |
---|---|---|---|---|---|
void f1(){while(a>0)a++;} void f1(){while(a>0){a++;}} | void f1(){ while(a>0) a++; } void f1(){ while(a>0){a++;} } | void f1(){ while(a>0) a++; } void f1(){ while(a>0){a++;} } | void f1(){ while(a>0) a++; } void f1(){ while(a>0){a++;} } | void f1(){ while(a>0) a++; } void f1(){ while(a>0){a++;} } | voidf1(){ while(a>0)a++; } voidf1(){ while(a>0){a++;} } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.