[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:32 PST 2024


================
@@ -281,6 +282,17 @@ ReferencedDecls getReferencedDecls(const FunctionDecl &FD) {
   Visitor.TraverseStmt(FD.getBody());
   if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(&FD))
     Visitor.traverseConstructorInits(CtorDecl);
+  if (const auto *Method = dyn_cast<CXXMethodDecl>(&FD);
----------------
ymand wrote:

I think it would help to ~copy the comment from the PR description to here. It would also be good to explain why we are more liberal with captured parameters.

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


More information about the cfe-commits mailing list