sp_while_paren_open
Category: Spacing options Type: multiple (ignore add remove force) Default: ignore
Add or remove space between 'while' and '('. Overrides sp_before_sparen.
raw CPP code | sp_while_paren_open=ignore | sp_while_paren_open=add | sp_while_paren_open=remove | sp_while_paren_open=force | space sp_while_paren_open=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.