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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] The variable name in the lambda joins to the class name breaking the code after formating
        </td>
    </tr>

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

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

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

<pre>
    All the files I have collected in [this gist](https://gist.github.com/arsdever/b811514a8e159161d39c83ead286c304). To reproduce, download both files into the same folder and run the `clang-format`.

IMO, the issue is that [on this](https://gist.github.com/arsdever/b811514a8e159161d39c83ead286c304#file-sample-cpp-L10) line the class name goes all the way to the spacebar on the upper line, so after formatting the variable name on that line goes back to match the indentation to the `thread` variables name indentation.

clang-format: version 13.0.1
OS: windows
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1U02P2yAQ_TX2BcUC_JmDD2mjSiu12kP3D4yB2OwSsAAn2n_fwU7apD1XsmCA4fHem_Hg5Gd_MIbESZGTNiqQFzLBRRHhjFEiKkm0JVn9JU46kFGHmNXHjHdTjHPIykPGv-GX9otRx2kZCuHOuAM-SHVRHsOhY6xmFXSK1XvWMFnuRVcqkLxrREmrjO8L8uaIV7N3chEq41-JdFdrHEgyuDjdmGkb3Uo0wBnZOiOVJ2Al8Ytd97OGCgN23J2cP0PEZZHRY0YP2_jy4zVBp0wdwpJGXEBM8lxC0OE_iCsT-R1SnnES87z7zihKJkZbtXJByiEQmzSNDmXCrRxX-CR3wTMINYAnbhO6zDNKTwhJUHAEThE3NtlR23HNuoDXMBi1Ya9XUez67vrQAOIjvYB3xLTZYqWyEaJOye7uaZw8CsLgN-KN7kP6k9FPRSgPBK0KCZKVBS3YlvP6M51cEcJdQy77Uu7LPeRRR6N6LMgTRn0kb_8I0psXBs6DBPLutA130g-WDsj94-6IcFI9eYUH-eJN_3fFH4ptzOU-7bBB3_GnwOXaQAGDumo5zadeskqdpGy7DljTyq5mqsKSCclV03WYYmBQJiRpGedWXbcexBjV5brnlHNaUc6amtZd0ba8ozA0Yt82dQNtVlF1Bm2KxKNwfsx9v1IaljHgocEmDX8OUb4erVqdTPiwxMn5_t64-fp2v3L_BUtHURQ">