Hi Jim,
So currently there is no option (from the commandline) to control the indent of initializer list - it's always one indent. E.g. code (dots represent spaces):
Foo::Foo() :
a(1),
b(2)
{}
Will be indented (assuming that 1 indent = 4 spaces):
Foo::Foo() :
....a(1),
....b(2)
{}
What I'd like to do, is to indent initializer list more than one unit, e.g.
Foo::Foo() :
........a(1),
........b(2)
{}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is something that would probably be useful.
Are you planning on doing it?
Don't forget about c++11 uniform initializers.
Be sure to include one or more test cases in AStyleTest.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I might implement this this, however, don't promise (I'm quite busy right now). Let's leave this ticket open, someone can pick it up in the future (me, you, or someone else).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to see an example of what the output would look like.
How would it differ from what is being done now?
Hi Jim,
So currently there is no option (from the commandline) to control the indent of initializer list - it's always one indent. E.g. code (dots represent spaces):
Foo::Foo() :
a(1),
b(2)
{}
Will be indented (assuming that 1 indent = 4 spaces):
Foo::Foo() :
....a(1),
....b(2)
{}
What I'd like to do, is to indent initializer list more than one unit, e.g.
Foo::Foo() :
........a(1),
........b(2)
{}
This is something that would probably be useful.
Are you planning on doing it?
Don't forget about c++11 uniform initializers.
Be sure to include one or more test cases in AStyleTest.
I might implement this this, however, don't promise (I'm quite busy right now). Let's leave this ticket open, someone can pick it up in the future (me, you, or someone else).
Ticket moved from /p/astyle/bugs/425/