indent_first_for_expr
Category: Indenting options
Type: boolean [false, true]
Default: false
Whether to align the first expression to following ones if indent_semicolon_for_paren=true.
| raw CPP code | indent_first_for_expr=false | indent_first_for_expr=true |
|---|---|---|
| void f1(){for(i=0;i<10;i++)a++;} void f2(){for(i=0;i<10;i++){a++;}} | void f1(){ for(i=0; i<10; i++) a++; } void f2(){ for(i=0; i<10; i++){a++;} } | void f1(){ for(i=0; i<10; i++) a++; } void f2(){ for(i=0; i<10; i++){a++;} } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.