[libcxx-commits] [PATCH] D141833: [libcxx] Add missing includes

Michael Buch via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 16 02:26:56 PST 2023


Michael137 created this revision.
Michael137 added reviewers: ldionne, aprantl.
Herald added a project: All.
Michael137 requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141833

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


Index: libcxx/include/__iterator/move_iterator.h
===================================================================
--- libcxx/include/__iterator/move_iterator.h
+++ 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>
 
Index: libcxx/include/__iterator/bounded_iter.h
===================================================================
--- libcxx/include/__iterator/bounded_iter.h
+++ libcxx/include/__iterator/bounded_iter.h
@@ -16,6 +16,7 @@
 #include <__memory/pointer_traits.h>
 #include <__type_traits/enable_if.h>
 #include <__type_traits/is_convertible.h>
+#include <__type_traits/integral_constant.h>
 #include <__utility/move.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141833.489473.patch
Type: text/x-patch
Size: 1052 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230116/19e6152c/attachment.bin>


More information about the libcxx-commits mailing list