[libcxx-commits] [libcxx] a22c55c - [libcxx][iwyu] 🎨 adds more headers to IWYU

Christopher Di Bella via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 17 09:52:58 PDT 2021


Author: Christopher Di Bella
Date: 2021-06-17T16:52:34Z
New Revision: a22c55c69bcdef193715fd6e1f92a329649bc153

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

LOG: [libcxx][iwyu] 🎨 adds more headers to IWYU

A few slipped through the cracks because D104175 and D104170 didn't
concern themselves with newer commits.

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

Added: 
    

Modified: 
    libcxx/include/__ranges/empty_view.h
    libcxx/include/__ranges/ref_view.h
    libcxx/include/__ranges/subrange.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__ranges/empty_view.h b/libcxx/include/__ranges/empty_view.h
index 96dc78e7dd141..9a3c2b3e58dac 100644
--- a/libcxx/include/__ranges/empty_view.h
+++ b/libcxx/include/__ranges/empty_view.h
@@ -11,6 +11,7 @@
 
 #include <__config>
 #include <__ranges/view_interface.h>
+#include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header

diff  --git a/libcxx/include/__ranges/ref_view.h b/libcxx/include/__ranges/ref_view.h
index de0aad7253a0b..c668499883d04 100644
--- a/libcxx/include/__ranges/ref_view.h
+++ b/libcxx/include/__ranges/ref_view.h
@@ -11,10 +11,15 @@
 
 #include <__config>
 #include <__iterator/concepts.h>
+#include <__iterator/incrementable_traits.h>
 #include <__iterator/iterator_traits.h>
 #include <__ranges/access.h>
+#include <__ranges/concepts.h>
 #include <__ranges/data.h>
+#include <__ranges/empty.h>
+#include <__ranges/size.h>
 #include <__ranges/view_interface.h>
+#include <concepts>
 #include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

diff  --git a/libcxx/include/__ranges/subrange.h b/libcxx/include/__ranges/subrange.h
index dcdb060330513..f365fb7466cb5 100644
--- a/libcxx/include/__ranges/subrange.h
+++ b/libcxx/include/__ranges/subrange.h
@@ -11,11 +11,16 @@
 
 #include <__config>
 #include <__iterator/concepts.h>
+#include <__iterator/incrementable_traits.h>
 #include <__iterator/iterator_traits.h>
 #include <__iterator/advance.h>
 #include <__ranges/access.h>
+#include <__ranges/concepts.h>
 #include <__ranges/enable_borrowed_range.h>
+#include <__ranges/size.h>
+#include <__ranges/subrange.h>
 #include <__ranges/view_interface.h>
+#include <concepts>
 #include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)


        


More information about the libcxx-commits mailing list