[libcxx-commits] [libcxx] [libc++][modules] Modularize <cstddef> (PR #107254)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 5 05:18:58 PDT 2024


ldionne wrote:

> That makes sense. I feel these headers a bit too granular though. Maybe we could just have `__cstddef/aliases.h` and `__cstddef/byte.h`? Having four headers for four aliases seems a bit overkill.

Some headers like `<cstdio>` want to redeclare `std::size_t` but not e.g. `std::nullptr_t` or `std::ptrdiff_t`. We could technically have `__cstddef/byte.h`, `__cstddef/size_t.h` and `__cstddef/others.h` but IMO it's better to be consistent than save 1-2 headers.

https://github.com/llvm/llvm-project/pull/107254


More information about the libcxx-commits mailing list