<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/91270>91270</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] SpaceBeforeParens doesn't apply in multi-statement lambda body on a single line
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Tamaranch
</td>
</tr>
</table>
<pre>
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
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysUk2L3DAM_TXORUxwnIw9OeSw02F6KW1hW3osSiwnLo4dbGfb-fclmS7LLqWngsH6QE9P0sOU7OiJOnY8s-OlwDVPIXZfcMaIfpiKPuhb983mifEL4w9M8vu74ezuoQ_oxxVHYvUDvFuWe_CMifQn_5hvbk-8__j1DcDdzZNNMARNYBM4MhkwbWZ_g8GhHw8mxBkzqx_elA_PnXDNARzOvUZg9QXugwATJ-szIBMtMHUGw8Rpc1h9hkh5jX6zmLqw-vxXZj8nioQJXjE09hfpDZtJbuAZUnKwPmVCDcHAlnrJ7C3_J_l_UH6imGzw274rVfJSAnoNVVvykn-PTau4UmVzUq1UaE6CHwvd1bqtWyyoq1R15KIVoimmrteNkrLV0pheohn6U1UPutK6qblpjSxsJ7ho-JFLUXEumrLXlamQ17U8mbYhYg2nGa0rnXuayxDHwqa0UtdWQvHCYU8u7aIT4tWhhdhkGLut7NCvY2INdzbl9AKUbXa7YF8VHi_wuOBAZzIh0meM5BPoQMkzoTLgsrgbWA_z6rI9pIyZZvL5efubziF4QEjWj47AWU_FGl035byk7YbiysR1tHla-3IIMxPXjdKf77DE8IOGzMR1HzQxcd1n_R0AAP__QCL8gA">