forked from OSchip/llvm-project
[libc++] Remove <utility> includes
Reviewed By: ldionne, Quuxplusone, #libc Spies: libcxx-commits, arphaman Differential Revision: https://reviews.llvm.org/D121054
This commit is contained in:
parent
14324fa428
commit
1458458b55
|
@ -59,10 +59,10 @@ API Changes
|
|||
``<filesystem>`` header. The associated macro
|
||||
``_LIBCPP_DEPRECATED_EXPERIMENTAL_FILESYSTEM`` has also been removed.
|
||||
|
||||
- Some libc++ headers no longer transitively include all of ``<algorithm>``and ``<chrono>``.
|
||||
- Some libc++ headers no longer transitively include all of ``<algorithm>``, ``<chrono>`` and ``<utility>``.
|
||||
If, after updating libc++, you see compiler errors related to missing declarations in
|
||||
namespace ``std``, it might be because one of your source files now needs to
|
||||
``#include <algorithm>`` and/or ``#include <chrono>``.
|
||||
``#include <algorithm>``, ``#include <chrono>`` and/or ``#include <utility>``.
|
||||
|
||||
- The integer distributions ``binomial_distribution``, ``discrete_distribution``,
|
||||
``geometric_distribution``, ``negative_binomial_distribution``, ``poisson_distribution``,
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
#include <memory>
|
||||
#include <type_traits>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
#if defined(_LIBCPP_MSVCRT_LIKE)
|
||||
# include <__support/win32/locale_win32.h>
|
||||
# include <cstring>
|
||||
|
|
|
@ -733,8 +733,6 @@ template <class BidirectionalIterator, class Compare>
|
|||
#include <type_traits>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
#include <__algorithm/adjacent_find.h>
|
||||
#include <__algorithm/all_of.h>
|
||||
#include <__algorithm/any_of.h>
|
||||
|
|
|
@ -123,8 +123,6 @@ template <size_t I, class T, size_t N> const T&& get(const array<T, N>&&) noexce
|
|||
#include <type_traits>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
|
|
@ -77,8 +77,6 @@ namespace pmr {
|
|||
#include <stdexcept>
|
||||
#include <type_traits>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
|
|
@ -112,8 +112,6 @@
|
|||
#include <functional>
|
||||
#include <type_traits>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
|
|
@ -527,8 +527,6 @@ POLICY: For non-variadic implementations, the number of arguments is limited
|
|||
#include <typeinfo>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
|
|
@ -656,8 +656,6 @@ template <class E> constexpr const E* data(initializer_list<E> il) noexcept;
|
|||
#include <type_traits>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
// TODO: remove these headers
|
||||
#include <__functional/binary_function.h>
|
||||
#include <__functional/invoke.h>
|
||||
|
|
|
@ -546,8 +546,6 @@ erase_if(multimap<Key, T, Compare, Allocator>& c, Predicate pred); // C++20
|
|||
#include <type_traits>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
|
|
@ -835,8 +835,6 @@ void* align(size_t alignment, size_t size, void*& ptr, size_t& space);
|
|||
#include <typeinfo>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
// TODO: remove these headers
|
||||
#include <__functional/binary_function.h>
|
||||
#include <__functional/invoke.h>
|
||||
|
|
|
@ -172,8 +172,6 @@ template<class T>
|
|||
#include <type_traits>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
// TODO: remove these headers
|
||||
#include <__memory/allocator_arg_t.h>
|
||||
#include <__memory/uses_allocator.h>
|
||||
|
|
|
@ -256,6 +256,7 @@ namespace std {
|
|||
#include <__ranges/transform_view.h>
|
||||
#include <__ranges/view_interface.h>
|
||||
#include <__ranges/views.h>
|
||||
#include <__tuple> // TODO: <ranges> has to export std::tuple_size. Replace this, once <tuple> is granularized.
|
||||
#include <compare> // Required by the standard.
|
||||
#include <initializer_list> // Required by the standard.
|
||||
#include <iterator> // Required by the standard.
|
||||
|
|
|
@ -779,8 +779,6 @@ typedef regex_token_iterator<wstring::const_iterator> wsregex_token_iterator;
|
|||
#include <vector>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
|
|
@ -543,8 +543,6 @@ basic_string<char32_t> operator "" s( const char32_t *str, size_t len ); // C++1
|
|||
#include <type_traits>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
// TODO: remove these headers
|
||||
#include <__functional/binary_function.h>
|
||||
#include <__functional/invoke.h>
|
||||
|
|
|
@ -183,8 +183,6 @@ template <class... Types>
|
|||
#include <type_traits>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
// TODO: remove these headers
|
||||
#include <__functional/binary_function.h>
|
||||
#include <__functional/invoke.h>
|
||||
|
|
|
@ -50,8 +50,6 @@ struct hash<type_index>
|
|||
#include <typeinfo>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
// TODO: remove these headers
|
||||
#include <__functional/binary_function.h>
|
||||
#include <__functional/invoke.h>
|
||||
|
|
|
@ -219,8 +219,6 @@ namespace std {
|
|||
#include <type_traits>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
// TODO: remove these headers
|
||||
#include <__functional/binary_function.h>
|
||||
#include <__functional/invoke.h>
|
||||
|
|
|
@ -302,8 +302,6 @@ erase_if(vector<T, Allocator>& c, Predicate pred); // C++20
|
|||
#include <type_traits>
|
||||
#include <version>
|
||||
|
||||
#include <utility> // TODO: Remove this
|
||||
|
||||
// TODO: remove these headers
|
||||
#include <__functional/binary_function.h>
|
||||
#include <__functional/invoke.h>
|
||||
|
|
Loading…
Reference in New Issue