Menu

#266 Indentation of Lambda Expressions in multiline argument lists

closed-fixed
None
2023-05-19
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

  • waldyrious

    waldyrious - 2016-09-27

    I have the same issue. Is there anything we can do to help its resolution?

     
  • André Simon

    André Simon - 2023-04-18
    • status: open --> open-fixed
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2023-04-18

    Please check the latest 3.3 beta release.

     
  • André Simon

    André Simon - 2023-05-19
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB