[clang] [LifetimeSafety] Warn on incorrectly placed `[[clang::lifetimebound]]` attributes (PR #196144)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Thu May 7 22:59:33 PDT 2026


================
@@ -108,6 +108,8 @@ class LifetimeSafetySemaHelper {
   virtual void reportNoescapeViolation(const ParmVarDecl *ParmWithNoescape,
                                        const VarDecl *EscapeGlobal) {}
 
+  virtual void reportLifetimeboundViolation(const ParmVarDecl *VD) {}
----------------
usx95 wrote:

nit: Consider documenting this.

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


More information about the cfe-commits mailing list