the -ce causes comment following closing if brace to move to next line
Phil Smith <[email protected]> Fri, 9 Aug 2013 19:50:49 +0100
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <[email protected]> |
With this example:
int aa(int b)
{
int a = 1;;
if (a == 1) {
a = 2;
} /* if (a == 1 ... */
/* call check a */
if (!check(a)) {
a = 0;
}
}
Running this command:
/bin/indent -br -ce -st aa.c
The output is this:
int
aa (int b)
{
int a = 1;;
if (a == 1) {
a = 2;
}
/* if (a == 1 ... */
/* call check a */
if (!check (a)) {
a = 0;
}
}
However I wouldn't expect the -ce to cause the
/* if (a == 1 ... */
comment to move onto the next line.
Without the -ce this doesn't happen.
Would you consider this a bug?
--
Philip J. Smith
[email protected]
[email protected]
Mullard Space Science Laboratory,
Dept. of Space and Climate Physics,
University College London.