mod_paren_on_return
Category: Code modifying options (non-whitespace)
Type: multiple (ignore add remove force)
Default: ignore
Add or remove unnecessary parentheses on 'return' statement.
| raw CPP code | mod_paren_on_return=ignore | mod_paren_on_return=add | mod_paren_on_return=remove | mod_paren_on_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); } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.