indent_func_def_param_paren_pos_threshold
Category: Indenting options Type: numeric [0 .. 160] Default: 0
for function definitions, only if indent_func_def_param is false Allows to align params when appropriate and indent them when not behave as if it was true if paren position is more than this value if paren position is more than the option value
raw CPP code | indent_func_def_param_paren_pos_threshold=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 .. 160]
Not the best code for this option? See how to improve the .uds file used to generate these examples.