[PATCH] D157757: [Headers] Replace __need_STDDEF_H_misc with specific __need_ macros

Ian Anderson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 11 15:14:29 PDT 2023


iana marked an inline comment as done.
iana added inline comments.


================
Comment at: clang/test/Headers/stddef.c:20-23
+// rsize_t will only be defined if __STDC_WANT_LIB_EXT1__ is set to >= 1.
+// It would be nice to test the default undefined behavior, but that emits
+// a note coming from stddef.h "rsize_t, did you mean size_t?" that can't be
+// `c99-note`d away.
----------------
Does anyone know a trick to catch the note from stddef.h?


================
Comment at: clang/test/Headers/stddefneeds.c:35-37
+// If you do these individually, the compiler will add a note
+// coming from stddef.h "rsize_t, did you mean size_t?" that
+// can't be `c99-note`d away.
----------------
(same here)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157757



More information about the cfe-commits mailing list