Issue |
91270
|
Summary |
[clang-format] SpaceBeforeParens doesn't apply in multi-statement lambda body on a single line
|
Labels |
clang-format
|
Assignees |
|
Reporter |
Tamaranch
|
With
```yaml
Language: Cpp
BasedOnStyle: GNU
```
this code is left as is by clang-format:
```cpp
auto lambda = [] (int a) { f(a); return; };
```
whereas this code is fixed (`f (a)` instead of `f(a)`):
```cpp
auto lambda = [] (int a) { f(a); };
```
version: 17.0.6 and 19.0.0_r497077.487967af8205
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs