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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Cannot disable array initializer bin packing
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    See https://reviews.llvm.org/D38636

This is still an issue, and the behaviour is quite inconsistent. When using `AlignArrayOfStructures: Left` or `AlignArrayOfStructures: Right`, it does put them each on one line, but using `AlignArrayOfStructures: None` results in the nested initializers being bin packed despite the fact that I have `BinPackArguments: false` and `BinPackParameters: false`.

It's also import to note that it ignores the usual behaviour where using a trailing comma in an array initializer should disable bin packing.

Would be nice to have this consistent with the behaviour of `AlignAfterOpenBracket: BlockIndent` (which works perfectly) as well.

With `AlignArrayOfStructures: None`:
```
things_t array_of_things[] = {
    { true, false }, { false, true }, { true, false },
    { false, true }, { true, false }, { false, true },
};
```
I don't want bin packing at all so this is no good.

With `AlignArrayOfStructures: Left`:
```
things_t array_of_things[] = {
    {true,   false},
    { false, true },
    { true,  false},
    { false, true },
    { true,  false},
    { false, true },
};
```
This is closer to what I want, but I'd prefer to be able to do this without having to align the columns. Also the top left cell is always misaligned for some reason, which is rather annoying.

With `AlignArrayOfStructures: Right`:
```
things_t array_of_things[] = {
    { true, false},
    {false,  true},
    { true, false},
    {false,  true},
    { true, false},
    {false,  true},
};
```
As above, but at least this doesn't have that problem with one of the cells being misaligned.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFVtuO4zYM_Rr7hdjAcW6eBz8kMyiaouguugX2cSDbcqyOLKWSPEH69T2Uc5vudDoLtNjASSSLFMlzSEqVbY7lZympC2Hvk9k6yX_A4-Szkgc_0fq5n1i3w6uHWbGcLZPsIcnW4-9v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