[clang] [clang][dataflow] Add parameters of other functions to `LambdaCaptured… (PR #170311)
Yitzhak Mandelbaum via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 2 09:26:41 PST 2025
================
@@ -154,6 +154,14 @@ struct ReferencedDecls {
/// When analyzing a lambda's call operator, the set of all parameters (from
/// the surrounding function) that the lambda captures. Captured local
/// variables are already included in `Locals` above.
+ ///
+ /// This set also includes any referenced parameters of functions other than
----------------
ymand wrote:
This wording feels general (and hence is a bit hard to parse). Could you be more specific, like
"of the surrounding function that introduces the lambda whose body is targeted for visitation"
? Or, is there actually more general functionality here?
https://github.com/llvm/llvm-project/pull/170311
More information about the cfe-commits
mailing list