Bug report for indent (GNU indent 2.2.11)
Con Tameiki <[email protected]> Mon, 28 Nov 2016 08:55:54 +1100
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <CAN+ZO+D7YtN0BrDbbD_ao=TY7GHPYYvFg2Lm9nUArUBwysjOZw@mail.gmail.com> |
To the authors of GNU indent:
I have noticed a bug in version 2.2.11 of indent as follows:
Do loops like
do {
printf("foo");
}
while (1);
are not reformatted to
do {
printf("foo");
} while (1);
even when using the cuddle option, i.e. indent -cdw foo.c. However, the
cuddle option for else (-br -ce), structs (-brs) and functions (-brf) works.
I am running Ubuntu 16.04 LTS.
Regards,
Con