[libcxx-commits] [libcxx] WIP - [libc++] P2872R2: Remove ``wstring_convert`` From C++26 (PR #87100)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 29 11:32:13 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 80aa52d8c5a8a1c26b4114c60c2159c743d236d8 7bbc3e784a4290c078500764124ab01d1c2eae0b -- libcxx/include/locale libcxx/modules/std/locale.inc libcxx/test/libcxx/input.output/file.streams/fstreams/fstream.cons/wchar_pointer.pass.cpp libcxx/test/libcxx/input.output/file.streams/fstreams/fstream.members/open_wchar_pointer.pass.cpp libcxx/test/libcxx/input.output/file.streams/fstreams/ofstream.cons/wchar_pointer.pass.cpp libcxx/test/libcxx/input.output/file.streams/fstreams/ofstream.members/open_wchar_pointer.pass.cpp libcxx/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/ctor.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/converted.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_codecvt.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_codecvt_state.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_copy.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/depr.verify.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/from_bytes.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/state.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/to_bytes.pass.cpp libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/types.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/modules/std/locale.inc b/libcxx/modules/std/locale.inc
index b5fdcb509d..6bab5a56f6 100644
--- a/libcxx/modules/std/locale.inc
+++ b/libcxx/modules/std/locale.inc
@@ -67,12 +67,12 @@ export namespace std {
   using std::messages_base;
   using std::messages_byname;
 
-  #if _LIBCPP_STD_VER < 26 || defined(_LIBCPP_ENABLE_CXX26_REMOVED_WSTRING_CONVERT)
+#  if _LIBCPP_STD_VER < 26 || defined(_LIBCPP_ENABLE_CXX26_REMOVED_WSTRING_CONVERT)
 
   // [depr.conversions.buffer]
   using std::wbuffer_convert;
 
-  #endif // _LIBCPP_STD_VER < 26 || defined(_LIBCPP_ENABLE_CXX26_REMOVED_WSTRING_CONVERT)
+#  endif // _LIBCPP_STD_VER < 26 || defined(_LIBCPP_ENABLE_CXX26_REMOVED_WSTRING_CONVERT)
 
   // [depr.conversions.string]
   using std::wstring_convert;

``````````

</details>


https://github.com/llvm/llvm-project/pull/87100


More information about the libcxx-commits mailing list