[libc-commits] [libc] [libc][docs] generate docs for ctype.h #87833 (PR #87946)
via libc-commits
libc-commits at lists.llvm.org
Sun Apr 7 14:45:49 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Zander Dumont-Strom (zdumonts)
<details>
<summary>Changes</summary>
[libc][docs] generate docs for ctype.h #<!-- -->87833
---
Full diff: https://github.com/llvm/llvm-project/pull/87946.diff
3 Files Affected:
- (added) libc/docs/ctype.rst (+53)
- (modified) libc/docs/index.rst (+1)
- (modified) libc/utils/docgen/ctype.json (+42-3)
``````````diff
diff --git a/libc/docs/ctype.rst b/libc/docs/ctype.rst
new file mode 100644
index 00000000000000..c2897e0c58dc1d
--- /dev/null
+++ b/libc/docs/ctype.rst
@@ -0,0 +1,53 @@
+ctype.h Functions
+=================
+
+.. list-table::
+ :widths: auto
+ :align: center
+ :header-rows: 1
+
+ * - Function
+ - Implemented
+ - Standard
+ * - isalnum
+ - |check|
+ - 7.4.1.1
+ * - isalpha
+ - |check|
+ - 7.4.1.2
+ * - isblank
+ - |check|
+ - 7.4.1.3
+ * - iscntrl
+ - |check|
+ - 7.4.1.4
+ * - isdigit
+ - |check|
+ - 7.4.1.5
+ * - isgraph
+ - |check|
+ - 7.4.1.6
+ * - islower
+ - |check|
+ - 7.4.1.7
+ * - isprint
+ - |check|
+ - 7.4.1.8
+ * - ispunct
+ - |check|
+ - 7.4.1.9
+ * - isspace
+ - |check|
+ - 7.4.1.10
+ * - isupper
+ - |check|
+ - 7.4.1.11
+ * - isxdigit
+ - |check|
+ - 7.4.1.12
+ * - tolower
+ - |check|
+ - 7.4.2.1
+ * - toupper
+ - |check|
+ - 7.4.2.2
diff --git a/libc/docs/index.rst b/libc/docs/index.rst
index 65ccb91e92ffe1..8470c8d9287c2f 100644
--- a/libc/docs/index.rst
+++ b/libc/docs/index.rst
@@ -69,6 +69,7 @@ stages there is no ABI stability in any form.
fenv
libc_search
c23
+ ctype
.. toctree::
:hidden:
diff --git a/libc/utils/docgen/ctype.json b/libc/utils/docgen/ctype.json
index 4102c2dd110911..233ed36bc8fb64 100644
--- a/libc/utils/docgen/ctype.json
+++ b/libc/utils/docgen/ctype.json
@@ -1,7 +1,46 @@
{
"functions": {
- "isalnum": null,
- "isalpha": null,
- "isblank": null
+ "isalnum": {
+ "defined": "7.4.1.1"
+ },
+ "isalpha": {
+ "defined": "7.4.1.2"
+ },
+ "isblank": {
+ "defined": "7.4.1.3"
+ },
+ "iscntrl": {
+ "defined": "7.4.1.4"
+ },
+ "isdigit": {
+ "defined": "7.4.1.5"
+ },
+ "isgraph": {
+ "defined": "7.4.1.6"
+ },
+ "islower": {
+ "defined": "7.4.1.7"
+ },
+ "isprint": {
+ "defined": "7.4.1.8"
+ },
+ "ispunct": {
+ "defined": "7.4.1.9"
+ },
+ "isspace": {
+ "defined": "7.4.1.10"
+ },
+ "isupper": {
+ "defined": "7.4.1.11"
+ },
+ "isxdigit": {
+ "defined": "7.4.1.12"
+ },
+ "tolower" : {
+ "defined": "7.4.2.1"
+ },
+ "toupper": {
+ "defined": "7.4.2.2"
+ }
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/87946
More information about the libc-commits
mailing list