<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/68913>68913</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Template lambda function is divided into two lines
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vovasokoll
</td>
</tr>
</table>
<pre>
Hi everyone, I have found an issue with template lambda function
clang-format | 17.0.2(b2417f51dbbd7435eb3aaf203de24de6754da50e)
-- | --
OS | Linux
`.clang-format`
```
Language: Cpp
BasedOnStyle: Google
```
c++ code before clang-format
```cpp
int main() {
[]<bool flag = false>() { return flag; } ();
return 0;
}
```
c++ code after clang-format
```cpp
int main() {
[]<bool flag = false>() { return flag; }
();
return 0;
}
```
I expect that nothing will change, and the lambda call will remain on the same line
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyklN1uozoQx59muBkF-YOPcMFFk5ycU6lSL3pewOABvGvsCJu0fftVIJs2Uvdmi5CRPTP_Pz_sQYVgekdUQ76D_JCoOQ5-qs_-rIL_6a1NGq_f6_8M0pmmd-8IxB4fcVBnws7PTqNyaEKYCV9NHDDSeLIqElo1NlphN7s2Gu8Q2AHYw-extcr1m85Po4qIUO6RlylLBYhtIzJedjnXTaPLTObUSKU6waQmkWkqyjzTKmcEolq1NhvEVWOzWVeeX9b5k3Hz2515wdLP1lCwW-B6L9Mn5fpZ9QTyAa_X_nRaYzsVSD-7l_hul_i_3veWvpS5soLYgdhh6zVhQ52fCO9e4r60_W1kXMRRGQdiC6JCKHfrOuK6YSD3jfcWO6t6BHnATtlAIP_5KMCJ4jy5JQXkDqE84BoFeVO75rDbEpSHL3HuQFQXafoex3cwbp_ir2nW8RHp7URtxDioiM7HwbgeX4212A7K9cuZV05jHG7nulXWrikTXcDQuyUc1EhojaNE11JXslIJ1byoSi7ZtuDJUHeFzoQkxonljOddxtuikKxhRdloIavE1IIJyRkXvOQZ52lV8C5XSsiuYnIrBGTs4mlTa89j6qc-WRqwLrYVl4lVDdmwNLQQd3sjxKXFp_pStmnmPkDGrAkxfAhFE-3yM7grzA_4_5_62gTU5mw0aTQueoyvfuEPyTzZeojxFEA-gDiCOPYmDnOTtn4Ecbx4Xh-b0-R_UBtBHBeSAOK4wPwKAAD__-ioVdM">