<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylVN2unCAQfhq9maxR0N31wouz2fauadL0BRBQaREM4Hr2PH1HPN2ftElzUmIE5o_55htorbg23wcJndXaLsr0wK2QsKgwQEA5C4HxQQrIuGam33XWjSxAp7SE1kn200eHJD8n-cv7f5-zOVjQkBxOkFSnpDrDLqGfQJnwbnI4bQvAgVKMYXyA1-hREpzOCT09Bl0NnQyzM_B6V6HZbYHCff7o8m02ZgWUEPKY-66gEKQPGZ8mVMHkrJi59BHurQwfBAS_xxOy27hB_AfC2_gD6sMBZ_gr3K_tRdnZ6yt8YU7YxcDAPLRzQPocErjBWyuwFgVVKgDTC7t6EFZGy2ijxsm6wMy6Wy3VWhm26bBeD2yt1UOtscuTIsq9jQ4X6a4PEf3EuNzyktIgytFeMLVlUHyAUTKzsfDeglpjbNDW9NKhbJyw6Z54qU6aja1g2ZuakJOEHIcQJp_Ql4R8xq_HLp7bDF1xo_Xl97RDzn9IHnC7NrLH-VDT_Z7Uq8E9JKlT0VBR05ql2AGDdY1gFyWG2QTpCElnp5sPH6m8n-OZFS3zOh0acSwKSvec8qqUnHXt8dgdScHzuhZVlR9SzVqpfbN2HiFGLhBD4BpBp_-fgWpITkhekKqoaVWSrBJl0XW8krmkoiNtUuZyZEpna5zMuj51TQzZzr1HpVY--LuSea96I2WzXZU0qKBl8_R-4B1kRkBR3h-RSO_28LQO20TgrVFBMa3esGWtAdvBxg2kEUATs_8F9ER3-w>53409</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format 13 and 14 breaks compile with braced initialization of lambda 
        </td>
    </tr>

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

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

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

<pre>
    The following code with the attached .clang-format file breaks code

`auto l { [] -> int
{
    int const x { 42 };

    return x;
}
};`

Running "clang-format-13 test.cpp" produces the following

`auto l { [] -> int
         {
             int constx { 42 };

             return x;
         } };`

Obviously Mardown has butchered the formating as it always does but the important thing is that the "int const x" is now "int constx" so the very important space has been removed which means the code will no longer compile

[lambda.zip](https://github.com/llvm/llvm-project/files/7936629/lambda.zip)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU9uOmzAQ_Rp4GQURA0l44GGjtG9Vpao_YOMB3Bob2SZs9us7wG5C1ErVWha258Y5cxFW3qqfHUJjtbaTMi3UViJMKnQQSM5D4HWHEpJac9PuGut6HqBRGkE45L_94hCllyh9ef8eUj4GCxqi4xmi4hwVF9hF2RdQJrybHM_rBWiRlGIYH-B18cgZHZcoO2-DzoYOw-gMvD5UZHa_kPCQbl1-jMbMhCLGtth3-wwC-pDUw0AqGJyVY41-oXtPwycJwcd6YnZfd4r_YXhff1Hd_OAC_6T7XVyVHb2-wTfupJ0MdNyDGAOVz1EBV3pzBuakkEoF4HriNw_S4mK52Kh-sC5wM79mSzVnhq86ytemWnP2SGvs9KRY5N4uDld0t01EP_AaV1yIhlj29krQpk7VHfTIzVqF9xbUmmKDtqZFR7J-oKZ7qktx1rwXkidvaqCaROzUhTD4KHuJ2FfaLXXxKBJypYfW149jRzX_hXWg59zIns5jmR0OrJwNHiFZGcsqk2VW8jiooLF6GgJqJG4k7PPHJCwY1-kRjrhKKr0Kimv1Rnm3BmwD6w8gHp2uPo1XeT8ugIssT8u4q7CRjB_kvjkdM9o5P4ljIRo8yVKeMlHHmgvUvprbljGDEywh6E4Zi1XFUsbSPSv2ZVbkLClkvm-ausAUM9kwEeUp9lzpZMaRWNfGrlogibH1pNTKB_9Qcu9VaxCrdUpimpvOukryq5LdaAI6xuIFQLUQ-AMVz2NX">