[libcxx-commits] [PATCH] D122999: [libc++] Remove unused <iosfwd> include from <__debug>

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Apr 3 09:41:26 PDT 2022


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

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122999

Files:
  libcxx/include/__debug
  libcxx/include/experimental/iterator
  libcxx/include/module.modulemap


Index: libcxx/include/module.modulemap
===================================================================
--- libcxx/include/module.modulemap
+++ libcxx/include/module.modulemap
@@ -619,6 +619,7 @@
   }
   module iterator {
     header "iterator"
+    export iosfwd
     export *
 
     module __iterator {
Index: libcxx/include/experimental/iterator
===================================================================
--- libcxx/include/experimental/iterator
+++ libcxx/include/experimental/iterator
@@ -57,6 +57,7 @@
 #include <__utility/forward.h>
 #include <__utility/move.h>
 #include <experimental/__config>
+#include <iosfwd> // char_traits
 #include <iterator>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Index: libcxx/include/__debug
===================================================================
--- libcxx/include/__debug
+++ libcxx/include/__debug
@@ -12,7 +12,6 @@
 
 #include <__assert>
 #include <__config>
-#include <iosfwd>
 #include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122999.420066.patch
Type: text/x-patch
Size: 1033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220403/7122479b/attachment.bin>


More information about the libcxx-commits mailing list