When passing a lambda function as an argument In a C++ initializer list, the indentation of the subsequent members is broken (they are not indented at all).
The correct
Test::Test() : member1(argument)
, member2([this] {some_code(argument);})
, member3(42)
, member4("test")
{
}
is changed to
Test::Test() : member1(argument)
, member2([this] {some_code(argument);})
, member3(42)
, member4("test")
{
}
This is a similar issue as 441, however the fix doesn't work for this case.
Sorry, wrong file.
Possibly similar to issue 266? Lambdas are somewhat new to C++ and seem to mess up indent in a few ways.
Last edit: fritzophrenic 2017-10-24
Please test with recent beta versions (3.3)
Fixed with new option --indent-lambda.