<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54095>54095</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: AlignArrayOfStructures is broken
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
epixinvites
</td>
</tr>
</table>
<pre>
Currently running on: `clang-format version 13.0.1`
[Here](https://termbin.com/lmch)'s my clang-format
So, here's a piece of code
```cpp
std::vector<std::pair<int, int>> input {
{1, 5},
{4, 8},
{1, 3},
{9, 10},
{3, 9},
{6, 10},
{2, 8}
};
```
with `AlignArrayOfStructures` set to `Left`, it returns me this
```cpp
std::vector<std::pair<int, int>> input {
{1, 5 },
{4, 8 },
{1, 3 },
{9, 10},
{3, 9 },
{6, 10},
{2, 8 }
};
```
which clearly isn't the same as what is shown [here](https://clang.llvm.org/docs/ClangFormatStyleOptions.html).
I've attached my clang-format above because I have no idea if any other options I have are conflicting options.
Here's my expected result from my configuration:
```cpp
std::vector<std::pair<int, int>> input {
{1, 5},
{4, 8},
{1, 3},
{9, 10},
{3, 9},
{6, 10},
{2, 8}
};
```
Why is `AlignArrayOfStructures: Left` giving me weird indentations and why isn't it indenting the sub-initializations by a tab? (You can see in the above that clang-format doesn't indent my sub-initializations.)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9Vctu2zoQ_Rp6M4ighyVFCy0cp0EKFOgii6JLShqZbCVSICm77td3SD-SqG7v3dwLEJJ45kUOz6Ea3R3r7WwMKjccwcxKSbUDrVi2AVbE7cDV7q7XZuQO9mis1AqSLIqjhKwsfmTxhuUPz2iQ5Y8svRfOTZaCWfpEw6EZG6miVo80G8ZWsLRiaWlhPMLb3OdM4fmiWboF4VN6Tw6TxBZB99DqDs-eVDyMdppOiHWdL5tt9tg6bVi2vSITl34ulfOJ_Sv7QIO-ptkBKx_OO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