I spend some time to run the astyle-1.21 on squid3 code. I tried to run
it with the following parameters:
--mode=c -s4 -O --break-blocks -l
I am only seeing the following two problems:
1) The --break-blocks and -l option.
Using these options the code:
#ifdef SOME
{
....
}
Converted to:
#ifdef SOME {
....
}
Maybe we can omit these options ....
2) Bit fields in structs are not formated well.
struct
{
unsigned int open:1;
unsigned int close_request:1;
unsigned int write_daemon:1;
.......
}
Converted to:
struct
{
unsigned int open:
1;
unsigned int close_request:
1;
unsigned int write_daemon:
1;
...........
}
Received on Sat Jan 05 2008 - 04:05:18 MST
This archive was generated by hypermail pre-2.1.9 : Wed Jan 30 2008 - 12:00:09 MST