mod_remove_empty_return
Category: Code modifying options (non-whitespace)
Type: boolean [false, true]
Default: false
Whether to remove a void 'return;' that appears as the last statement in a function.
| raw CPP code | mod_remove_empty_return=false | mod_remove_empty_return=true |
|---|---|---|
| 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(){ } 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.