Community
Participate
Working Groups
After a multi-line initializer, future initializers have incorrect indentation when indented by eclipse. Consider the code: class Foo { Foo(int, int); }; struct Test { Foo a; Foo b; Test() : a(1, 2), b(1, 2) {} }; (Note the a() initializer spans two lines). When auto-indented (ctrl-I), the constructor is incorrectly formatted to: Test() : a(1, 2), b(1, 2) {} That is, the 'b' is aligned as if it were a parameter for 'a'. Ideally it should align with 'a', just like it does if one puts the 'a(1, 2)' on a single line: Test() : a(1, 2), b(1, 2) {}
I have fiddled about a bit and have a patch which appears to fix this. I'll look at what it would take to sort out the CLA and prepare a patch for comment.