sp_trailing_return
Category: Spacing options
Type: multiple (ignore add remove force)
Default: ignore
Add or remove space around trailing return operator '->'.
| raw CPP code | sp_trailing_return=ignore | sp_trailing_return=add | sp_trailing_return=remove | sp_trailing_return=force | space sp_trailing_return=force |
|---|---|---|---|---|---|
| void f(){return;} int f(){return a+b;} int f(){return(a+b);} | void f(){ return; } int f(){ return a+b; } int f(){ return(a+b); } | void f(){ return; } int f(){ return a+b; } int f(){ return(a+b); } | void f(){ return; } int f(){ return a+b; } int f(){ return(a+b); } | void f(){ return; } int f(){ return a+b; } int f(){ return(a+b); } | voidf(){ return; } intf(){ returna+b; } intf(){ return(a+b); } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.