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

    <tr>
        <th>Summary</th>
        <td>
            clang-format doesn't always wrap braces after multiline control statements for MultiLine
        </td>
    </tr>

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

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

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

<pre>
    Both version 14 and main got this problem.
```
$ cat .clang-format
BreakBeforeBraces: Custom
BraceWrapping:
  AfterControlStatement: MultiLine
ColumnLimit: 20
$ cat test.cpp
void f() {
  if (a1 && a2 &&
      a3)
  {
    quux();
  }
}
$ clang-format test.cpp
void f() {
  if (a1 && a2 &&
      a3) {
    quux();
  }
}
```
The expected output should be the same as the input.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytU8GOmzAQ_RpzGS0CE0hy4BAS5bQ9tVLPAwzg1tgU28nu33cISbPbY1Vkgf1mPH7j96ht-15W1g9wodkpayDdAJoWRlQGeuvBD8rBNNta0xiL5CSSgyiS-1iXcgMNeogbjaZ_6ew8ol9D1Uz4syKGqJqxISeyAxyD83Z8JDD6fcZpUqbn4IoCHDpP89EaP1v91aOnkYxfNn8J2qtXZWjNPFodRvOqRnWLyr8oeXI-bqZpRS9WtdAJuRNyD2JbPQ5THTCIKb8LHoDyPnskLA9mvOsBfNgM8CuEt7WoyKpnxulO5c9k4fThhv47uX9j9VnLbwMBvU3UeGrBBj8FD26wQbdQE3uBwOFIgO42V4bjcdSWWbvP9hh55TWVn5psLTkj5NYD6iu-O7iy2FDfzAC4qAzjIqlmSaFZBQf3UNwBl3lqHoVZl4P30-IjIc88euWHUMcNG0qetb48Pi9s2R_cBi-Vc4GdJ895nu9kNJQ5FS3W2GHTFSmlRYp5stum2CRF3u7yTaSxJu1KkVdCyjr0_BbyyPcuP1mc0fwUqVImUiZ5uk_2XF_Gm7rrijrNdilutklWi01C_DvpeOEV27mP5vJGkSs7DmrlvHsG0TnVG6L78fZKpsH7WRj8YOdyxaJbY-Wtq9_VUR45">