<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/71920>71920</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Function’s arguments either all on the same line or one line each, without paranthesis alignment
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
fontanf
</td>
</tr>
</table>
<pre>
Hi,
I would like to have the function's arguments aligned like this:
```
void myFunction(
int a,
int b,
int c,
int d,
int e);
```
That is, if they don't fit in a single line, then a single argument on each line with two levels of indent. In particular, I would like NOT to align the arguments with the parenthesis, because of long function names and git diffs when just renaming the function.
Is there a way to achieve this with clang-format?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU0FvozwQ_TXmMmqETUjCgcPX9ou2l91L_8AAA56usSs8JMq_XxnStJGCkIGH_fz83gzGyIMnqlX5rMrXDGexYar74AV9nzWhu9S_WJkXlb-q_L91fINzmF0Hjv8SSACLJwKxBP3sW-HgldlHwGmYR_ISAV3a42u-5aiKK5Pa5dd7-TwF7mC8HG80hxWH68VeAG9ifqLNQ7R9iHYPUVKmUsXzQ13r-G5RgKMyL8B9Ou8FuuWsAj0LsAeEyH5wBI49pXli6Qf65QgED4StXabBmcWCnAM4OpGLEHpg35GXDbx5-MRJuJ0dTonvzvnff96T-4u7i_3fjq-cltJy8mIprrobanGOlPZwwQ-3wMDjSBHQdzCwQMd9H-GcxH_MUWAijyP74S7kzV1JxPRvIkA442WR1Vqm05r3qqd16IenPkwjiiqOWVcXXVVUmFGtd1W101u915mtsdJtXxhqdX9A3OoGza7tKl1qKkud7zOuTW4KrXWudW62h81-X5Z93-6w2NOuqLTa5jQiu41zp3ETpiHjGGeq97oyeeawIReXijfmTpQxqQemOi17auYhqm3uOEr8JhIWt3TL3cLyFW5F-79Rh1xV1c8OIE7uADqXsk8uRhzXMoEwQfDX91QVKafkV5glxYfX-NacE102T662Ip9LH5mjMseBxc7Npg2jMsek9fp4-pzCB7WizHFxICpzXEz4FwAA__-Hi0Ll">