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

    <tr>
        <th>Summary</th>
        <td>
            clang-format UseTab is broken for array initializer
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          Zero-Tang
      </td>
    </tr>
</table>

<pre>
    Suppose you have the following C code, creating a global array variable:
```C
int array[]=
{
1,/**/
2/**/
};
```
When I use `clang-format --style="{UseTab: Always}"` command, four spaces are inserted like
```C
int array[] = {
    1, /**/
    2  /**/
};
```
instead of a tab character I was expecting.

By the way, I think clang-format should provide a style preset that may satisfy [Linux Kernel checkpatch](https://github.com/mirrors/linux-2.6/blob/master/scripts/checkpatch.pl). The entire reason I am submitting this issue is because I cannot adapt both my original code and clang-format style which satisfy the script without warning.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNU8FunDAQ_Rq4jBaBN8suBw67WUWK2ltTVeptgAHcNTayTTb06zuGJFWSKipC2OOxx--9eVSmmctv0zgaRzCbCXp8JPA9QWuUMlepO7iF2jQUCR4toQ9LCJ0yFSpAa3GGR7QSK0XR9hil5yg9Rnm6vrdrLLVft0a7U7Q7R9vz8779aZ1kXD4Sd5E4Lu_duio-LkV7Pn16d8sa_uhJwz1MzITXaoW627TGDuhhs3F-DvjOkRB86XdHD1gxXDiqK84uVOVEnjLVYUDdBLatmSy4EWtyDJ5AakfWUwNKXui_eAJfCK8cgZ_AEz6yCikB_0h8QpfheMIGTMvt8FhB3aPF2pNlEa7ogJ5GqkO7kufzy_c0L-1l1gHKPQdSX-CNWq43k2pgtOZRNsTVF_E4JkeeD_CWgbvu2AuunYG5fpV6eoIvZDUpxkH1ZURf96HV4tB7P7pgjcDurpO-n6qEdeZgkNYa63imQoWNSHKeV-ytkEQmaHniaitHH3b9LZ2MKhJFAg_MhbSX3B82pzPBATiAm6pB-sWrTNCBdG7iDjqoqMbgkHuoUWvD7Wpw9FAZ38Mwg7Gyk5qNHSwPbIR3yixCXHtZ96_0g5orQrgyNzPxiFYH3WMqszwXRSayIo-bctsU2wJjL72i8k3h1ZALQGsu7GNef_65pJZeopK_ycaTVeUncir1-DJsuHu_uP0cLtyDert9fsjivizSQ95WN5Ri1u6zvNg2YlellO6bvdjmRR0rrEi5cjVxLEuRCpEWWZbl6TbLE5HtDrtDg0V7oBvRYHST0oBSJeHixNgutuWCoZo6x0klnXd_k-ic7DTRS32cWDVb_iRrNg-sSbwALhe0fwCBKnDL">