================
@@ -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
----------------
ymand wrote:

Maybe a little simpler (of possibly losing some information):

   ... This supports the collection of
  /// ReferencedDecls from a DeclStmt constructed for analysis of lambda 
init-capture
  /// VarDecls. 

https://github.com/llvm/llvm-project/pull/170311
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to