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

    <tr>
        <th>Summary</th>
        <td>
            clang-format-18 `AlignArrayOfStructures: Left` breaks constructor member initializer list indentation
        </td>
    </tr>

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

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

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

<pre>
    Given following `.clang-format` file:
```yaml
AlignArrayOfStructures: Left
IndentWidth: 4
```
And following `foo.cpp` file:
```cpp
#include <map>

struct Foo {
    explicit Foo()
        : data({
              {1, 2},
          }) {}

 const std::map<int, int> data;
};
```
I expect that clang-format foo.cpp will not perform formatting, however, it does and sets incorrect indentation of member closing bracket:
```cpp
#include <map>

struct Foo {
    explicit Foo()
        : data({
 {1, 2},
    }) {}

    const std::map<int, int> data;
};
```
If `AlignArrayOfStructures: Left` gets commented out then everything works as expected.

`clang-format` version:
```
$ clang-format --version
Ubuntu clang-format version 18.0.0 (++20231208042253+5fc76e6b6da7-1~exp1~20231208042409.1357)
```



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVE1v4zYQ_TXUZWCBImXJPuhgJ-tigRY9LIqeKXIks6FIgxw5mx72txeUncROEbSHHioYksE3H2_mzVClZEeP2LH1nq0fCzXTMcTuFxXJ-vRtstGHcyr6YF66n-wZPQzBufBs_Qis4aV2yo-rIcRJEWs4DNYhkzvGHxnfsYZffi9qcpejnbOj38WoXn4dvlGcNc0RE5M7-BkHuth89QY9_W4NHTNQfwh2DeTNPZUhhFKfTp-TyODlREjrtZsNApMPkzox-eWKLO-08IJDCMDa_eUMAAC_n5zVdkGY2DCxfcfyk8kaRSpjt37vD2v3FRMPIFj7yMTDR5PldLskbR9vGYEOPhEkMrksuVs4P1hPOVj-yC-XzPKaNvu__b9v3NdcB2oCOiqCW_3g2kJ4ts6BDwQnjBmCC07WjznhMTzjGeOSm8AETKC8gYSUwHodYszh7aKiIhs8hAEmnHqMoF1IWbA-Kv2E9H9R6VNhPpcE4D9VZcgz_A_b0XAYc5N1mCb0hAbCnHVED1mQFzrm1j6H-JRApavOaMpb3rnFH3b2jDHZ4P-uxasQ9f2YrFavHgv-Wz97mu9NrgZQbUpeclh02DOxF1zISvANr4VYSyb260G3DTZ9Y1S7qn7g91P148ao5tuykuv2TcWP3G7ehemk2cqtKrCrWl6Ltmnbqjh2zWbdm1ZIbrQauOS9kbzWZttvB6FaKQvbCS5qXnFZ8Uqsq1K1qu7XjTTKNGLoFas5Tsq60rnzVIY4FjalGbu22XBZONWjS8sNKsRdc4XId2rsstuqn8fEau5sovQeiCw57G69VtXm381CH1E9pcsUZjzE1y2z3pJVzv6JEXK-22Us5ui6I9Epx2LiwMRhtHSc-1KHiYlDZnb9rE4x_IGamDgs9SYmDkvJfwUAAP__b6PQDw">