[clang] [llvm] clang: fix lifetime_capture_by indexing for member functions (PR #212264)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 29 05:53:41 PDT 2026


================
@@ -1016,16 +1016,14 @@ void FactsGenerator::handleLifetimeCaptureBy(const FunctionDecl *FD,
                                              ArrayRef<const Expr *> Args) {
   if (Args.empty())
     return;
-  // FIXME: Add support for capture_by on constructors.
-  if (isa<CXXConstructorDecl>(FD))
-    return;
----------------
NeKon69 wrote:

I think we should keep this.

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


More information about the cfe-commits mailing list