================
@@ -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
+defaults to 0, and the second parameter describes whether the last fixed
----------------
AaronBallman wrote:

```suggestion
defaults to 0, and the second argument describes whether the last fixed
```

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