https://bugs.llvm.org/show_bug.cgi?id=45816
The following revision adds the ability to align consecutive bitfield similar to AlignConsecutiveAssignments and AlignConsecutiveDeclarations
This will format the following code from
struct Options {
bool some_field : 1;
bool some_another_field : 1;
int yet_another_field : 1;
};With the following consiguration change
... AlignConsecutiveBitFields: 'true' ...
To be
struct Options {
bool some_field : 1;
bool some_another_field : 1;
int yet_another_field : 1;
};
This needs to be before assignments, because 'int foo : 3 = 1;' is valid in c++2a.