Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: pindakaas on December 22, 2006, 04:34:10 pm

Title: Source code formatter (AStyle) 1.2 Bug
Post by: pindakaas on December 22, 2006, 04:34:10 pm
Fist off: great plug-in. This plug-in is proving to be very useful in our multi-site project. But...

The formatter seems to have some problems with structure definitions that contain bit field definitions.
It formats them as following:

                struct
                {
UL  Reserved8       :
                    24;
UL  Reserved7       :
                    1;
...
                }
                b;

Title: Re: Source code formatter (AStyle) 1.2 Bug
Post by: Ceniza on December 23, 2006, 12:01:14 am
IIRC it's a problem already reported in AStyle's bug tracker, unfortunately there has not been another release for almost 5 months now to try with something newer, and the repository was disabled.

Since it's a 3rd party library, with a code hard to follow, the most we can do is to check if the bug is already reported, and report it if it's not.