indent_braces
Category: Indenting options Type: boolean [false, true] Default: false
Whether braces are indented to the body level.
raw CPP code | indent_braces=false | indent_braces=true |
---|---|---|
int main(int argc,char**argv){ if(argc>1){ printf("Hello %s!\n",argv[1]); }else{ puts("Hello world!"); } } class C { void f(int i){ a=i; }; int a; }; //------------------------------------ int main(int argc,char**argv) { if(argc>1) { printf("Hello %s!\n",argv[1]); } else { puts("Hello world!"); } } class C { void f(int i) { a=i; }; int a; }; | int main(int argc,char**argv){ if(argc>1){ printf("Hello %s!\n",argv[1]); }else{ puts("Hello world!"); } } class C { void f(int i){ a=i; }; int a; }; //------------------------------------ int main(int argc,char**argv) { if(argc>1) { printf("Hello %s!\n",argv[1]); } else { puts("Hello world!"); } } class C { void f(int i) { a=i; }; int a; }; | int main(int argc,char**argv){ if(argc>1){ printf("Hello %s!\n",argv[1]); }else{ puts("Hello world!"); } } class C { void f(int i){ a=i; }; int a; }; //------------------------------------ int main(int argc,char**argv) { if(argc>1) { printf("Hello %s!\n",argv[1]); } else { puts("Hello world!"); } } class C { void f(int i) { a=i; }; int a; }; |
See also: indent_braces_no_class indent_braces_no_func indent_braces_no_struct Edited by JEAYNE
Not the best code for this option? See how to improve the .uds file used to generate these examples.