mod_move_case_return
Category: Code modifying options (non-whitespace)
Type: boolean [false, true]
Default: false
Whether to move a 'return' that appears after a fully braced 'case' before
the close brace, as in 'case X: { ... } return;' => 'case X: { ... return; }'.
| raw CPP code | mod_move_case_return=false | mod_move_case_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(){ 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.