<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63407>63407</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: 'UseTab: AlignWithSpaces' causes alignment with tab, 'UseTab: ForIndentation' causes indentation with spaces
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mortie
</td>
</tr>
</table>
<pre>
Hi, I'm trying to configure clang-format, and I can't get it to consistently indent with tabs but not align with tabs.
Here's a screenshot of some code formatted with `UseTab: ForIndentation`, where some lines (the `: user_...` and `, callback_...` ones) are indented with tabs:
![image](https://github.com/llvm/llvm-project/assets/3728194/d30d8a08-b104-4ba0-a724-dbd5e708cc50)
If I change the config to `UseTab: AlignWithSpaces`, those lines get correctly indented with tabs, but the inheritance list changes to being aligned with tabs:
![image](https://github.com/llvm/llvm-project/assets/3728194/ab702346-6599-4c7e-8f8d-09229618b558)
What I want doesn't seem super complicated. Indent with tabs, but align with spaces. And clang-format's `UseTab` option sounds like it's supposed to support that behavior, but nothing I've tried has gotten clang-format to indent with tabs but align with spaces. What am I doing wrong?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8lLuO4zgThZ-GTgoSaFLXQEHPNIxx_P-LCRe8lCXuSKRBltrot19QtmG7MRtssoktiKpine8cUqXkRo84sPobq993aqUpxGEJkRzudLCfww_HxHc4MtEuQPHT-REogAn-5MY1IphZ-bE4hbgoyl8qb-EIRnkmWoIRCRzdKpJLhJ7mT3Deoie4OJqAlE6gVwIfCNTsRv94XzL-zvjb9fcHRmSiTaAgmYjo0xQIwglSWBBMsAjXMQjttQVr-B8J_680k29wCPG4bavIBc8anqe9TBjx2mB2HhMw0dGEuTLXrAnjn2VZsoZvwm5VRs2zVubXfSl4TEz0oCLepN0nyCKYvAlgYs_qb25RI7L6nYluIjpvy-LAxGF0NK26NGFh4jDPH_e_4hzDX2iIiYNKCSkxcZCt6PZ9xcTBSm47xbtC73lVVFrxQrWiKqy2Nba8M6bmTPTPII-n7NCk_IiQxV7NzCa9AHvLXvx0NP3vrAymm3aaQrrDyu6aECOah6kvysX3zdm8ifMTRkfKm1yd6DZAyttqzLHavP_vwCndciGrpmjqvi8q02LRnTpb8F6Ivtl3uq67L-B-TorgCBflCWzAdM14QlwgrWeMYMJynp1RhLaE45eQ32k8ZTxtZEt48_bLQWrTkxk5YuecWkhh9TbB7H4huOtnaT2fQ0KbQW7PMQNXBBon9eFCvO_rA02Zcz7LHwgUHVqYVIIxEKF_GSA3--0h_c3wGxW1wBFsyP0vMfiRycPODtL2slc7HPZN14qmE1W7mwaubc-laLg51T0_tX0lubSiFm1ba13xnRsEF5I3gu-lbEVTSt00XdVzaWu9l51kFcdFubnMNpchjjuX0opDIyve7malcU7bnSaExwtsi0yIfMXFYYuGXsfEKp6TmB5dyNGMw4sT8g2YaP_5VIgWjFoTpiua5RlZJv9S_OUOetS6x9tnuLs1zsO_DvsmN4d9w_F3AAAA__9aVOmE">