[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
the -ce causes comment following closing if brace to move to next line
From: |
Phil Smith |
Subject: |
the -ce causes comment following closing if brace to move to next line |
Date: |
Fri, 9 Aug 2013 19:50:49 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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
address@hidden
address@hidden
Mullard Space Science Laboratory,
Dept. of Space and Climate Physics,
University College London.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- the -ce causes comment following closing if brace to move to next line,
Phil Smith <=