<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57303>57303</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
regression in continuation indent in clang-format 15.x
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
JohnC32
</td>
</tr>
</table>
<pre>
Given:
```c++
void foo() {
foobar::foobar_xyarray_ptr mxOtherActionsPtr(foobar::from_other2(xyOtherActions));
testDiagnostic errmsg = evaluate2_NoThrow(
"xyprivate",
in_args("xyz...............................................................", test2Path,
realProperty, internalVal, false, xyOtherActionsPtr),
out_args(xyAllActionsPtr));
}
```
and `_clang-format`:
```yaml
---
BasedOnStyle: Google
ColumnLimit: 100
IndentWidth: 4
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveDeclarations: Consecutive
...
```
clang-format 13 and 14 yield correct continuation indent (above). However, clang-format 15.x
prerelease (commit 006b649 on Aug-22-2022) produces unexpected continuation indent for the line
starting with realProperty.
```c++
void foo() {
foobar::foobar_xyarray_ptr mxOtherActionsPtr(foobar::from_other2(xyOtherActions));
testDiagnostic errmsg = evaluate2_NoThrow(
"xyprivate",
in_args("xyz...............................................................", test2Path,
realProperty, internalVal, false, xyOtherActionsPtr),
out_args(xyAllActionsPtr));
}
```
One other note, clang-format 15.x does align the consecutive statements 13 and 14 do not, so
that is an improvement in 15.x.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzdVMGO2yAQ_Rr7ghIR7DjxwYd0o922qrortWqPETYTmwpDBDgb9-s74N1usk1PvbRFyIZhZt4w84baiLG6k0fQSbZJ6Dahz9-CTrNJ2Jswo_RopCB7YxK2TlhJktWTnOBAcc1tcJNtpvXuNHJr-bg7eEv6073vwG4aL412D96ijwsTa_qdCSoMT07juTZihZmdoXlwfit5q43zsiFgbe9akmRbAkeuBu6B7T6az501jyHYn3ZhJIydxoOVR9TCdcJuLs-l3nHbunhJ1Pw-_7MxQcSI2QP33S94z8MCVw_WHMD6MVhI7cFqrr5wFbZ7rhyExWVyYirLX5yawT_f4jRulHql_ZLNZLW9WvhzIdeCoGjXKK7b2d7Ynvug8hvOjLxXk2g2m02LN9yBuNef_KgAzcidMS2u4tmNUUOvP8he-nC0oE_Y77QA7b9KgTlDeT5JN0q2-gavAs3gkbkb51DQo6YLWmcn1_W3gLewfCLWNYNQst-n4jwFZJGRkJpFTkYJSpDGWAuNx7_2Ug8RBMsYroGsW_PaIAgr5-SteYQj2FDNS4fL-WnCOViwoADTFiwb02N2CKVFXeQlQa-boZ0xNmM0sKskB2vE0IAjg4bTAWMAcTUKxCFIHqKkfrqu89yiWksepe8uODj_hx-E8_FfPA5_00NxrS_uNZBYLaKNh6vEJsIgQXnox8jB5qXzCLLQQ2zis6YSJjgLvpyZUHyHviQ6QUL3yPljtMEERIAnwqZQLYpiwQqWszIVVSbKrOSpl15BZaG1gE9GbImrLRLEr0NPB6uqzvtDeDISdouzxXYZ6jl2Jm6UOj7_ZhjWN2xA3ErnBsDE3i5XGc3SrqKC5_uM86JulmtWr3NKm2XN98CWIqvFPlW8BuWqZIktxjQ8kugikGS5TWUVup2uWbbI8hUt5w1br4sip0xAuVrSOskp9FyqeYhjbmyb2iqGVA9Y35wq6bx7OeTx5QSIcOifD74ztnpvOn2TsTRCVzH0H0vLa60">