[libc-commits] [libc] [libc][docs] Add nl_types.h POSIX header documentation (#122006) (PR #194373)

Petter Berntsson via libc-commits libc-commits at lists.llvm.org
Mon Apr 27 06:46:22 PDT 2026


https://github.com/petbernt created https://github.com/llvm/llvm-project/pull/194373

Add nl_types.h implementation-status docs to llvm-libc.

Depends on PR #194367. That change fixes docgen macro lookup for underscored headers, without it, the macros of nl_types.h implementation status is not reported accurately.

>From b2f9d042ebe635fe09f5dac32643316da6d75b65 Mon Sep 17 00:00:00 2001
From: Petter Berntsson <petter.berntsson at arm.com>
Date: Mon, 27 Apr 2026 14:03:58 +0100
Subject: [PATCH] [libc][docs] Add nl_types.h POSIX header documentation
 (#122006)

---
 libc/docs/CMakeLists.txt        |  1 +
 libc/docs/headers/index.rst     |  1 +
 libc/utils/docgen/nl_types.yaml | 13 +++++++++++++
 3 files changed, 15 insertions(+)
 create mode 100644 libc/utils/docgen/nl_types.yaml

diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 237a648e7ac1d..c69ecf4103f84 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -54,6 +54,7 @@ if (SPHINX_FOUND)
       glob
       inttypes
       locale
+      nl_types
       net/if
       netinet/in
       poll
diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index 3902d08b94c3e..7f7d0eca7be49 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -23,6 +23,7 @@ Implementation Status
    math/index.rst
    net/if
    netinet/in
+   nl_types
    poll
    search
    setjmp
diff --git a/libc/utils/docgen/nl_types.yaml b/libc/utils/docgen/nl_types.yaml
new file mode 100644
index 0000000000000..97fbcddfc9948
--- /dev/null
+++ b/libc/utils/docgen/nl_types.yaml
@@ -0,0 +1,13 @@
+functions:
+  catclose:
+    in-latest-posix: ""
+  catgets:
+    in-latest-posix: ""
+  catopen:
+    in-latest-posix: ""
+
+macros:
+  NL_CAT_LOCALE:
+    in-latest-posix: ""
+  NL_SETD:
+    in-latest-posix: ""



More information about the libc-commits mailing list