<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54931>54931</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-query does not accept attr()
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
theuni
</td>
</tr>
</table>
<pre>
As title, clang-query does not accept `attr()`.
Documented here: https://clang.llvm.org/docs/LibASTMatchersReference.html
`attr()` works fine as a matcher in c++ code, but clang-query does not seem to know about it:
```
clang-query> m attr()
1:1: Matcher not found: attr
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UU1z3CAM_TX4ookHY5O1Dxw23fbUXtr-AYy1Ng2GrRHN5N8Xk02z6XQ6Iz6EpPeexBimZ3WMQJYcMvEBjNN-vvuZcHuGKWAEHwi0MXghYPdcE21M9EwM2akZPzF-fNlPwaQVPeEEC27I2iMsRJeYL0x8ylaQa-d-rXXY5vwwBRPz8dmOx2_fv2gyuS5-xXOu9gbrhVZ3S_A3OzyF7THC2XoEHUHD-gIB1oNh4iEbmDCVrsZE_-4sIq5AAR59eAI9hpxnaZf8Snm14t4gsPYjrHCjpyQ0uXJfcO2mUJxD8tP-WLLf41aTaqehHXRVPkD9b_pvZFXanHo_3NnSksbahDU7-4yvx91lCz_QUHZtjAn3gctuaJtqUQeBg-llrw-NHoXE1vS8weFeSN0MXRbn9IguKiYfmDxVVgkuBO8a2bRSCl4ftJk6OfCu1wPXZmQdx1Vb9-ePq00VDWOaYw46Gym-BXWMdvaIr_g60RI2RQsmb6uiVhWpvwFd-9JX">