indent_access_spec
Category: Indenting options
Type: numeric [-16 .. 16]
Default: 1
How to indent access specifiers that are followed by a colon. >0: Absolute column where 1 is the leftmost column <=0: Subtract from brace indent Default: 1
| raw CPP code | indent_access_spec=1 |
|---|---|
| /*-- this is the default sample --*/ int main(int argc, char** argv){ int n = 0; if(arg>=1){ printf("Hello %s!\n", argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } return n; } | /*-- this is the default sample --*/ int main(int argc, char** argv){ int n = 0; if(arg>=1){ printf("Hello %s!\n", argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } return n; } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.