[libc-commits] [libc] [libc] Generate docs for `setjmp.h` (PR #89542)
Rajveer Singh Bharadwaj via libc-commits
libc-commits at lists.llvm.org
Sun Apr 21 06:16:05 PDT 2024
https://github.com/Rajveer100 updated https://github.com/llvm/llvm-project/pull/89542
>From 5fa525c87778d025e25a97d1ff3f40e5c4e2acee Mon Sep 17 00:00:00 2001
From: Rajveer <rajveer.developer at icloud.com>
Date: Sun, 21 Apr 2024 18:23:49 +0530
Subject: [PATCH] [libc] Generate docs for `setjmp.h`
Resolves #88065
---
libc/docs/c23.rst | 2 ++
libc/docs/setjmp.rst | 16 ++++++++++++++++
libc/utils/docgen/setjmp.json | 15 +++++++++++++++
3 files changed, 33 insertions(+)
create mode 100644 libc/docs/setjmp.rst
create mode 100644 libc/utils/docgen/setjmp.json
diff --git a/libc/docs/c23.rst b/libc/docs/c23.rst
index 44724fe1660cbe..62ae80579119e2 100644
--- a/libc/docs/c23.rst
+++ b/libc/docs/c23.rst
@@ -17,6 +17,8 @@ Implementation Status
Additions:
+* setjmp.h
+ * longjmp |check|
* fenv.h
diff --git a/libc/docs/setjmp.rst b/libc/docs/setjmp.rst
new file mode 100644
index 00000000000000..d9188dfe1d5e47
--- /dev/null
+++ b/libc/docs/setjmp.rst
@@ -0,0 +1,16 @@
+.. include:: check.rst
+
+setjmp.h Functions
+==================
+
+.. list-table::
+ :widths: auto
+ :align: center
+ :header-rows: 1
+
+ * - Function
+ - Implemented
+ - Standard
+ * - longjmp
+ - |check|
+ - 7.13.2.1
diff --git a/libc/utils/docgen/setjmp.json b/libc/utils/docgen/setjmp.json
new file mode 100644
index 00000000000000..38d4af568926a2
--- /dev/null
+++ b/libc/utils/docgen/setjmp.json
@@ -0,0 +1,15 @@
+{
+ "macros": {
+ "__STDC_VERSION_SETJMP_H__": {
+ "defined": "7.13.2"
+ },
+ "setjmp": {
+ "defined": "7.13.1.1"
+ }
+ },
+ "functions": {
+ "longjmp": {
+ "defined": "7.13.2.1"
+ }
+ }
+}
More information about the libc-commits
mailing list