indent_semicolon_for_paren
Category: Indenting options
Type: boolean [false, true]
Default: false
Whether to indent a semicolon when inside a for parenthesis. If true, aligns under the open for parenthesis.
| raw CPP code | indent_semicolon_for_paren=false | indent_semicolon_for_paren=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.