https://github.com/AbdAlRahmanGad created 
https://github.com/llvm/llvm-project/pull/182629

None

>From 9a64bd5c1424371ab3c32926ad361d3cb158255d Mon Sep 17 00:00:00 2001
From: AbdAlRahman Gad <[email protected]>
Date: Sat, 21 Feb 2026 02:20:45 +0200
Subject: [PATCH] [APINotes] Document `Lifetimebound` annotation

---
 clang/docs/APINotes.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/clang/docs/APINotes.rst b/clang/docs/APINotes.rst
index e142cfa62e5a2..d5da0d4c1d0e8 100644
--- a/clang/docs/APINotes.rst
+++ b/clang/docs/APINotes.rst
@@ -447,3 +447,16 @@ declaration kind), all of which are optional:
     - Selector: "initWithFrame:"
       MethodKind: Instance
       DesignatedInit: true
+
+:Lifetimebound:
+  
+  Used for methods and functions (excluding ``this``). Parameters are 
identified by a 0-based
+  'Position'. Equivalent to ``[[clang::lifetimebound]]``.
+
+  ::
+
+    Functions:
+    - Name: funcToAnnotate
+      Parameters:
+      - Position: 0
+        Lifetimebound: true

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to