Skip to content

[Clang][AST Matchers] Missing attributedStmt AST matcher #117879

@DistinctWind

Description

@DistinctWind

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 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 adding custom attribute in a plugin, so I think it's also a point to add support for matching AttributedStmt nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions