================
@@ -154,6 +154,17 @@ 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.
+ ///
+ /// When analyzing a standalone `Stmt` directly, this set includes any
+ /// referenced function parameters. This supports the collection of
+ /// ReferencedDecls from a DeclStmt constructed for lambda init-capture
+ /// VarDecls for the purpose of performing a dataflow analysis on the
+ /// declaration/initialization. When analyzing any `FunctionDecl`, this set
----------------
ymand wrote:
super nit: I might preface with "Note:" to highlight that this is an aside and
no longer describing the variable.
https://github.com/llvm/llvm-project/pull/170311
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits