-
Notifications
You must be signed in to change notification settings - Fork 14.1k
[libc] Generate docs for setjmp.h
#89542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-libc Author: Rajveer Singh Bharadwaj (Rajveer100) ChangesResolves #88065 Added macros and functions. Full diff: https://github.com/llvm/llvm-project/pull/89542.diff 2 Files Affected:
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"
+ }
+ }
+}
|
e9b0c94
to
ef977e6
Compare
cc @Flandini |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there was a build failure.
/home/runner/work/llvm-project/llvm-project/libc/docs/setjmp.rst:document isn't included in any toctree
You can verify this by building the docs-libc-html
ninja target (ninja ninja docs-libc-html
).
I think you need to link to it from libc/docs/index.rst.
ef977e6
to
6b2e4cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for the approval @michaelrj-google! Could you land this for me? |
Resolves #88065
Added macros and functions.