https://github.com/AaronBallman commented: The changes look reasonable to me, but can you also add a release note to clang/docs/ReleaseNotes.rst so that users of AST matchers know about the fix? https://github.com/llvm/llvm-project/pull/89657