[libc-commits] [libc] [libc][docs] Fix docgen macro lookup for underscored headers (PR #194367)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Mon Apr 27 07:49:10 PDT 2026
================
@@ -112,5 +112,7 @@ def __get_macro_files(self) -> Generator[Path, None, None]:
instead use a hyphen in the name.
libc/include/llvm-libc-macros/sys-mman-macros.h
"""
- stem = self.stem.replace("/", "-")
+ # Some POSIX headers use underscores in the header name but hyphens in
+ # the macro file name, e.g. nl_types.h -> nl-types-macros.h.
+ stem = self.stem.replace("/", "-").replace("_", "-")
----------------
kaladron wrote:
@michaelrj-google Do you have a preference here? I'm inclined to say that the filenames are probably wrong and should be fixed, but I want to make sure you don't have something in mind here.
https://github.com/llvm/llvm-project/pull/194367
More information about the libc-commits
mailing list