mod_add_long_ifdef_else_comment
Category: Code modifying options (non-whitespace) Type: numeric [0 .. 255] Default: 0
If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after the #else, a comment will be added.
raw CPP code | mod_add_long_ifdef_else_comment=0 |
---|---|
void fmod1(){if(a)b();else c();} void fmod2(){if(a){b();}else{c();}} | void fmod1(){ if(a) b(); else c(); } void fmod2(){ if(a){b();}else{c();} } |
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.