Re: astyle issues

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 22 Feb 2003 15:57:29 +0100

More issues:

It sometimes does not deal correctly with multiline comments, each time
indenting the following lines more and more.

Found this when trying to commit changes after activating the astyle
filter.. it repeatedly complained on the file even after styling..

Henrik Nordstrom wrote:
>
> There seems to be a couple very annoying bugs in the astyle styling...
>
> 1. bitfields
>
> unsigned int transparent:
> 1; /* transparent proxy */
>
> Issues:
> Broken into multiple lines after the :
> Always flushed fully to the left, not indented.
>
> Should read:
> unsigned int transparent:1 /* transparent proxy */
>
> 2. struct and typedef "inline" variable declarations
>
> struct
> {
> [...]
> }
>
> Wais;
>
> Issues:
> Blank line between the } and the variable/typedef name.
>
> Should read:
>
> struct
> {
> [...]
> } Wais;
>
> There might be more bugs, but these are the most striking ones.
>
> Combined these two make a real disaster of most header files as can be
> seen below:
>
> struct _PeerDigest
> {
> [...]
> struct
> {
>
> unsigned int needed:
> 1; /* there were requests for this digest */
>
> unsigned int usable:
> 1; /* can be used for lookups */
>
> unsigned int requested:
> 1; /* in process of receiving [fresh] digest */
> }
>
> flags;
>
> struct
> {
> /* all times are absolute unless augmented with _delay */
> time_t initialized; /* creation */
> [...]
> };
Received on Sat Feb 22 2003 - 07:57:42 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:17 MST