[libc++][modules] Update the .cppm files.
authorMark de Wever <koraq@xs4all.nl>
Thu, 15 Jun 2023 16:12:06 +0000 (18:12 +0200)
committerMark de Wever <koraq@xs4all.nl>
Thu, 15 Jun 2023 16:12:06 +0000 (18:12 +0200)
There are some minor fixes in the definiton and it is synced with
upstream changes.

This has been reviewed as part of D151814.

14 files changed:
libcxx/modules/std/complex.cppm
libcxx/modules/std/format.cppm
libcxx/modules/std/functional.cppm
libcxx/modules/std/iosfwd.cppm
libcxx/modules/std/memory.cppm
libcxx/modules/std/memory_resource.cppm
libcxx/modules/std/queue.cppm
libcxx/modules/std/scoped_allocator.cppm
libcxx/modules/std/set.cppm
libcxx/modules/std/stack.cppm
libcxx/modules/std/stop_token.cppm
libcxx/modules/std/unordered_map.cppm
libcxx/modules/std/unordered_set.cppm
libcxx/modules/std/vector.cppm

index fa2b44c..b3207db 100644 (file)
@@ -23,9 +23,6 @@ export namespace std {
   using std::operator/;
 
   using std::operator==;
-#if 1 // P1614
-  using std::operator!=;
-#endif
   using std::operator>>;
   using std::operator<<;
 
index cc7e02d..cb8b461 100644 (file)
@@ -11,28 +11,27 @@ module;
 #include <format>
 
 export module std:format;
-#if !defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)
 export namespace std {
   // [format.context], class template basic_format_context
   using std::basic_format_context;
   using std::format_context;
-#  ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
   using std::wformat_context;
-#  endif
+#endif
 
   // [format.args], class template basic_format_args
   using std::basic_format_args;
   using std::format_args;
-#  ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
   using std::wformat_args;
-#  endif
+#endif
 
   // [format.fmt.string], class template basic_format_string
   using std::basic_format_string;
   using std::format_string;
-#  ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
   using std::wformat_string;
-#  endif
+#endif
 
   // [format.functions], formatting functions
   using std::format;
@@ -53,9 +52,9 @@ export namespace std {
   // [format.parse.ctx], class template basic_format_parse_context
   using std::basic_format_parse_context;
   using std::format_parse_context;
-#  ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
   using std::wformat_parse_context;
-#  endif
+#endif
 
   // [format.range], formatting of ranges
   // [format.range.fmtkind], variable template format_kind
@@ -71,11 +70,10 @@ export namespace std {
 
   // [format.arg.store], class template format-arg-store
   using std::make_format_args;
-#  ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
   using std::make_wformat_args;
-#  endif
+#endif
 
   // [format.error], class format_error
   using std::format_error;
 } // namespace std
-#endif // !defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)
index f114f08..9760933 100644 (file)
@@ -94,9 +94,6 @@ export namespace std {
   using std::swap;
 
   using std::operator==;
-#if 1 // P1614
-  using std::operator!=;
-#endif
 
   // [func.wrap.move], move only wrapper
   // using std::move_only_function;
index d43b918..3ba00d5 100644 (file)
@@ -12,5 +12,16 @@ module;
 
 export module std:iosfwd;
 export namespace std {
-  // All symbols are exported by other modules.
+  using std::streampos;
+#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+  using std::wstreampos;
+#endif
+  using std::u16streampos;
+  using std::u32streampos;
+  using std::u8streampos;
+
+  using std::istreambuf_iterator;
+  using std::ostreambuf_iterator;
+
+  using std::fpos;
 } // namespace std
index 8c47063..eb59cd4 100644 (file)
@@ -131,7 +131,6 @@ export namespace std {
 
   using std::swap;
 
-  using std::operator!=;
   using std::operator<;
   using std::operator>;
   using std::operator<=;
index 99bf89d..3c0be56 100644 (file)
@@ -16,9 +16,6 @@ export namespace std::pmr {
   using std::pmr::memory_resource;
 
   using std::pmr::operator==;
-#if 1 // P1614
-  using std::operator!=;
-#endif
 
   // [mem.poly.allocator.class], class template polymorphic_allocator
   using std::pmr::polymorphic_allocator;
index 420dcc1..8632ee2 100644 (file)
@@ -16,15 +16,12 @@ export namespace std {
   using std::queue;
 
   using std::operator==;
-#if 0 // P1614
-  using std::operator<=>;
-#else
   using std::operator!=;
   using std::operator<;
   using std::operator>;
   using std::operator<=;
   using std::operator>=;
-#endif
+  using std::operator<=>;
 
   using std::swap;
   using std::uses_allocator;
index 595ef0f..f198db9 100644 (file)
@@ -17,8 +17,5 @@ export namespace std {
 
   // [scoped.adaptor.operators], scoped allocator operators
   using std::operator==;
-#if 1 // P1614
-  using std::operator!=;
-#endif
 
 } // namespace std
index 621131c..19a2734 100644 (file)
@@ -16,15 +16,7 @@ export namespace std {
   using std::set;
 
   using std::operator==;
-#if 0 // P1614
   using std::operator<=>;
-#else
-  using std::operator!=;
-  using std::operator<;
-  using std::operator>;
-  using std::operator<=;
-  using std::operator>=;
-#endif
 
   using std::swap;
 
index 7924127..74b04d1 100644 (file)
@@ -16,14 +16,13 @@ export namespace std {
   using std::stack;
 
   using std::operator==;
+  using std::operator==;
   using std::operator!=;
   using std::operator<;
   using std::operator>;
   using std::operator<=;
   using std::operator>=;
-#if 0 // P1614
   using std::operator<=>;
-#endif
 
   using std::swap;
   using std::uses_allocator;
index cc13db0..80a5755 100644 (file)
@@ -8,14 +8,10 @@
 //===----------------------------------------------------------------------===//
 
 module;
-#if __has_include(<stop_token>) // D145183 contains a patch for this header
-#  error "include this header unconditionally and uncomment the exported symbols"
-#  include <stop_token>
-#endif
+#include <stop_token>
 
 export module std:stop_token;
 export namespace std {
-#if 0
   // [stoptoken], class stop_­token
   using std::stop_token;
 
@@ -28,5 +24,4 @@ export namespace std {
 
   // [stopcallback], class template stop_­callback
   using std::stop_callback;
-#endif
 } // namespace std
index f32a33d..4469e0d 100644 (file)
@@ -19,9 +19,6 @@ export namespace std {
   using std::unordered_multimap;
 
   using std::operator==;
-#if 1 // P1614
-  using std::operator!=;
-#endif
 
   using std::swap;
 
index 0379718..f3329fc 100644 (file)
@@ -19,9 +19,6 @@ export namespace std {
   using std::unordered_multiset;
 
   using std::operator==;
-#if 1 // P1614
-  using std::operator!=;
-#endif
 
   using std::swap;
 
index 125c62b..9ebe2d4 100644 (file)
@@ -17,16 +17,7 @@ export namespace std {
   using std::vector;
 
   using std::operator==;
-#if 0 // P1614
   using std::operator<=>;
-#else
-  /* These should be removed after https://reviews.llvm.org/D132268 lands. */
-  using std::operator!=;
-  using std::operator<;
-  using std::operator>;
-  using std::operator<=;
-  using std::operator>=;
-#endif
 
   using std::swap;