Reference 1.7 Declarations:
If the ‘-bc’ option is specified, a newline is forced after each comma in a declaration. For example,
int a, b, c;
With the ‘-nbc’ option this would look like
int a, b, c;
You need to use the -nbc
option to get the output you want.
Note that this will disable newlines after every ,
in a declaration.
You may want to look at 1.10 Disabling Formatting to turn off formating for a particular section of code.
For example:
void foo () { /* *INDENT-OFF* */ struct_a arr[] = { {&a, sizeof (a)}, {&b, sizeof (b)}, {&c, sizeof (c)}, {&d, sizeof (d)}, }; /* *INDENT-ON* */ }