<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62963>62963</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: Add config option to allow function parameters to be displayed on separate lines
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ameerj
</td>
</tr>
</table>
<pre>
For AMD's PAL library, the [style guidelines](https://github.com/GPUOpen-Drivers/pal/blob/dev/doc/process/palCodingStandards.md#formatting-and-commenting) require each parameter in a function definition to occupy a separate line.
For example:
```c++
void SomeFunction(
int param)
{
}
void SomeOtherFunction(
int param,
bool cond)
{
}
```
There does not seem to be any configuration for clang-format to achieve this style.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U92OmzwQfRpzM0oEJhBywUWyEd_NV-1K2z6AfwbwyniobdLm7SsnZHd70ZUsYzzjM3OOj0UIZnCILatOrDpnYokj-VZMiP4tk6SvbUcejt_OjO8DvBz_B2ukF_7K-BPEEYFVpxCvFmFYjEZrHAZWnRlvxhjnwMoj4x3j3WDiuMitoonx7r-XH88zus3Zmwv6wHg3C8t4Jy1JxjuNlzSTSgFPCsOa8kTauOE1CqeF12E7acbLnvwkYjRu2AinN4qmCV36ZfwAHn8uxiOgUCPMwosJI3owDgT0i1PRkAONvXHmtowEpNQyX0FAwHQgIiRSW5afWX68z0kS_C2m2WIieI_U-X0oxk9p3HYvZDS80oTdWozx5h4BADAu3pti_LCi7E-PxflzxXec5zii_yfYA-1p3ZZEFhQ5_VWBR-Of630f0SNowgCOIgTEKWkjEYS7JsTeDIsXN8168qCscMPmfhUpUajR4AUhjibAzR_bTLelPpQHkWFb1E1V7MqibLKxrYs6V5Lzpue1ynf1vtrVXBUC-72Uu4pnpuU5L_OK17wsmqrZNkWNmNe9aCpZVIeC7XKchLFbay_TlvyQmRAWbGt-qMvMCok2PBzu25S0kcsQ2C63JsTwcSyaaLH9TIaVRzhqvVIGmh82EdbSrw8PvXsrrDppE2YrrqiB3N9WCtnibfvF80jtrJ_N7OkNVWS8u1FKD-HG6k8AAAD__8cwL30">