[libcxx-commits] [libcxx] 48e862d - [libcxx] Add missing includes

Michael Buch via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 16 09:27:07 PST 2023


Author: Michael Buch
Date: 2023-01-16T17:26:47Z
New Revision: 48e862d06d2fce4c3b70eeda748efa2682d62f57

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

LOG: [libcxx] Add missing includes

This fixes the remaining errors when building the llvm-project
with `LLVM_ENABLE_MODULES=ON` (and `LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY=ON`,
which currently is the LLVM default).

Previously this would fail in the `CXX_SUPPORTS_MODULES` check.

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

Added: 
    

Modified: 
    libcxx/include/__iterator/bounded_iter.h
    libcxx/include/__iterator/move_iterator.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__iterator/bounded_iter.h b/libcxx/include/__iterator/bounded_iter.h
index 69d237a180109..2682f2a68a229 100644
--- a/libcxx/include/__iterator/bounded_iter.h
+++ b/libcxx/include/__iterator/bounded_iter.h
@@ -15,6 +15,7 @@
 #include <__iterator/iterator_traits.h>
 #include <__memory/pointer_traits.h>
 #include <__type_traits/enable_if.h>
+#include <__type_traits/integral_constant.h>
 #include <__type_traits/is_convertible.h>
 #include <__utility/move.h>
 

diff  --git a/libcxx/include/__iterator/move_iterator.h b/libcxx/include/__iterator/move_iterator.h
index 2b44b2710c57d..fa806dbaf70eb 100644
--- a/libcxx/include/__iterator/move_iterator.h
+++ b/libcxx/include/__iterator/move_iterator.h
@@ -28,8 +28,10 @@
 #include <__type_traits/enable_if.h>
 #include <__type_traits/is_assignable.h>
 #include <__type_traits/is_constructible.h>
+#include <__type_traits/is_convertible.h>
 #include <__type_traits/is_reference.h>
 #include <__type_traits/is_same.h>
+#include <__type_traits/remove_reference.h>
 #include <__utility/declval.h>
 #include <__utility/move.h>
 


        


More information about the libcxx-commits mailing list