<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59724>59724</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            BraceWrapping: BeforeLambdaBody: true not working under some circumstances
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          tinachen123
      </td>
    </tr>
</table>

<pre>
    I have the following clang-format configurations:

```
---
Language:        Cpp
BasedOnStyle: Google
BreakBeforeBraces: Allman
ColumnLimit:     100
IndentWidth: 4
```

And clang format won't format this code block to break before the brace before the lambda body:
```
void Func()
{
    []() {
        return TestVeryLongThingName::TestVeryLongFunctionName()
 .TestAnotherVeryVeryLongFunctionName();
 }
}
```

However, it works for this block (if I made the continuation longer)

```
void Func()
{
    []()
    {
 return TestVeryLongThingName::TestVeryLongFunctionName()
 .TestAnotherVeryVeryVeryLongFunctionName();
    }
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VMGO2yAQ_Rp8QYnsIY7jgw_JRmlXitpDV90zxmObLh4iwIn27yvspJuV2lV7KLIw8AbmzYMZ6b3uCLFi-Y7l-0SOobeuCpqk6pEyEEltm9fqkffyjDz0yFtrjL1o6rgykrpFa90gA1eWWt2NTgZtyTOxZemepbd-nV6_abpYLObBUVI3yg6Z2PJrezidZmwnPTZf6Vt4NRP-ydrO4BVzKF922FqHOycVRn98a8wgaTZ4sGYc6KgHHW5nZ-nV-yM1SOFZN6GP2Oq3FOd-S80cJb9GebHEoAi3aei158o2yGtj1QsPlteRGq8nbpNedSR4v2DkUDeSR13fZHrv_Wx1ww8jKQYbBuXVptjNgxjNfF8zzN8hsTkMoyP-hD58R_d6tNQ99Zq6L3KIWjKxvYeio3hrE3rnkC-j1ZZs6NFF4w82iBsDVuxvdPcfKPvZXvCMjsED11FW9-KjqLOis5gMNrrlj3yQzSycshQ0jdML48ZSF_eXH7yzf5PxbvWXyX8U8m_EnLj8Uc-kqURTilImWGXrArINbESR9FW9bqFZr1UGeS0yUZYom02bQVnmot6kkOgKUoAMoACRibxYFkWdpyJvQeVp0daCrVIcpDZLY87D0rou0d6PWOVlAavEyBqNn2oGAOGFTyADiCXEVXHPoh47z1ap0T74t1OCDgarKWefnTydNHUxB-dUPk6JsZvzggc3Iic7P45YbkZq0HFvB-RKOzUOPkhS6JPRmaoP4TRVHTgwOHQ69GO9VHZgcIjOr7_FydkfqAKDw0TZMzhMIf0MAAD__2Lug5U">