aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__format
diff options
context:
space:
mode:
authorIan Anderson <iana@apple.com>2023-05-06 19:26:49 -0500
committerIan Anderson <iana@apple.com>2023-05-07 19:54:49 -0500
commit79702f7f593dece7afb67fec03df884d50525b96 (patch)
tree6438b61aa09091874cec355c7afb1000c12fee38 /libcxx/include/__format
parent63959a18e74dbe0bed1532a8b43c811e3181aac7 (diff)
downloadllvm-79702f7f593dece7afb67fec03df884d50525b96.zip
llvm-79702f7f593dece7afb67fec03df884d50525b96.tar.gz
llvm-79702f7f593dece7afb67fec03df884d50525b96.tar.bz2
[libc++][Modules] Add missing includes and exports
Several headers are missing includes for things they use. type_traits.is_enum needs to export type_traits.integral_constant so that clients can access its `value` member without explicitly including __type_traits/integral_constant.h themselves. Make `subrange_fwd` a peer submodule to `subrange` rather than a submodule of it, and have `subrange` export `subrange_fwd`. That will make it easier to programmatically generate modules for the private detail headers, and it will accomplish the same effect that __ranges/subrange.h will make subrange_kind visible. Reviewed By: Mordante, #libc Differential Revision: https://reviews.llvm.org/D150055
Diffstat (limited to 'libcxx/include/__format')
-rw-r--r--libcxx/include/__format/format_arg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/include/__format/format_arg.h b/libcxx/include/__format/format_arg.h
index 7e37dd4..a27da8d 100644
--- a/libcxx/include/__format/format_arg.h
+++ b/libcxx/include/__format/format_arg.h
@@ -18,6 +18,8 @@
#include <__format/format_parse_context.h>
#include <__functional/invoke.h>
#include <__memory/addressof.h>
+#include <__type_traits/conditional.h>
+#include <__type_traits/is_const.h>
#include <__utility/declval.h>
#include <__utility/forward.h>
#include <__utility/unreachable.h>