Skip to content

Commit adafeed

Browse files
committed
[libc++][modules] Consolidate modules for math and tuple
The module for tuple is kept private and does not contain <tuple> itself, because that pulls in too many dependencies. Only the utilities related to tuple are consolidated into a single module.
1 parent d6832a6 commit adafeed

File tree

11 files changed

+49
-51
lines changed

11 files changed

+49
-51
lines changed

libcxx/include/__math/copysign.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <__type_traits/enable_if.h>
1414
#include <__type_traits/is_arithmetic.h>
1515
#include <__type_traits/promote.h>
16-
#include <limits>
1716

1817
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1918
# pragma GCC system_header

libcxx/include/__math/remainder.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <__type_traits/is_arithmetic.h>
1515
#include <__type_traits/is_same.h>
1616
#include <__type_traits/promote.h>
17-
#include <limits>
1817

1918
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2019
# pragma GCC system_header

libcxx/include/__tuple/find_index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#define _LIBCPP___TUPLE_FIND_INDEX_H
1111

1212
#include <__config>
13+
#include <__cstddef/size_t.h>
1314
#include <__type_traits/is_same.h>
14-
#include <cstddef>
1515

1616
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1717
# pragma GCC system_header

libcxx/include/__tuple/make_tuple_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define _LIBCPP___TUPLE_MAKE_TUPLE_TYPES_H
1111

1212
#include <__config>
13+
#include <__cstddef/size_t.h>
1314
#include <__fwd/array.h>
1415
#include <__fwd/tuple.h>
1516
#include <__tuple/tuple_element.h>
@@ -19,7 +20,6 @@
1920
#include <__type_traits/copy_cvref.h>
2021
#include <__type_traits/remove_cv.h>
2122
#include <__type_traits/remove_reference.h>
22-
#include <cstddef>
2323

2424
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2525
# pragma GCC system_header

libcxx/include/__tuple/sfinae_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define _LIBCPP___TUPLE_SFINAE_HELPERS_H
1111

1212
#include <__config>
13+
#include <__cstddef/size_t.h>
1314
#include <__fwd/tuple.h>
1415
#include <__tuple/make_tuple_types.h>
1516
#include <__tuple/tuple_element.h>
@@ -23,7 +24,6 @@
2324
#include <__type_traits/is_same.h>
2425
#include <__type_traits/remove_cvref.h>
2526
#include <__type_traits/remove_reference.h>
26-
#include <cstddef>
2727

2828
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2929
# pragma GCC system_header

libcxx/include/__tuple/tuple_element.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#define _LIBCPP___TUPLE_TUPLE_ELEMENT_H
1111

1212
#include <__config>
13+
#include <__cstddef/size_t.h>
1314
#include <__tuple/tuple_indices.h>
1415
#include <__tuple/tuple_types.h>
15-
#include <cstddef>
1616

1717
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1818
# pragma GCC system_header

libcxx/include/__tuple/tuple_indices.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#define _LIBCPP___TUPLE_MAKE_TUPLE_INDICES_H
1111

1212
#include <__config>
13+
#include <__cstddef/size_t.h>
1314
#include <__utility/integer_sequence.h>
14-
#include <cstddef>
1515

1616
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1717
# pragma GCC system_header

libcxx/include/__tuple/tuple_like_ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
#define _LIBCPP___TUPLE_TUPLE_LIKE_EXT_H
1111

1212
#include <__config>
13+
#include <__cstddef/size_t.h>
1314
#include <__fwd/array.h>
1415
#include <__fwd/pair.h>
1516
#include <__fwd/tuple.h>
1617
#include <__tuple/tuple_types.h>
1718
#include <__type_traits/integral_constant.h>
18-
#include <cstddef>
1919

2020
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2121
# pragma GCC system_header

libcxx/include/__tuple/tuple_like_no_subrange.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
#define _LIBCPP___TUPLE_TUPLE_LIKE_NO_SUBRANGE_H
1111

1212
#include <__config>
13+
#include <__cstddef/size_t.h>
1314
#include <__fwd/array.h>
1415
#include <__fwd/complex.h>
1516
#include <__fwd/pair.h>
1617
#include <__fwd/tuple.h>
1718
#include <__tuple/tuple_size.h>
1819
#include <__type_traits/remove_cvref.h>
19-
#include <cstddef>
2020

2121
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2222
# pragma GCC system_header

libcxx/include/__tuple/tuple_size.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
#define _LIBCPP___TUPLE_TUPLE_SIZE_H
1111

1212
#include <__config>
13+
#include <__cstddef/size_t.h>
1314
#include <__fwd/tuple.h>
1415
#include <__tuple/tuple_types.h>
1516
#include <__type_traits/enable_if.h>
1617
#include <__type_traits/integral_constant.h>
1718
#include <__type_traits/is_const.h>
1819
#include <__type_traits/is_volatile.h>
19-
#include <cstddef>
2020

2121
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2222
# pragma GCC system_header

0 commit comments

Comments
 (0)