sp_return
Category: Spacing options Type: multiple (ignore add remove force) Default: force
Add or remove space after 'return'. Default: force
returnexpr;
raw CPP code | sp_return=ignore | sp_return=add | sp_return=remove | sp_return=force | space sp_return=force |
---|---|---|---|---|---|
void f(){ return; } int f(){ return+1; } int f(){ return +1; } int f(){ return a+b; } int f(){ return a+b; } // No effect on that int f(){ return(a+b); } int f(){ return (a+b); } | void f(){ return; } int f(){ return+1; } int f(){ return +1; } int f(){ return a+b; } int f(){ return a+b; } // No effect on that int f(){ return(a+b); } int f(){ return (a+b); } | void f(){ return; } int f(){ return +1; } int f(){ return +1; } int f(){ return a+b; } int f(){ return a+b; } // No effect on that int f(){ return(a+b); } int f(){ return (a+b); } | void f(){ return; } int f(){ return +1; } int f(){ return +1; } int f(){ return a+b; } int f(){ return a+b; } // No effect on that int f(){ return(a+b); } int f(){ return (a+b); } | void f(){ return; } int f(){ return +1; } int f(){ return +1; } int f(){ return a+b; } int f(){ return a+b; } // No effect on that int f(){ return(a+b); } int f(){ return (a+b); } | voidf(){ return; } intf(){ return+1; } intf(){ return+1; } intf(){ returna+b; } intf(){ returna+b; } // No effect on that intf(){ return(a+b); } intf(){ return(a+b); } |
Take care: the default is force. This option has no effect on "return(a+b)" or "return (a+b)" See sp_return_paren Edited by JEAYNE
Not the best code for this option? See how to improve the .uds file used to generate these examples.