[clang] [clang-tools-extra] [clang][AST] Visit lambda bodies whose call operator is not a definition (PR #237067)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 1 04:36:38 PST 2026
zyn0217 wrote:
> For reference, I was able to construct a bug in ASTMatcher with the same root cause: because RAV misses lambda bodies, ASTMatcher's `hasDescendant`/`forEachDescendant` cannot reach them, so it silently produces unexpected results. Of course, it could use the same approach as this PR as a workaround. I’m not sure about its severity or impact. Should I open a separate follow-up issue to discuss it?
Did you consider fixing how lambdas get merged across modules, e.g. by assigning them the same body?
https://github.com/llvm/llvm-project/pull/237067
More information about the cfe-commits
mailing list