[clang] [LifetimeSafety] resolved lifetimeBound violation in constructor (PR #204797)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 21 14:55:13 PDT 2026


================
@@ -135,7 +135,10 @@ class LifetimeChecker {
         return;
       if (PVD->hasAttr<LifetimeBoundAttr>()) {
         // Track that this lifetimebound parameter correctly escapes.
----------------
usx95 wrote:

Please update the documentation:
```
// Track that this lifetimebound parameter correctly escapes
// (via return or via field assignment in a constructor).
```

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


More information about the cfe-commits mailing list