diff options
author | flovent <144676429+flovent@users.noreply.github.com> | 2025-03-26 23:03:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-26 16:03:43 +0100 |
commit | b55dd8f607dab5b122e09836022a37ef10c8c653 (patch) | |
tree | 0231b1a0ddaea046684a78fd22696d247ca462aa /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6dd14c881cd6dbe76a73b60ab7eabf95f92271c4 (diff) | |
download | llvm-b55dd8f607dab5b122e09836022a37ef10c8c653.zip llvm-b55dd8f607dab5b122e09836022a37ef10c8c653.tar.gz llvm-b55dd8f607dab5b122e09836022a37ef10c8c653.tar.bz2 |
[clang][analyzer] Correctly handle structured bindings captured by lambda (#132579)
this PR fixes #91835.
For `DeclRefExpr` in lambda's function body, it will references to
original variable declaration in AST rather than `FieldDecl` for lambda
class, so it's needed to find the corresponding `FieldDecl` and bind
`DeclRefExpr`'s value to it.
This is already implemented for variables that are not in a structured
binding structure, so I extracted that part of the code so that it can
be used in the structured binding case.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions