[libcxx-commits] [libcxx] 892990c - [libc++] IWYU to fix complaints when compiling with Modules. NFCI.

Arthur O'Dwyer via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 5 11:30:30 PDT 2021


Author: Arthur O'Dwyer
Date: 2021-08-05T14:30:08-04:00
New Revision: 892990c56cc05188ad38c29c0acb283dcdf05b1e

URL: https://github.com/llvm/llvm-project/commit/892990c56cc05188ad38c29c0acb283dcdf05b1e
DIFF: https://github.com/llvm/llvm-project/commit/892990c56cc05188ad38c29c0acb283dcdf05b1e.diff

LOG: [libc++] IWYU to fix complaints when compiling with Modules. NFCI.

Differential Revision: https://reviews.llvm.org/D107583

Added: 
    

Modified: 
    libcxx/include/__iterator/counted_iterator.h
    libcxx/include/__iterator/iter_swap.h
    libcxx/include/__ranges/access.h
    libcxx/include/__ranges/common_view.h
    libcxx/include/__ranges/ref_view.h
    libcxx/include/__ranges/single_view.h
    libcxx/include/__ranges/subrange.h
    libcxx/include/__ranges/take_view.h
    libcxx/include/__ranges/transform_view.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__iterator/counted_iterator.h b/libcxx/include/__iterator/counted_iterator.h
index 7136aaf02584e..c9e138307577a 100644
--- a/libcxx/include/__iterator/counted_iterator.h
+++ b/libcxx/include/__iterator/counted_iterator.h
@@ -19,6 +19,8 @@
 #include <__iterator/iterator_traits.h>
 #include <__iterator/readable_traits.h>
 #include <__memory/pointer_traits.h>
+#include <__utility/move.h>
+#include <compare>
 #include <concepts>
 #include <type_traits>
 

diff  --git a/libcxx/include/__iterator/iter_swap.h b/libcxx/include/__iterator/iter_swap.h
index d70da09b4ab8a..a31b95f27457e 100644
--- a/libcxx/include/__iterator/iter_swap.h
+++ b/libcxx/include/__iterator/iter_swap.h
@@ -15,6 +15,8 @@
 #include <__iterator/iterator_traits.h>
 #include <__iterator/readable_traits.h>
 #include <__ranges/access.h>
+#include <__utility/forward.h>
+#include <__utility/move.h>
 #include <concepts>
 #include <type_traits>
 

diff  --git a/libcxx/include/__ranges/access.h b/libcxx/include/__ranges/access.h
index add848887c11c..1c7dcbe64a0d9 100644
--- a/libcxx/include/__ranges/access.h
+++ b/libcxx/include/__ranges/access.h
@@ -14,6 +14,7 @@
 #include <__iterator/readable_traits.h>
 #include <__ranges/enable_borrowed_range.h>
 #include <__utility/__decay_copy.h>
+#include <__utility/as_const.h>
 #include <__utility/forward.h>
 #include <concepts>
 #include <type_traits>

diff  --git a/libcxx/include/__ranges/common_view.h b/libcxx/include/__ranges/common_view.h
index dab82602f6714..f2909a2926c4d 100644
--- a/libcxx/include/__ranges/common_view.h
+++ b/libcxx/include/__ranges/common_view.h
@@ -18,6 +18,7 @@
 #include <__ranges/enable_borrowed_range.h>
 #include <__ranges/size.h>
 #include <__ranges/view_interface.h>
+#include <__utility/move.h>
 #include <concepts>
 #include <type_traits>
 

diff  --git a/libcxx/include/__ranges/ref_view.h b/libcxx/include/__ranges/ref_view.h
index fb45a359863b5..6ed621741a2d2 100644
--- a/libcxx/include/__ranges/ref_view.h
+++ b/libcxx/include/__ranges/ref_view.h
@@ -20,6 +20,7 @@
 #include <__ranges/empty.h>
 #include <__ranges/size.h>
 #include <__ranges/view_interface.h>
+#include <__utility/forward.h>
 #include <concepts>
 #include <type_traits>
 

diff  --git a/libcxx/include/__ranges/single_view.h b/libcxx/include/__ranges/single_view.h
index ef9822d211480..9e1ff7e01da07 100644
--- a/libcxx/include/__ranges/single_view.h
+++ b/libcxx/include/__ranges/single_view.h
@@ -12,6 +12,9 @@
 #include <__config>
 #include <__ranges/view_interface.h>
 #include <__ranges/copyable_box.h>
+#include <__utility/forward.h>
+#include <__utility/in_place.h>
+#include <__utility/move.h>
 #include <concepts>
 #include <type_traits>
 

diff  --git a/libcxx/include/__ranges/subrange.h b/libcxx/include/__ranges/subrange.h
index 25d333db02dee..acae70cf3cc88 100644
--- a/libcxx/include/__ranges/subrange.h
+++ b/libcxx/include/__ranges/subrange.h
@@ -20,6 +20,8 @@
 #include <__ranges/enable_borrowed_range.h>
 #include <__ranges/size.h>
 #include <__ranges/view_interface.h>
+#include <__tuple>
+#include <__utility/move.h>
 #include <concepts>
 #include <type_traits>
 

diff  --git a/libcxx/include/__ranges/take_view.h b/libcxx/include/__ranges/take_view.h
index deef79ebfb822..73a57fe96c088 100644
--- a/libcxx/include/__ranges/take_view.h
+++ b/libcxx/include/__ranges/take_view.h
@@ -23,6 +23,7 @@
 #include <__ranges/view_interface.h>
 #include <__utility/move.h>
 #include <concepts>
+#include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header

diff  --git a/libcxx/include/__ranges/transform_view.h b/libcxx/include/__ranges/transform_view.h
index 4243dc0366e9a..9aee8fce49584 100644
--- a/libcxx/include/__ranges/transform_view.h
+++ b/libcxx/include/__ranges/transform_view.h
@@ -10,9 +10,11 @@
 #define _LIBCPP___RANGES_TRANSFORM_VIEW_H
 
 #include <__config>
+#include <__functional/invoke.h>
 #include <__iterator/concepts.h>
 #include <__iterator/iter_swap.h>
 #include <__iterator/iterator_traits.h>
+#include <__memory/addressof.h>
 #include <__ranges/access.h>
 #include <__ranges/all.h>
 #include <__ranges/concepts.h>
@@ -20,6 +22,8 @@
 #include <__ranges/empty.h>
 #include <__ranges/size.h>
 #include <__ranges/view_interface.h>
+#include <__utility/in_place.h>
+#include <__utility/move.h>
 #include <concepts>
 #include <type_traits>
 


        


More information about the libcxx-commits mailing list