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

    <tr>
        <th>Summary</th>
        <td>
            Column Limit ignored inside parens with AlignAfterOpenBracket: AlwaysBreak
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    With clang-format version 14.0.5

AlignAfterOpenBracket seems to be ignoring columnLimit after a parentheses expression such as a cast.

Example: 
The "Align" style leaves this unchanged:
```
clang-format -i -style="{BasedOnStyle: LLVM, AlignAfterOpenBracket: Align}" testfmt.c

int foo(void) {
  int x = (int)(100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 +
                200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 +
                100000 + 200000 + 100000 + 200000);
  int y = 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 +
          200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 +
          100000 + 200000 + 100000 + 200000;
}
```

AlwaysBreak doesn't break after the paren after the cast, and puts the entire expression on one line: 

```
clang-format -i -style="{BasedOnStyle: LLVM, AlignAfterOpenBracket: AlwaysBreak}" testfmt.c

int foo(void) {
  int x =
      (int)(100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000);
  int y = 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 +
          200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 +
          100000 + 200000 + 100000 + 200000;
}
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztVU1vm0AQ_TVwGRnBgg0cONhJc0qVQ6v2vLADbLOwaHdx4n_fAeIGSz5EidJeilZmZ4b5eON5mlKLU_FTuhYqxftmU2vTcQdHNFbqHqIkCIOtF9564X753SvZ9PvaoXkYsD8YXj2iA4vYWXAaSgSyayP7Biqtxq6_l510wCcP4DBwg71r0aIFfB4M2jmPHasWuKUPKm5dsE745Zl3g0Iv3sOi-N4ieIzNhdAbrDspBIX8SDFdKy2MfdUSGBTk9BJqF76cWbzAupGwmWN48S3F89LDgVsUD_23RbmH-_sfXz12A1exTx8staSTOzi0ru5cUK1ByN5BrbXHsqOWwmM5UJrFBDAZn4GyE6yMBDLTJQqnh1QHYK_X92nPmS6fD4ddaa9neGOACXB80Y7T3I7PbMFngn8r7DPmaXKujemZcU_8ZA8G-SMIjZaGPnVQzvJCK-LTQqyVPPFomlneCxhGZ2clUU8aXBNvPsQe2a8Y9pc48wfWx5mz_gc-i0T_RPufGtep4WMR7XZhlsYZy3xRxCKPc-476RQWN_PigWXzzOsIBfXOSvHCEwtP08p7y2z6o1FF69xgp2XC7ug05DuWQaU7EpQ6nl-bwehfWNHo3UlrR7R02aYsify2SNOc5yLieYoZr3Me78II8zTK6nQbVjzxFS9R2cLbHrztrS8LFjIWZlEeRtuQZQG575KaJUktRFnHOy8JseNSBVPiQJvGN8VcQzk2loxKWmdfjZzY3vSI5_h8dK02RWm4UNJRA1Apfy66mCv-DeK7EMA">