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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] unexpected array align when ColumnLimit: 0
        </td>
    </tr>

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

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

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

<pre>
    I wanted to achieve more flexibility by setting ColumnLimit:0, but the array being formatted with one element per line.

```
before:
const uint8_t data[] = {
    0x0,  0x3, 0x2, 0x1, 0x0, 0x1,  0x7,  0x0,  0x6e, 0xf4, 0xff,
    0xff, 0xe, 0xe, 0x4, 0x0, 0xdb, 0xf2, 0xff, 0xff, 0xd7,
};
after:
const uint8_t data[] = {
    0x0,
    0x3,
 0x2,
    0x1,
    0x0,
    0x1,
    0x7,
    0x0,
 0x6e,
    0xf4,
    0xff,
    0xff,
    0xe,
    0xe,
 0x4,
    0x0,
    0xdb,
    0xf2,
    0xff,
    0xff,
 0xd7,
};
```
config
```
---
Language: Cpp
IndentWidth: 4
ColumnLimit: 0
UseTab: Never
```

version
```
clangd version 18.1.3 (https://github.com/llvm/llvm-project c13b7485b87909fcf739f62cfa382b55407433c0)
Features: linux+grpc
Platform: x86_64-unknown-linux-gnu
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVE2vqzYQ_TVmMyIytsFkweLdRJGe9FR10arLJxsGcOuYyJiE_PuKj9uboNwr9UkRJ_Ph4znDMKrvTeMQC5K-kfQYqSG0nS_q8m5cE-muuhff4aZcwApCB6psDV4Rzp1HqC2ORhtrwh30HXoMwbgGDp0dzu6HOZtA-DdK2AH0ECC0CMp7dQeNU1rd-bMKE-_NhBY6h4AWz-gCXNCDNQ53hB4J_bY-M7r-ZlNj3XkkfI2WnesDDMaF_GeASgW1CALCj0Dk25IFAEDHuSSgI5-QjmyBZAH6YAEd5YrvZzJc4rVYsSbs8Eg-O4CO-ATiibzS62H2QPKAlfyPlMgj4Wv1qg7of1nxo80_7EX_YzDZ2NvD27j8PH_t11N_xKuGfenYUuDjBVu6bbVzr5_ot3q_LODTl7EZx7JztWlehuI4Xv78UK4ZVDMNLRwul8X53VXowl-mCu3kF4v3-RuClenPHv9QenL8hlf0L29bnlf0venc61Ktck0Fawok-S7ZcSAsb0O49NN8sRNhp8aEdtC7sjsTdrL2-g7xxXd_YxmgTLiWIk91Lvd0X5e15Ps6Y2WteM50mgoqBeclJWy_XHxCFQaP0xXT5z2MhL01_lIu0d-tCtNOmKJjnv3MRDy4f1x3c_GcHDdu2OiJqoJXe75XERaJZCzJqchp1BaKyRwx06mkIlG5lJIrxjBVqdCKJxiZglEmqGR5krKc0p3IqpwmWmQqS2WmNBEUz8rY3SR51_kmMn0_YJFQuudpZJVG289Lk7G5ofGyzwhj0xr1xdwqPTQ9EdSaPvQfTMEEOy_cp4PpEQaH4wXLaScum1JZ0zi4tehgOxHR4G3x_94YYadZRE_YadVxLdi_AQAA__8DZqYr">