<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/117879>117879</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang][AST Matchers] Missing attributedStmt AST matcher
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
DistinctWind
</td>
</tr>
</table>
<pre>
Currently I'm playing with AST Transformer and I want to transform certain attributed statements. In the first step, I need to match the attributed statements. However, I didn't find any AST Matcher that will match AST Nodes `AttributedStmt`, `AnnotateAttr` and its corresponding statement in ASTMatchers.h.
I found a [code review](https://reviews.llvm.org/D120949?id=418341#inline-1163697) from the old llvm review platform, which is well discussed and approved. But it doesn't appear in current llvm 20 git build and I can't find any related Github Issue.
I wounder if it's forgot for some reason. Clang 20 now [supports](https://github.com/llvm/llvm-project/pull/110334) adding custom attribute in a plugin, so I think it's also a point to add support for matching `AttributedStmt` nodes.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVE-vozYQ_zTmMloEJkBy4JC3UdoctpddqWeDhzCtsZE9BL1vXw3Jvm2r7aEnJGz_5vfPNinR3SN2qn5T9SUzK08hdhdKTH7g38nbrA_2vfu8xoie3TvclG5nWJx5J3-HjXiC89dv8C0an8YQZ4xgvIUbbMYzcAD-vgIDRjbkwTBH6ldGC4kN44yeUw43DzwhjBQTQ2JclP4MN_CIVnBmw8O07_iP87-GDR8Yn6csWa90yzCSt2D8-87yi2BgBJ4Mw0bOvVBl7bdgMYFqivMH_FeeWTWFIMp_74OMk3XVFLtM4gRDiBHTErwVRz4YAXnBfY1M-ZSr4qyK8w3GsAonUPXbECxCxAfhpuqL0seJeUmqOit9Vfr6XEm5c485D_Gu9PVS6uJ0OKnqSlZVl0N5rA6l0hV5Rx4_lWVTNadW6ROMMcy7X8FZEITXIAmPJRDRtU00TEAJNnQOLKVhTQntLs4sSwwPtDm8rQzEYAOmp6tmWdBEkTg8m_EcoAu4E0O_krOvGgzmXzlEdEai-4V4Wnu4pbTihzWbWIMRaARipdsEY4j3wPKBFGYxy6Tgc_jsjL_LQB82cTKtyxIip5_ZeN9H5UOYlb4K0dfn0xLDHziw0tdldU7pa1kWVXUQ94zd4xzWxGH-UTmRbGBx6528-JcC3IAn8n9-J2xcCrIl0LP_xlp4kdtV7I0T6J9VDby0MM9sV9lTdTIZdmVb6bas2kObTd04DDUWx-NR1z3ioWjHeiyauj42fTsUjc2o04U-lKUc0Vq3uW2Hqhj7qremGbEp1aHA2ZD76FRGkkBXlu2xPWXO9OjS_h5oPYjHSmt5GmK3O9av96QOhaPEP2qZMbHbH5E9FYmgfvvbfZNQ4AulJLLNPzTvV29-bsvW6Lr_ndxOP-3Z7Qoenf4rAAD__1MrneM">