I am using uncrustify 0.69.0 (I can't get 0.71.0 to compile yet). I have the following:
static struct {
unsigned char streamid[2];
uint32_t adr;
} plus_crap[3] = { { { 0x00, 0x00 }, 0 },
{ { 0x00, 0x00 }, 0 },
{ { 0x00, 0x00 }, 0 } };
and want the following brace/new line arrangement (don't worry about the indenting):
static struct {
unsigned char streamid[2];
uint32_t adr;
} plus_crap[3] = {
{ { 0x00, 0x00 }, 0 },
{ { 0x00, 0x00 }, 0 },
{ { 0x00, 0x00 }, 0 }
};
any idea on uncrustify options to get it?
No you won't get that as you are hitting the limits here. We don't play compiler so we only know that you are assigning to a variable, we don't know how it is structured.
The only options that you can play around for this case are:
I doubt however that they will help you.