[clang] Add support for lifetime capture_by (PR #196884)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Mon May 11 03:11:17 PDT 2026
================
@@ -864,6 +864,74 @@ void FactsGenerator::handleImplicitObjectFieldUses(const Expr *Call,
});
}
+void FactsGenerator::handleLifetimeCaptureBy(const FunctionDecl *FD,
+ ArrayRef<const Expr *> Args) {
+ bool isInstance = false;
----------------
Xazax-hun wrote:
I wonder if a more elegant way to handle `isInstance` would be to create an `ArrayRef` that is a sub-range. I.e., dropping the first element of `Args`. (Not hundred percent sure if it would simplify much.)
https://github.com/llvm/llvm-project/pull/196884
More information about the cfe-commits
mailing list