<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64952>64952</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: inconsistent continuation indentation
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vesterij
</td>
</tr>
</table>
<pre>
clang-format version 16.0.5
Config
```yaml
Language: Cpp
Standard: c++20
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: DontAlign
AlignOperands: DontAlign
ColumnLimit: 0
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 8
IndentWidth: 4
TabWidth: 4
UseTab: ForContinuationAndIndentation
```
Code
```cpp
int main() {
int key = 3;
std::vector<int> veryLongNameForThisVector{1, 2, 3, 4, 5};
// Here continuation indentation is done with tabs only.
auto it = std::find(veryLongNameForThisVector.begin(),
veryLongNameForThisVector.end(),
key);
// Here continuation indentation has mix of tabs and spaces. Why?
bool found = std::find(veryLongNameForThisVector.begin(),
veryLongNameForThisVector.end(),
key) != veryLongNameForThisVector.end();
}
```
Here first std::find does continuation indentation using only tabs as I was expecting.
The second std::find however mixes tabs and spaces for some reason.
Is this a bug? Or have I just misunderstood how continuation indentation works (continuation from what)?
I know that if I use tabs for intendation and I choose to align operands, alignment has to be adjusted with spaces in some cases. But I don't think it should happen here.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVcuu4zYM_RplQ4zhyHk4iyzymKABBnMXve2sZYu2dWNLhkgnk359ITs3LzSDoqghKAhJkecc6qGITGkRl2K6FtPtSHVcOb88IjF68zHKnD4v81rZ8kvhfKMYjujJOAvjWRRHUxFvRbwa5o2zhSkvllk8jLNq6sH0TdmyUyWKZAWXb9O2g-93VlYrr4MvF3It5FrGg2tVm9KuCkb_1qJde5UfkEPc1lnunXdxXylXLerveKqNRXoV9taiV1bTAOUpYuPqrrH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