[libcxx][iwyu] ensures we IWYU as prep for modules

This has been broken out of D104170 since it should be merged whether or
not we go ahead with the module map changes.

Differential Revision: https://reviews.llvm.org/D104175
This commit is contained in:
Christopher Di Bella 2021-06-12 06:13:44 +00:00
parent 994bb937f0
commit 332da1c283
32 changed files with 76 additions and 13 deletions

View File

@ -15,6 +15,7 @@
#include <__function_like.h>
#include <__iterator/concepts.h>
#include <__iterator/incrementable_traits.h>
#include <__iterator/iterator_traits.h>
#include <concepts>
#include <limits>
#include <type_traits>

View File

@ -11,10 +11,13 @@
#define _LIBCPP___ITERATOR_NEXT_H
#include <__config>
#include <__debug>
#include <__function_like.h>
#include <__iterator/advance.h>
#include <__iterator/concepts.h>
#include <__iterator/incrementable_traits.h>
#include <__iterator/iterator_traits.h>
#include <type_traits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header

View File

@ -11,10 +11,13 @@
#define _LIBCPP___ITERATOR_PREV_H
#include <__config>
#include <__debug>
#include <__function_like.h>
#include <__iterator/advance.h>
#include <__iterator/concepts.h>
#include <__iterator/incrementable_traits.h>
#include <__iterator/iterator_traits.h>
#include <type_traits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header

View File

@ -13,6 +13,7 @@
#include <__config>
#include <__memory/allocator_traits.h>
#include <cstddef>
#include <utility>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header

View File

@ -361,6 +361,8 @@ struct __rebind_alloc_helper {
template <class _Tp>
struct __is_default_allocator : false_type { };
template <class> class allocator;
template <class _Tp>
struct __is_default_allocator<allocator<_Tp> > : true_type { };

View File

@ -11,6 +11,7 @@
#define _LIBCPP___MEMORY_AUTO_PTR_H
#include <__config>
#include <__nullptr>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header

View File

@ -11,6 +11,7 @@
#define _LIBCPP___MEMORY_POINTER_SAFETY_H
#include <__config>
#include <cstddef>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header

View File

@ -11,6 +11,7 @@
#define _LIBCPP___MEMORY_POINTER_TRAITS_H
#include <__config>
#include <__memory/addressof.h>
#include <type_traits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

View File

@ -11,7 +11,9 @@
#include <__config>
#include <__iterator/concepts.h>
#include <__iterator/readable_traits.h>
#include <__ranges/enable_borrowed_range.h>
#include <concepts>
#include <type_traits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

View File

@ -11,9 +11,15 @@
#include <__config>
#include <__iterator/concepts.h>
#include <__iterator/incrementable_traits.h>
#include <__iterator/iter_move.h>
#include <__iterator/iterator_traits.h>
#include <__iterator/readable_traits.h>
#include <__ranges/access.h>
#include <__ranges/enable_borrowed_range.h>
#include <__ranges/enable_view.h>
#include <__ranges/size.h>
#include <concepts>
#include <type_traits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

View File

@ -12,6 +12,7 @@
#include <__config>
#include <__iterator/concepts.h>
#include <__iterator/iterator_traits.h>
#include <__memory/pointer_traits.h>
#include <__ranges/access.h>
#include <concepts>
#include <type_traits>

View File

@ -11,6 +11,7 @@
#include <__config>
#include <__iterator/concepts.h>
#include <__ranges/access.h>
#include <__ranges/size.h>
#include <type_traits>

View File

@ -13,6 +13,7 @@
#include <__iterator/concepts.h>
#include <__iterator/iterator_traits.h>
#include <__ranges/access.h>
#include <concepts>
#include <type_traits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

View File

@ -13,9 +13,12 @@
#include <__iterator/concepts.h>
#include <__iterator/iterator_traits.h>
#include <__iterator/prev.h>
#include <__memory/pointer_traits.h>
#include <__ranges/access.h>
#include <__ranges/concepts.h>
#include <__ranges/empty.h>
#include <__ranges/enable_view.h>
#include <concepts>
#include <type_traits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

View File

@ -21,11 +21,13 @@
// template <class Rep, class Period>
// shared_lock(mutex_type& m, const chrono::duration<Rep, Period>& rel_time);
#include <shared_mutex>
#include <thread>
#include <vector>
#include <cstdlib>
#include <atomic>
#include <cassert>
#include <cstdlib>
#include <shared_mutex>
#include <vector>
#include "make_test_thread.h"
#include "test_macros.h"

View File

@ -21,11 +21,13 @@
// template <class Clock, class Duration>
// shared_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);
#include <shared_mutex>
#include <thread>
#include <vector>
#include <cstdlib>
#include <atomic>
#include <cassert>
#include <cstdlib>
#include <shared_mutex>
#include <vector>
#include "make_test_thread.h"
#include "test_macros.h"

View File

@ -20,10 +20,12 @@
// void lock();
#include <shared_mutex>
#include <thread>
#include <atomic>
#include <cstdlib>
#include <cassert>
#include <shared_mutex>
#include "make_test_thread.h"
#include "test_macros.h"

View File

@ -20,11 +20,13 @@
// void lock_shared();
#include <shared_mutex>
#include <thread>
#include <vector>
#include <cstdlib>
#include <atomic>
#include <cassert>
#include <cstdlib>
#include <shared_mutex>
#include <vector>
#include "make_test_thread.h"
#include "test_macros.h"

View File

@ -23,11 +23,13 @@
// template <class Clock, class Duration>
// bool try_lock_shared_until(const chrono::time_point<Clock, Duration>& abs_time);
#include <shared_mutex>
#include <thread>
#include <vector>
#include <cstdlib>
#include <atomic>
#include <cassert>
#include <cstdlib>
#include <shared_mutex>
#include <vector>
#include "make_test_thread.h"
#include "test_macros.h"

View File

@ -13,7 +13,9 @@
// constexpr void advance_to(const_iterator it);
#include <format>
#include <cassert>
#include <string_view>
#include "test_macros.h"

View File

@ -13,7 +13,9 @@
// constexpr begin() const noexcept;
#include <format>
#include <cassert>
#include <string_view>
#include "test_macros.h"

View File

@ -23,7 +23,9 @@
// constexpr void check_arg_id(size_t id);
#include <format>
#include <cassert>
#include <string_view>
#include "test_macros.h"

View File

@ -15,7 +15,9 @@
// size_t num_args = 0) noexcept
#include <format>
#include <cassert>
#include <string_view>
#include <type_traits>
#include "test_macros.h"

View File

@ -13,7 +13,9 @@
// constexpr end() const noexcept;
#include <format>
#include <cassert>
#include <string_view>
#include "test_macros.h"

View File

@ -23,7 +23,9 @@
// constexpr size_t next_arg_id();
#include <format>
#include <cassert>
#include <string_view>
#include "test_macros.h"

View File

@ -24,6 +24,8 @@
// using wformat_parse_context = basic_format_parse_context<wchar_t>;
#include <format>
#include <string_view>
#include <type_traits>
#include "test_macros.h"

View File

@ -20,6 +20,8 @@
// UNSUPPORTED: c++03
#include <memory>
#include <atomic>
#include <cassert>
#include "test_macros.h"

View File

@ -21,6 +21,8 @@
// UNSUPPORTED: c++03
#include <memory>
#include <atomic>
#include <cassert>
#include "test_macros.h"

View File

@ -21,6 +21,8 @@
// UNSUPPORTED: c++03
#include <memory>
#include <atomic>
#include <cassert>
#include "test_macros.h"

View File

@ -19,6 +19,8 @@
// UNSUPPORTED: c++03
#include <memory>
#include <atomic>
#include <cassert>
#include "test_macros.h"

View File

@ -19,6 +19,8 @@
// UNSUPPORTED: c++03
#include <memory>
#include <atomic>
#include <cassert>
#include "test_macros.h"

View File

@ -19,6 +19,8 @@
// UNSUPPORTED: c++03
#include <memory>
#include <atomic>
#include <cassert>
#include "test_macros.h"