<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/71382>71382</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
hasAnyTemplateArgument doesn't go through the parameter packs. Should it?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
DenisYaroshevskiy
</td>
</tr>
</table>
<pre>
When you try to match hasAnyTemplateArgument, you match against a parameter pack not against types in the pack
```
m classTemplateSpecializationDecl(hasName("scoped_lock"), hasAnyTemplateArgument(templateArgument()))
```
^ does not give me mutexes. Is this expected behaviour?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0Us-v0zAM_mvSi_WmzF279tDDYEziwuUhIU7Ibb0mLG2q2B1v_PVoZfyQeEiWo-Sz48-fTSJ-mJgbU7wxxTGjRV1MzZEnL58pRXF8lYu_ZW3sb80nxxPc4gKabqARRtLOgSM5TLePPM6BlA9pWEae1ODbNfRnDA3kJ1EgmCnRyMoJZuouMEX9DeptZgE_gTpeUWOPxh4evrQPW68jdIFEflV9nrnzFPx3Uh-nI3fBYOVIPtDIBiuDKF2cuf8SYncxiAbrO8H_Ua_036c1ZbXX-Dx88Q76yLK2Nfgrw8gwLsovLBt4L6DOC_DLzJ1yDy07uvq4JJOfsr7J-zqvKeNmW9Y17tHuMHMNVftzhW2dY90iVlVRFDYvyrLmvaWO2sw3aDHfbm25RWvzYlNUxfZ8ruqyPxflzvZmZ3kkHzYhXMdNTEPmRRZu9tu8wixQy0HWBUCc-Bus4F2j4pil5p7z1C6DmJ0NXlT-_KJeAzeva7jKMBncKwwR1KW4DO4x2L8XQDbw7OISevB6V2FJoXGqs5j8YPBk8DR4dUu76eJo8HSv_Tie5hS_cqcGTytjMXhaO_oRAAD___2G7GU">