indent_compound_literal_return
Category: Indenting options
Type: boolean [false, true]
Default: true
How to indent compound literals that are being returned.
true: add both the indent from return & the compound literal open brace
(i.e. 2 indent levels)
false: only indent 1 level, don't add the indent for the open brace, only
add the indent for the return.
Default: true
| raw CPP code | indent_compound_literal_return=false | indent_compound_literal_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.