================
@@ -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
----------------
to268 wrote:
I agree about moving the "defaults" statement to a separate sentence. I would
instead put that part after describing the two arguments since they defaults to
the same value.
https://github.com/llvm/llvm-project/pull/196088
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits