[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
Fri Sep 8 11:33:30 PDT 2023


iana added inline comments.


================
Comment at: clang/test/Modules/Inputs/System/usr/include/stdint.h:2
 typedef int my_awesome_nonstandard_integer_type;
+
+/* C99 7.18.1.1 Exact-width integer types.
----------------
benlangmuir wrote:
> Why do we need all this code now (I assume this is copied from the real header)?
It's to support the tests I added to Modules/compiler_builtins.m. stdatomic.h and inttypes.h rely on stdint.h contents from the C library, and on complex.h and inttypes.h and math.h being present. I could just test the modules with `-ffreestanding` I think, would that be better?


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