mod_add_long_function_closebrace_comment
Category: Code modifying options (non-whitespace)
Type: numeric [0 .. 255]
Default: 0
If a function body exceeds the specified number of newlines and doesn't have a comment after the close brace, a comment will be added.
| raw CPP code | mod_add_long_function_closebrace_comment=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; } |
need to be tuned with some values in [0 .. 255]
Not the best code for this option? See how to improve the .uds file used to generate these examples.