I use AStyle to format C++ using Whitesmith format.
I want that variable declaration in class are aligned on { and } as public:, protected: or private: are aligned on {.
To be simple, I want to have following formatting
class XRecord
{
public:
int iCount; string sName; };
But, formatting using Whitesmith, I obtain following lines
class XRecord
{
public:
int iCount;
string sName;
};
The declaration of variable are indented by 8 characters, but I want that these lines are indented by 4 characters so that they are aligned to first { just behind class declaration.
I see that that --indent-modifier AStyle option exists but it seems doing nothing in Whitesmith !
CAUTION: this is perhaps a bug. Indeed, In WHITESMITH formatting, modifiers indentation is perhaps badly implemented !
Sorry, I see that the display of my question is not correclty formatted.
I want to correct it, but I don't find how to edit it again !
So, I will do that in this post.
I want to have
But, formatting using Whitesmith, I obtain following lines