[PATCH] D159064: [Modules] Make clang modules for the C standard library headers

Ian Anderson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 14 20:38:57 PDT 2023


iana added inline comments.


================
Comment at: clang/lib/Headers/module.modulemap:269
+  explicit module wint_t {
+    header "__stddef_wint_t.h"
+    export *
----------------
iana wrote:
> Arguably this should be textual since stddef.h shouldn't own wint_t and it's just here for compatibility. Otherwise I think the ODR would force wchar.h to define need_wint and include stddef.h which is kind of weird?
wint_t doesn't need to be textual, it can just be split out of stddef so that it doesn't get precompiled, and won't be see at all normally.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159064/new/

https://reviews.llvm.org/D159064



More information about the cfe-commits mailing list