Issue 125430
Summary Clang-format - AllowShortLambdasOnASingleLine - doesn't work for braced called constructers
Labels clang-format
Assignees
Reporter robert-andrzejuk
    Set: AllowShortLambdasOnASingleLine : Inline

Example (brace):
```cpp
 auto guard = scope_exit{[&]{exit_status = true;}};
```

formats to:
```cpp
      auto guard = scope_exit{ [&]
 {
                                   exit_status = true;
 } };
```

Should be:
```cpp
      auto guard = scope_exit{[&] { exit_status = true; }};
```

This works correctly with parenthesis constructor parameters.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to