================
@@ -10055,3 +10055,64 @@ 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
+variadic functions, to diagnose each function call that do not pass a sentinel
+value (a null pointer constant) in the argument list, at the end by default.
+The attribute accepts 2 optional parameters: the first parameter is the
+position of the expected sentinel value, starting from the last parameter which
----------------
AaronBallman wrote:

```suggestion
index of the expected sentinel value, starting from the last parameter which
```
Also: "which defaults to 0" is hard for me to read; maybe that should be a 
separate sentence? e.g., "...starting from the last parameter. If this argument 
is elided, it defaults to '0'." and similar below?

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

Reply via email to