nl_var_def_blk_start
Category: Blank line options Type: numeric [0 .. 16] Default: 0
The minimum number of empty newlines before a block of variable definitions not at the top of a function body. If nl_after_access_spec is non-zero, that option takes precedence. Newlines are not added at the top of the file or just after an opening brace. Newlines are added above any preprocessor directives before the block. 0: No change (default).
raw CPP code | nl_var_def_blk_start=0 | nl_var_def_blk_start=5 | nl_var_def_blk_start=10 | nl_var_def_blk_start=16 | nl nl_var_def_blk_start=0 |
---|---|---|---|---|---|
/*-- 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; } | /*-- 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; } | /*-- 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.