[clang] [LifetimeSafety] Add support for lifetime capture_by (PR #196884)
Kashika Akhouri via cfe-commits
cfe-commits at lists.llvm.org
Thu May 21 03:40:54 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;
----------------
kashika0112 wrote:
I have created an `ArrayRef` instead of relying on indices. However, I am not so sure if I have used it in the best way. Let me know what you think.
https://github.com/llvm/llvm-project/pull/196884
More information about the cfe-commits
mailing list