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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format 21.0.0] const struct initializers are inconsistent
        </td>
    </tr>

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

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

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

<pre>
    Tested on/with:
1. clang-format 21.0.0git (https://github.com/llvm/llvm-project.git 82605285b8c6)
2. .clang-format used: https://github.com/andr2000/xen/blob/clang_cmnty_drivers_v001/xen/.clang-format
3. File in question: https://github.com/andr2000/xen/blob/clang_cmnty_drivers_v001/xen/drivers/char/ns16550.c

What I see:
```
[snip]
static const struct ns16550_config __initconst uart_config[] = {
[snip]
    /* OXPCIe200 1 Native UART  */
    {
 .vendor_id = PCI_VENDOR_ID_OXSEMI,
     .dev_id = 0xc4cf,
     .param = param_oxford,
     },
    /* Pericom PI7C9X7951 Uno UART */
    { .vendor_id = PCI_VENDOR_ID_PERICOM,
     .dev_id = 0x7951,
     .param = param_pericom_1port },
[snip]

```
What is expected:
```
    /* OXPCIe200 1 Native UART  */
    {
        .vendor_id = PCI_VENDOR_ID_OXSEMI,
        .dev_id = 0xc4cf,
        .param = param_oxford,
    },
    /* Pericom PI7C9X7951 Uno UART */
    {
 .vendor_id = PCI_VENDOR_ID_PERICOM,
        .dev_id = 0x7951,
 .param = param_pericom_1port
    },

```
It is expected that the array of structures is formatted in the same way,
but instead it has two different formats inside the same definition.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0VU1v4zYQ_TX0ZbACNbK-DjoodgT4sBsj3W1zE2iSsljIpEtSTtJfX1BWmrXberst1jBgS3x8fDNPesOcU3stZUXSO5KuF2z0vbEV08IipXSxM-K1-iydlwKMJtg8K9-TpCa0jiPgA9P7D52xB-YB44hGdK88ECx6748u4LAh2OyV78ddxM2BYDMMp7efD0drfpXcR2FXgRlNsUh3Bc8IloTWGEF0ccTopCBJDTfY35QTbF5kELwbzI5gM_G0_KD9ayusOknr2hOl8Z-4i5MIrZMIGjVIUBp-G6XzyugfdfR8M0B7Zgk22sVZmtKIExo6_UvPPGzASXnuPMno_KU1Se-cVkeSrgmtnWdeceBGOw_O25F7mLlabnSn9tC2Sit_RozM-vn-2X4gyRpIfnfNCwAwFVzDw9N2tZFIKcTwiXl1kvClfvwc1qeezOCJA6KT1MLYVomJebvatD_ff1o_PLabdfvw9NP9xw3B1bwHIiFPb1D6wpe8-3rxyCw7TGvTv9a8dMaKrxAkX79fzWq30ipuDrDd5KvyKS_TGL5oc1Z8Lfi22u3942b18PEf5QbuW3KPZyVtfDTWv2u9aPOVtZPtyoF8OUrupyf_CvFffZk_32fPtxz6Nyb9X4---VD91aZbTt126VrzVfM3F-aAD275XgKzlr2C6eYXcLTSBeA5WAJS6Qnn2EHCM3s9k-9GD0o7L5kA5aFnDvyzAaG6Tlqp_bzfBZAS8p1ByC680croaCGqRJRJyRayivOkzMoEKS76qsjztMyWLEl4igwxKWjXCYEMWbrkHS5UhRRTinFGC5otMSpK3ol8WZRJSrMk52RJ5YGpIQqxHRm7XyjnRlnFmCcFXQxsJwc3DRHEiyBFDGPFVlPc78a9I0s6KOfdO5NXfpgG0N-MkxBKF3E21coG9bu0DpgN-RzWlfNS-8Voh-r7Rg_BZqokpO9czKnCPwIAAP__Hu0aeA">