[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:53:14 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.
----------------
efriedma wrote:
> iana wrote:
> > Does anyone know a trick to catch the note from stddef.h?
> I think the syntax is something like `expected-warning at stddef.h:10`?  See rGfcc699ae ,  There's also a wildcard syntax; see rG05eedf1f.
Ah ha!


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