<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62415>62415</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
bugprone-argument-comment should be able to enforce commenting parameter values that are a result of a function call
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mbautin
</td>
</tr>
</table>
<pre>
Sometimes parameter value specified as a result of a function call does not convey the meaning of the parameter at all.
E.g. in
`MyFunction(rand() % 10, rand() %10)`
it is clear that both of the argument values are no better than "magic numbers" and the reader should be given some information about the meaning of these parameters, e.g.
`MyFunction(/*key=*/rand() % 10, /*value=*/rand() %10)`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kstynDAQRb9GbLqGguZhZsFiEoddVvmCFmpAiR5Tekxq_j4FY5edlOMNFE2r1ffcSzHq1TGPovsiuueCctp8GK2knLQrpFf38Ye3nLTlCFcKZDlxgBuZzBCvPOtFswKKQBA4ZpPAL0CwZDcn7R3MZAwozxGcTzB7d-M7pI3BMjnt1r19_3ybTQnImBJE9Syqy-P5rVxL0O59SfTV9_v0co3AIZBTAgeBZxDYQV0J_Ap_F_faWfTV-zE6gY4wG6YAaaME0qftdSkKa7bs0kNvBAoMzoPktC-aNnIgEC2tegaXreQQBSKQU8fxwKQ4QNx8Ngokw6pv7CB6y6Dd4oOlgxFJn9MHUOI7LHGXw-VafsZA4CTw8ovvonkWeBE4fUjl0XZo-k_jK6lCjY06N2cqeKz7AXvs2-Gp2MZFdXVdd22nmpkUN_1MPJz7ZWhUc1Z1U-gRK2yqFp-wqtv2qey7pqtlJwemSvYtibZiS9qUxtxs6cNa6Bgzjz22dVcYkmziEUtEx7_h-CkQ95SGcT9zknmNoq2Mjim-TUk6GR5lXq_BOz69WniavT2sfHODpGFIHni3YmZ46dj5_5P0-IjGbv8nMS9yMOOW0jWK5nIwnladtizL2VuB077iy-t0Df4nz0ngdAiLAqdD-J8AAAD__7d5JR4">