home  

sp_return_paren

Properties

  Category: Spacing options
      Type: multiple (ignore add remove force)
   Default: ignore

Description

Add or remove space between 'return' and '('.
  return(expr);

Examples

raw CPP code sp_return_paren=ignore sp_return_paren=add sp_return_paren=remove sp_return_paren=force space
sp_return_paren=force
int f(){ return(a+b); } int f(){ return (a+b); } // No effect on that int f(){ return a+b; } int f(){ return a+b; } int f(){ return(a+b); } int f(){ return (a+b); } // No effect on that int f(){ return a+b; } int f(){ return a+b; } int f(){ return (a+b); } int f(){ return (a+b); } // No effect on that int f(){ return a+b; } int f(){ return a+b; } int f(){ return(a+b); } int f(){ return(a+b); } // No effect on that int f(){ return a+b; } int f(){ return a+b; } int f(){ return (a+b); } int f(){ return (a+b); } // No effect on that int f(){ return a+b; } int f(){ return a+b; } intf(){ return(a+b); } intf(){ return(a+b); } // No effect on that intf(){ returna+b; } intf(){ returna+b; }
 

Info

  See also: sp_return
  Edited by JEAYNE

Not the best code for this option? See how to improve the .uds file used to generate these examples.