nl_ds_struct_enum_cmt
Official description: Whether to double-space commented-entries in 'struct'/'union'/'enum'.
It seems official description cited above is incorrect. Instead nl_ds_struct_enum_cmt
adds newline before commented member of 'struct'/'union'/'enum'.
Possible values are true and false, default false.
Examples
true
Before:
typedef struct {
int hour;
int min;
// int gee;
int sec;
} counter_t;
After
typedef struct {
int hour;
int min;
// int gee;
int sec;
} counter_t;
false
Example remains unchanged.
See also
- nl_squeeze_ifdef: Whether to remove blanks after
#ifxx
and#elxx
, or before#elxx
and#endif
. - nl_after_case: Whether to add a newline after a
case
statement. - nl_after_if: Add or remove blank line after
if
statement. - nl_before_case: Whether to add a newline before
case
, and a blank line before acase
statement that follows a;
or}
.