<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64618>64618</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
add check which generates parameter comment fix-its in calls with easily swappable parameters
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
firewave
</td>
</tr>
</table>
<pre>
Similar to `bugprone-easily-swappable-parameters` but to help with the call site in case the API cannot be changed.
```cpp
void cb(int in, int out, int swap);
void f()
{
cb(0, 1, 0);
cb(/*in*/ 0, /*out*/ 1, /*swap*/ 0);
}
```
Some IDEs offers that information as inline hints.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUl2PpCAQ_DX40pkJ4Mfogw-zN2eyb5fsL0Bspe8QDODO7b-_qLs7k0sMkuru6qpQKkaaHGLLyhdW3jK1JuNDO1LAu3rHrPfDR_tGM1kVIHlgFe_XaQne4QlVJPtxine1LKq3eFpUUDMmDJFVHPo1bRMG7QJ3SgaSQdDKWoiUEMiBVhF39PrrFbRyzifoEbRRbsLhzPiN8evnWfHj08tyIO-eBtA9kzW5BOSY_AHbza_p67opY7Jh-csz1T44MllvpQO_fDYAwEHJNwqxHfyZ4LvOZMfkdVt6ZbKDvf3A9vU7KB7gIeSr9UnQ5fafvWehb35GeL39jODHEUOEZNTmdPRhVom8AxWBnCWHYMileM6GNh-avFEZtqJqxKVsirLMTFtfxlHJng8yr8dLjzlWTSGapmwafanHIqNWcpnzWgiRC16W57HiRVP2UlSiEqKuWMFxVmTP1r7PZx-mjGJcsa2KStSZVT3auIdISod32ItMyi1Tod1mTv06RVZwSzHFB0uiZLFVwwDaoP4Dd0PawIQOg0oY4TtToP08o0sw0t8TpXgEyNp4hOsII3yH8TEYszXY1qS0RJZf9wfpJkpm7c_az0x2m5bP32kJ_jfqxGS3O4hMdrvDfwEAAP__GrT1mA">