[clang] [clang][transformer] Add `arrayTypeLoc` ast matcher for ArrayTypeLoc (PR #168990)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 21 05:06:06 PST 2025
================
@@ -7003,6 +7003,19 @@ AST_MATCHER_P(ReferenceTypeLoc, hasReferentLoc, internal::Matcher<TypeLoc>,
return ReferentMatcher.matches(Node.getPointeeLoc(), Finder, Builder);
}
+/// Matches `ArrayTypeLoc`s.
----------------
AaronBallman wrote:
Please be sure to run `clang/docs/tools/dump_ast_matchers.py` to regenerate the documentation for the new matcher.
You should also update `clang/lib/ASTMatchers/Dynamic/Registry.cpp` to add the dynamic matcher at the same time.
And finally, this should come with a release note in `clang/docs/ReleaseNotes.rst`.
https://github.com/llvm/llvm-project/pull/168990
More information about the cfe-commits
mailing list