[libcxx-commits] [libcxx] [libc++] Remove _LIBCPP_SHORT_WCHAR (PR #207562)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 5 01:01:47 PDT 2026
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 origin/main HEAD --extensions ,h,cpp -- libcxx/include/__config libcxx/include/__cxx03/__config libcxx/include/print libcxx/src/locale.cpp libcxx/test/support/test_macros.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp
index 51548f96c..8393faea3 100644
--- a/libcxx/src/locale.cpp
+++ b/libcxx/src/locale.cpp
@@ -2915,7 +2915,7 @@ int codecvt<char32_t, char8_t, mbstate_t>::do_max_length() const noexcept { retu
#if _LIBCPP_HAS_WIDE_CHARACTERS
constexpr bool is_short_wchar = sizeof(wchar_t) == sizeof(uint16_t);
-using underlying_wchar_t = conditional_t<is_short_wchar, uint16_t, uint32_t>;
+using underlying_wchar_t = conditional_t<is_short_wchar, uint16_t, uint32_t>;
static_assert(sizeof(underlying_wchar_t) == sizeof(wchar_t));
template <auto callable>
``````````
</details>
https://github.com/llvm/llvm-project/pull/207562
More information about the libcxx-commits
mailing list