[clang] [Clang][Docs] Documented sentinel attribute (PR #196088)

Tony Guillot via cfe-commits cfe-commits at lists.llvm.org
Wed May 27 08:49:00 PDT 2026


================
@@ -10055,3 +10055,34 @@ different languages to coexist on the same call stack while each interpreting
 exceptions according to their own rules.
   }];
 }
+
+def SentinelDocs : Documentation {
+  let Category = DocCatFunction;
+  let Content = [{
+The ``sentinel`` attribute can be applied to variadic functions and pointers to
----------------
to268 wrote:

> Also, it doesn't explain the two arguments, nor how they work.
Which two arguments? there is only one optional argument for the sentinel attribute.

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


More information about the cfe-commits mailing list