[clang] [clang] Infer lifetime_capture_by for STL containers (PR #117122)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 21 05:58:57 PST 2024
================
@@ -1757,6 +1757,9 @@ class Sema final : public SemaBase {
/// Add [[clang:::lifetimebound]] attr for std:: functions and methods.
void inferLifetimeBoundAttribute(FunctionDecl *FD);
+ /// Add [[clang:::lifetime_capture(this)]] to STL container methods.
----------------
hokein wrote:
nit: lifetime_capture_by
https://github.com/llvm/llvm-project/pull/117122
More information about the cfe-commits
mailing list