================
@@ -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
+variadic functions, to diagnose each function call that do not pass a sentinel
+value at the end of the argument list. It checks if a null pointer constant
+exists at the end of the argument list by default, or at the (N+1)th position
+starting from the end when an argument is provided.
+
+.. code-block:: c
+
+ #include <stddef.h>
----------------
erichkeane wrote:
Why this stddef include? Our examples don't really have to compile, but I also
don't see
https://github.com/llvm/llvm-project/pull/196088
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits