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

    <tr>
        <th>Summary</th>
        <td>
            bug: llvm-format not respecting UseTab with array defines
        </td>
    </tr>

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

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

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

<pre>
    When I try to format a const struct it combines random tabs and spaces options
```
>clang-format.exe --version
clang-format version 15.0.6
```

Attached is the minimum example, and my clang-format file

clang-format - 1 - all languages
UseTab: ForContinuationAndIndentation and always
```c
static void blabla()
{
        const struct some_struct some_var[] = {
                {"A", 1, ""},
                  {"B", 0, ""},
                {"C", 2, ""},
                  {"D", 3, ""}
         };
}
```

clang-format - 2 - JUST Cpp
UseTab: ForContinuationAndIndentation
```c
static void blabla()
{
        const struct some_struct some_var[] = {
                {"A", 1, ""},
        {"B", 0, ""},
        {"C", 2, ""},
        {"D", 3, ""}
 };
}
```

UseTab: Always:
```c
static void blabla()
{
        const struct some_struct some_var[] = {
                {"A", 1, ""},
                  {"B", 0, ""},
                {"C", 2, ""},
                  {"D", 3, ""}
[clang-format - 2 - JUST Cpp.txt](https://github.com/llvm/llvm-project/files/10209648/clang-format.-.2.-.JUST.Cpp.txt)

         };
}
```


Source C file:
```c

static void blabla()
{
        const struct some_struct some_var[] = {{"A", 1, ""}, {"B", 0, ""}, {"C", 2, ""}, {"D", 3, ""}};
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVk9vuzgQ_TTmMgIZG0I4cMifjbZ73Lba48rAFLwyNrJN2nz7FX_SJlU3bVf6SU0sx5N5GY_nvXEQzslGIxYk3ZJ0H4jBt8YWfxotVP17UJr6VPzVooY78PYE3sCTsZ3wIKAy2nlw3g6VB-mhMl0pNTqwQtemAy9KB0LX4HpRoQPTe2m0I3RP6Ias6DJmk_9WKaGbcI4e4QtCGB7ROmn0DLn0w-KBOI1otPo45DRvvBdVizVIB75F6KSW3dABvoiuV0jYbkqxO8FV_Cep8DLMlTOEGEIQSsH47SAaXA716PBBlIRv4GDszmgv9SDGQ290fadr1H6yph2Fehan98WoZtuNuAqORtZQKlEqQdiasHxBZ9tzavkVB850-Pfl-ijsTCsQvofL340j2xLGNoSxsQjxOE1rRrI9YbtLKMAM3i5gegs8Q3cLlH0l7n4B82vwGQmjwc_Jvzo-ovsdTwxC-OPx_gF2ff8tin46L7C8vsTLNfgTZq7Bt5j5Bi1vVd_Msuebn17hH6D8dHtDzpF_8STdE7Zuve-nirIDYYdG-nYoo8p0hB2UOp4_wt6af7DyhB3Gy80Rdogpo_kqWRN2uLp8w4hFYTRuFJ03emXgf_TkPN-bwVYIu_lq_S_-f7UKbjP_GdmfddBtUm8WLKgLXuc8FwEW8Sqj6xWlKQ_aIo7LjK-Q10kSI0_SvBRc0DiJqaC0xiSQBaOMxeM7TTLOo1Ue55zGacJqymm6JgnFTkgVjTKIjG0C6dyARZonWRYoUaJy098_YxqfYXKOKaf7wBaTdMqhcSShSjrv3qJ46RUW5dCMfT3hFqFq48Gi67HyUjcwNz88S9-CsFacoMan8UEhGKwqvq3eKb9RvlP-_wYAAP__qf1Ttw">