[libcxx-commits] [libcxx] e70533a - [libc++] Remove unused <iosfwd> include from <__debug>

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Sun Apr 3 13:15:55 PDT 2022


Author: Louis Dionne
Date: 2022-04-03T16:15:48-04:00
New Revision: e70533ae6c57756111689abf7826a3c632255866

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

LOG: [libc++] Remove unused <iosfwd> include from <__debug>

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__debug b/libcxx/include/__debug
index f5ebcac153d57..1296b4db5bbf5 100644
--- a/libcxx/include/__debug
+++ b/libcxx/include/__debug
@@ -12,7 +12,6 @@
 
 #include <__assert>
 #include <__config>
-#include <iosfwd>
 #include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

diff  --git a/libcxx/include/experimental/iterator b/libcxx/include/experimental/iterator
index 79c594fde42b4..a92bca6a20fa8 100644
--- a/libcxx/include/experimental/iterator
+++ b/libcxx/include/experimental/iterator
@@ -57,6 +57,7 @@ namespace std {
 #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)

diff  --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap
index 75e94130dd071..10e944a2b448d 100644
--- a/libcxx/include/module.modulemap
+++ b/libcxx/include/module.modulemap
@@ -648,7 +648,10 @@ module std [system] {
       module move_iterator         { private header "__iterator/move_iterator.h" }
       module next                  { private header "__iterator/next.h" }
       module ostream_iterator      { private header "__iterator/ostream_iterator.h" }
-      module ostreambuf_iterator   { private header "__iterator/ostreambuf_iterator.h" }
+      module ostreambuf_iterator   {
+        private header "__iterator/ostreambuf_iterator.h"
+        export iosfwd
+      }
       module permutable            { private header "__iterator/permutable.h" }
       module prev                  { private header "__iterator/prev.h" }
       module projected             { private header "__iterator/projected.h" }


        


More information about the libcxx-commits mailing list