[libc-commits] [libc] [libc][docs] Fix docgen macro lookup for underscored headers (PR #194367)
Petter Berntsson via libc-commits
libc-commits at lists.llvm.org
Mon Apr 27 07:50:03 PDT 2026
https://github.com/petbernt updated https://github.com/llvm/llvm-project/pull/194367
>From e33f7d04498a50b12777151bf2c054f6071dc6c5 Mon Sep 17 00:00:00 2001
From: Petter Berntsson <petter.berntsson at arm.com>
Date: Mon, 27 Apr 2026 15:45:14 +0100
Subject: [PATCH] [libc][docs] Rename nl_types macro header to match nl_types.h
---
libc/include/llvm-libc-macros/CMakeLists.txt | 2 +-
.../llvm-libc-macros/{nl-types-macros.h => nl_types-macros.h} | 0
libc/include/nl_types.yaml | 4 ++--
libc/test/src/nl_types/nl_types_test.cpp | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
rename libc/include/llvm-libc-macros/{nl-types-macros.h => nl_types-macros.h} (100%)
diff --git a/libc/include/llvm-libc-macros/CMakeLists.txt b/libc/include/llvm-libc-macros/CMakeLists.txt
index 1f34257c57e01..1decfe8570d3c 100644
--- a/libc/include/llvm-libc-macros/CMakeLists.txt
+++ b/libc/include/llvm-libc-macros/CMakeLists.txt
@@ -371,7 +371,7 @@ add_macro_header(
add_macro_header(
nl_types_macros
HDR
- nl-types-macros.h
+ nl_types-macros.h
)
add_macro_header(
diff --git a/libc/include/llvm-libc-macros/nl-types-macros.h b/libc/include/llvm-libc-macros/nl_types-macros.h
similarity index 100%
rename from libc/include/llvm-libc-macros/nl-types-macros.h
rename to libc/include/llvm-libc-macros/nl_types-macros.h
diff --git a/libc/include/nl_types.yaml b/libc/include/nl_types.yaml
index bdb59a82a3337..ad940280b9c89 100644
--- a/libc/include/nl_types.yaml
+++ b/libc/include/nl_types.yaml
@@ -3,9 +3,9 @@ standards:
- posix
macros:
- macro_name: NL_SETD
- macro_header: nl-types-macros.h
+ macro_header: nl_types-macros.h
- macro_name: NL_CAT_LOCALE
- macro_header: nl-types-macros.h
+ macro_header: nl_types-macros.h
types:
- type_name: nl_catd
enums: []
diff --git a/libc/test/src/nl_types/nl_types_test.cpp b/libc/test/src/nl_types/nl_types_test.cpp
index 7392200272dfd..89c5bef1e4066 100644
--- a/libc/test/src/nl_types/nl_types_test.cpp
+++ b/libc/test/src/nl_types/nl_types_test.cpp
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include "include/llvm-libc-macros/nl-types-macros.h"
+#include "include/llvm-libc-macros/nl_types-macros.h"
#include "include/llvm-libc-types/nl_catd.h"
#include "src/nl_types/catclose.h"
#include "src/nl_types/catgets.h"
More information about the libc-commits
mailing list