[clang] [clang][analyzer] Correctly handle structured bindings captured by lambda (PR #132579)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 25 04:57:45 PDT 2025
flovent wrote:
> In this case the proper fix would be to make sure, every declaration is correctly looked up from a lambda.
As i can know, lambdas can only capture variables in program, which seems can only comes from `VarDecl` or `BindingDecl`, so i think we don't need to handle other declarations for captured situation.
And for other types of declaration handled in `VisitCommonDeclRefExpr`(`EnumConstantDecl`, `FunctionDecl`), they will not be variables obviously.
https://github.com/llvm/llvm-project/pull/132579
More information about the cfe-commits
mailing list