summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Anderson <iana@apple.com>2023-08-23 13:17:42 -0700
committerCopybara-Service <copybara-worker@google.com>2023-08-30 11:46:18 -0700
commit6eed0002f7603c59f2643e8cd9cf67d41223c2c2 (patch)
tree52020fe05fa6b999f02435dcfceae5f50436b411
parente019f02f857252649b1fe9f0b30431a07ee0e8c8 (diff)
downloadgwp_asan-6eed0002f7603c59f2643e8cd9cf67d41223c2c2.tar.gz
[Headers][Modules] Make separate headers for the stdarg.h and stddef.h pieces so that they can be modularized
stdarg.h and stddef.h have to be textual headers in their upcoming modules to support their `__needs_xxx` macros. That means that they won't get precompiled into their modules' pcm, and instead their declarations will go into every other pcm that uses them. For now that's ok since the type merger can handle the declarations in these headers, but it's suboptimal at best. Make separate headers for all of the pieces so that they can be properly modularized. Reviewed By: aaron.ballman, ChuanqiXu Differential Revision: https://reviews.llvm.org/D158709 GitOrigin-RevId: 680da4b5d7ec05a1e6656f2a7603a7b843268bab Change-Id: I669371852f608ade447344e527aa39c212c0b383
-rw-r--r--gwp_asan/guarded_pool_allocator.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gwp_asan/guarded_pool_allocator.h b/gwp_asan/guarded_pool_allocator.h
index de07b67..a02a353 100644
--- a/gwp_asan/guarded_pool_allocator.h
+++ b/gwp_asan/guarded_pool_allocator.h
@@ -20,6 +20,15 @@
#include <stddef.h>
#include <stdint.h>
// IWYU pragma: no_include <__stddef_max_align_t.h>
+// IWYU pragma: no_include <__stddef_null.h>
+// IWYU pragma: no_include <__stddef_nullptr_t.h>
+// IWYU pragma: no_include <__stddef_offsetof.h>
+// IWYU pragma: no_include <__stddef_ptrdiff_t.h>
+// IWYU pragma: no_include <__stddef_rsize_t.h>
+// IWYU pragma: no_include <__stddef_size_t.h>
+// IWYU pragma: no_include <__stddef_unreachable.h>
+// IWYU pragma: no_include <__stddef_wchar_t.h>
+// IWYU pragma: no_include <__stddef_wint_t.h>
namespace gwp_asan {
// This class is the primary implementation of the allocator portion of GWP-