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

    <tr>
        <th>Summary</th>
        <td>
            Clang-format - AllowShortLambdasOnASingleLine - doesn't work for braced called constructers
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          robert-andrzejuk
      </td>
    </tr>
</table>

<pre>
    Set: AllowShortLambdasOnASingleLine : Inline

Example (brace):
```cpp
 auto guard = scope_exit{[&]{exit_status = true;}};
```

formats to:
```cpp
      auto guard = scope_exit{ [&]
 {
                                   exit_status = true;
 } };
```

Should be:
```cpp
      auto guard = scope_exit{[&] { exit_status = true; }};
```

This works correctly with parenthesis constructor parameters.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyckk1v4ywQxz8NvqBEZDCxc_DBefJEWqnSHrL3CuOJTYuNBUNf9tOvcNttD9uutAgJiXn7zcxfx2iHGbFh6sjUqdCJRh-a4DsMtNFzH37iXbovOt8_NxckJlveOucfL6MPdKOnrtfx-9xe7Dw4vLEz8uzybXZ2RiZaJtr_n_S0OOQM6i5ogwwOTGYD24uXa5aFiZbrRJ4PSYeeM3ni0fgFb_HJEquOGQ_2TJ1Ydcxft5E0pbg6UkjI5JFVp3zl8WPqF4SrD5OmyMn_ufJ6virP3-uLlmeet6gvz2eka44T_wz3Mvrket7hP9L-hs2kn0HwL-b1Y7SRP_pwH7nxIaAh98wfLY180QFnGjHabJojhWTIh_yvJyQMcVv0jewP8qALbHaVrBVUsqyLsdFQqkpXO2nKvrsqo_f7qlbXusM9dHs4FLYBAUqAABA7VdZbtVNSQrcztShVKTQrBU7auq1zD9PWh6GwMSZsdqBKKQqnO3RxlTKAcXoeNi-bZwBZ3KHJcZsuDZGVwtlI8T0TWXLY_Pchim_-JvUN7z3GmUFF67j41Qe-irznRjuXn7chYYhFCq4ZiZaYFwtnBufB0pi6rfETg3NmeX02S_B3aIjBeW0xMji_dvnQwK8AAAD__-fSHf4">