[clang] [clang][dataflow] Add captured parameters to ReferencedDecls for lamb… (PR #117771)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 26 11:39:33 PST 2024


================
@@ -146,6 +146,10 @@ struct ReferencedDecls {
   /// Free functions and member functions which are referenced (but not
   /// necessarily called).
   llvm::DenseSet<const FunctionDecl *> Functions;
+  /// Parameters of other functions, captured by reference by a lambda. This is
+  /// empty except when ReferencedDecls are computed for a lambda's call
+  /// operator.
+  llvm::DenseSet<const ParmVarDecl *> LambdaCapturedParams;
----------------
ymand wrote:

Why do we particularly care about params, vs other locals?

https://github.com/llvm/llvm-project/pull/117771


More information about the cfe-commits mailing list