<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/74320>74320</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format]: Feature Request: AlignConsecutiveDeclarations option to ignore function prototypes
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bradh352
</td>
</tr>
</table>
<pre>
We recently started using clang-format in the c-ares project: https://github.com/c-ares/c-ares/blob/main/.clang-format
We have "AlignConsecutiveDeclarations" enabled, which yields nicely formatted variable declarations. However, since we have a coding style requirement of 80 columns, function prototype alignment actually appears to cause more harm than good from a readability standpoint. Due to the line limit restrictions, the formatting is inconsistent at best, aligning some parameter members and not others.
Our feature request would be a flag to disable function prototypes from this alignment option.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8k8HOqzYQhZ_GbEY_cgwhyYJFmijqrlI3dz3YA7gyNrXHifL2lUmq5qpX_8YgGI_P-TwHU7KTJ-rF_jexv1aYeQ6xHyKaudmragjm2f8giKTJs3tCYoxMBnKyfgLt0E9fY4gLMlgPPBPoL4yUYI3hL9IsmjPMzGsSzVmom1C3yfKch1qHRajbq_jzZXBhEOq2oPVC3erPE4S8Cnl-rT8IZrwTCKXOzk7-Enwindne6UraYUS2wSehFJDHwZER6gKP2eoZnpacSeCtJveEV-_i6Y7RllIwHx1qgN_Dg-4US4NkvSZ4vA9H0MEUDomfrkD6O9tIC3mGMMJRgg4uL0XFBcbsdWlYwHDg50qARfhWjZozOvcEXFfCmIADaMyJYAmxHBYX4Bk9TCEYGGNYACESGhyss7xdizdrsJ5rgGum0qBchrO-LItliJQ4Wv3Gctl-v70XCzaB9Tr4ZBNvkhgGSlwqN52bzbAQrBhxIaYICy0DxQToDfjAEHimmGr4vKc_coSRkHN88aHE8AjZGRgKv9HhVLQamzby_6eUXnZ5tukDWFhLVV2ZvjGn5oQV9buD3HWnQyfbau7HY3OSSrXm1I16PHb61Eka6NhK1Wkpj5XtlVTNTsl217Rd29aKdg22e3VQHepOStFKWtC62rn7Uoc4VTalTP2hbZSsHA7k0pYapX6aUaVKjmJftn0NeUqilc4mTv81YstuS9xPG_fXkpXbm9WfL1bl03fz_QZRENrJl1n5BcEqR9d_E8Ii7P34-je26rbZLYncHP8TAAD__2-fcF4">