Skip to content

clang-format 13.0.0: LambdaBodyIndentation: OuterScope closing brace & parenthesis too indented #53212

@mikezackles

Description

@mikezackles

Hello! I've put a minimal reproduction here

The relevant output is something like

  some_function(
      a_really_long_name, another_long_name, a_third_long_name,
      [&](LineCallback line_callback) {
    int a;
    int b;
      }); // <- This is hanging in the middle of nowhere :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorclang-formatconfirmedVerified by a second party

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions