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

    <tr>
        <th>Summary</th>
        <td>
            clang-format aligns wrapped `for` loop when `AlignAfterOpenBracket` set to `DontAlign`
        </td>
    </tr>

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

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

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

<pre>
    ```
$ cat test.cpp
for (int foo = 0; foo < FOO;
    ++foo) {
 bar(foo);
}
$ clang-format -version
clang-format version 18.1.6
$ clang-format -style='{ColumnLimit: 30, AlignAfterOpenBracket: DontAlign}' test.cc
for (int foo = 0; foo < FOO;
     ++foo) {
 bar(foo);
}
```
Expected output: same as input
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycUstu2zAQ_JrVZWGBWup54MGK61OBfANFrWy2lCiQVNL8fWFbbRKgvQQQIHBml5ydWR2jvSzMCqoeiPwrL0YDEVSnTG_p6oN6YNngxzcFtdg_cQJxBCrR6ISJY8rNuj7QyQcEau2ScPIeQZ5QgOz3wxOen59B9o9aRESgHqifvAfqEJo_zKADUPuA_9ZDc_rwtNPL5TD5MOuEhxcO0frlQX-idgaLNi_y-n_9Mb05BnkCaqDpn7zb5uW7nW0CeUQpgJ7w6OxlOU6Jw_PKSx-0-cl3-uSXdCdv-qjZDTFf8-OLhnyO5tuvlU3iEf2W1u0uMuqZUUe0y7qlbFRy7GSnM1ZFUzR1KajosqsqBzlMba2LqWjFUI3ElSg0G66qZpAFZVaRoFLUohZU1FWXGz0Zmqhs5SDHrjVQCp61dblzL3PuwyWzMW6surKqqszpgV3c9-1jAvvWBXVrOwzbJUIpnI0pvl-UbHKsPuWmb7ZHfA16XXlEqMXkA9QCnfcrvl55uWH_Tq4WGDlh8reS9wxrkW3BqWtKawR5BDoDnS82XbchN34GOt8E7b_DGvwPNgnofB8zAp0fk74o-h0AAP__jrQABQ">