#266 Indentation of Lambda Expressions in multiline argument lists

2.x
open
nobody
None
5
2014-08-18
2014-01-23
BenBE
No

Assuming the following code:

    auto foo( bar( value1,
        []() {
            return 42;
        } );

    auto foo( bar(
        value1,
        []() {
            return 42;
        } );

and using the following settings:
astyle --style=java --add-brackets --indent-col1-comments --break-blocks --pad-oper --pad-paren-in --unpad-paren --indent-namespaces --align-pointer=type --align-reference=type --convert-tabs --lineend=windows testcase.cpp

I get the following misbehaviour. For the intended result see above.

    auto foo( bar( value1,
    []() {
        return 42;
    } );

    auto foo( bar(
                  value1,
    []() {
        return 42;
    } );

Discussion