0

I'm looking for a Astyle option to indent C++ constructors from :

foo::foo(int param) : m_param(param)
  , m_x(0)
  , m_y(0)

To :

foo::foo(int param) : m_param(param)
                    , m_x(0)
                    , m_y(0)

I havn't found that in the documentation nor on google. Thanks.

MokaT
  • 1,416
  • 16
  • 37

1 Answers1

1

There is no such option in the current release of AStyle. It handles multi-line initializer lists as continuation lines, with no special handling applied.

DevSolar
  • 67,862
  • 21
  • 134
  • 209
  • Thanks for you reply, do you know any way to do it then ? Or do I have to forget it ? – MokaT May 22 '14 at 11:11
  • @MoKaT: Your best bet would probably be adding the feature to the AStyle source, then sending the patch to Jim for inclusion. ;-) Sorry, cannot help you any further on this account. I am quite happy AStyle does as much as it does already... – DevSolar May 22 '14 at 11:13
  • Yep, maybe I'll do it if I found the time, the skill and the motivation. Thanks. Answer accepted. – MokaT May 22 '14 at 11:21