<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/113210>113210</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`performance-unnecessary-value-param` does not support adding allowed types that are template parameters
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
carlosgalvezp
</td>
</tr>
</table>
<pre>
I am having the same issue as here:
https://github.com/llvm/llvm-project/issues/101181
I try to fix it by adding:
```
performance-unnecessary-value-param.AllowedTypes: 'Iterator'
```
To my `.clang-tidy` file, but it doesn't work. Probably because clang-tidy is matching that against "the real type" instead of the "written" type.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykks-OnDAMxp8mXKxBxDP8mQOHbVcj7a2HfQGHGEgbCErMbOnTVzDbbg89VKqEjCzDF-f3fZSSG2bmVpWfVPmc0SpjiG1H0Yc0kL_zjyUzwW7tC9AEI93dPICMDIkmBpfSykAJRo6szk-qeFbF0yiypL3Dm8Lb4GRcTd6FSeHN-_uv12mJ4St3ovB2yCSFN11o3eiHyqO-gMQNJEDvvoMTMBuQtW4efp-mquL9OVpYOPYhTjR3fFrnmTtOieJ2upNf-bRQpCl_8j68sX3dFt4XBYX1i3AkCVFh_VfdR30NMG2gqiLvPM3DSZzdVFVA7zwr_AxmlX1LGzjNCmuBtxC_5fAlBkPGb2C4ozUxfPwNLsFE0o0PsCRAA7k5CSjEHXRk8iDbwgoR9gGThdAfJijEt-hEeN6H-0d5ZtuzvZ6vlHGra7yW5-tVN9nYWmO6-lp1uuGmqbivK9NRXVKpy9qQ7TPXYoEXXaDW10upm5wbPPdWN3XZm6pDqy4FT-R8vtuXhzhkh3Gt1mfURebJsE9HkhD_wIO4Jyu2h-lmHZK6FN4lSR864sRzq6riH8zbce98YQ4CaV2WEOU9E0APXw8S6Z1mZBCeFk_CcAiwcEzZGn37H0F9XPne4s8AAAD__xgbDzE">