<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69910>69910</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Spaces used instead of tabs for the third commented array item
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ujos
</td>
</tr>
</table>
<pre>
For some reason the `clang-format` uses spaces to align the 3rd and 4th commented array item, while the first two are aligned with the tab character. Following are the details.
Version:
* Ubuntu clang-format version 14.0.0-1ubuntu1.1
* Ubuntu clang-format version 15.0.7
* clang-format version 17.0.2 (https://github.com/llvm/llvm-project b2417f51dbbd7435eb3aaf203de24de6754da50e)
Command line:
```
clang-format --style=file:.clang-format.bug _test.h
```
Config file:
```txt
# .clang-format.bug
---
UseTab: AlignWithSpaces
TabWidth: 4
AlignAfterOpenBracket: AlwaysBreak
```
Input file:
```cpp
static const char* ERROR_DESCRIPTION[] = {
"1",
//"Unsupported",
//"Unknown",
//"Unsupported 2",
//"Exceeded size",
"11"
};
```
Output file:
```cpp
static const char *ERROR_DESCRIPTION[] = {
"1",
//"Unsupported",
//"Unknown",
//"Unsupported 2",
//"Exceeded size",
"11"};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVU1v2zgQ_TX0ZWCBIvVhHXSw4xjIZbNIk-2xoMSRxEYSBXJUN_vrF5JsJG6SwlvAJk3Om-HM4_BZeW_qHjFn8Y7F-5UaqbEuH79bvyqsfskP1oG3HYJD5W0P1CCwhJet6ut1ZV2niCUcRo8e_KBK9EAWVGvqBSudBtVriKiB0nYd9oQalHPqBQxhx8QNHBvT4oyujPMEdLSgHC5RUMPRUDObSRVQNsqpktAFcLBta4-mr2f0BNBIyrQ-YHzP-HYZ_0Hnje2ZPK2Z2MJTMfY0wtsq4MeCgzAKeMDX4ThjwiC80i0OeJC-Yj8GpQEPBDCxaYgGP-UkDkwcakPNWASl7Zg4tO2P87QenP2OJUEhojCt4lAXhU4jGWMhlaoElxpFpDFJ40irmCMT2dval_HGdt10B63p8ZWGhJ8-8_Ii3fXa00uLTO4rM03b4K05KMYavhF6CpoPY12e3VemhlOcC_vZiX7SmTYJ705aTOv1evnx5PFRFUxuYTt1x1dDzZe57Rbzoyq-Gk3NBIjenjajtxWhux-w3zlVPiMtYY7qxe8cqucPi7nrh5F-yf-MKIdh2fGkyJRQ2t7T3KFTB9w-PNw_fNvffrl5uPv78e7-r-WNAZN7YOlu8QQmRMiEYOLmtAGw9AQT4qn34zBYR6g_hzz39thfEQHEZ6DbnyWiRg3e_IvvQCKc81sqT_dM7n5z6fcj_QldwMT2KroYz34lbN76PWGXkPeEXUXXFXydspvT-5yplc6lzmSmVpiHSbbhcSySbNXkMsRIRGEsNiUvNmVWykiXpYgLHcc6DcXK5IILGc5fHnIRbISsojSOk1CmSSEVizh2yrTBJB6BdfXKeD9inmRZyFetKrD1Z6l3-awwxVh7FvHWePKvbmSonf8ULoQ-3sPy2Ca912B6T6g02GpSZg-VdYtMN8bpD9V-Nbo2_3_Sx8RhrsEzcZjL-C8AAP__KYnwjw">