nl_remove_extra_newlines
Category: Blank line options
Type: numeric [0 .. 2]
Default: 0
How aggressively to remove extra newlines not in preprocessor. 0: No change (default) 1: Remove most newlines not handled by other config 2: Remove all newlines and reformat completely by config
| raw CPP code | nl_remove_extra_newlines=0 | nl_remove_extra_newlines=1 | nl_remove_extra_newlines=2 | nl nl_remove_extra_newlines=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; } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.