#3 C/C++ bit fields get a line feed

open
nobody
None
5
2006-11-07
2006-11-07
No

C/C++ bit fields are (incorrectly) treated like labels:

struct A {
int a:1;
};

will become something like

struct A {
int a:
1;
};

instead of keeping the "1;" in the same row. This is
identical behavior to the original AStyle, see their
bug report 1238641 as reference (including a hacked
solution proposal by me).

Discussion


Log in to post a comment.