[libcxx-commits] [libcxx] Libcpp has c8 rtomb mbrtoc8 clang experimental (PR #174378)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 5 02:03:25 PST 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 ,cpp -- libcxx/test/std/depr/depr.c.headers/uchar_h_char8_t.compile.pass.cpp libcxx/test/std/strings/c.strings/cuchar_char8_t.compile.pass.cpp libcxx/include/__config libcxx/include/cuchar libcxx/test/std/depr/depr.c.headers/uchar_h.compile.pass.cpp libcxx/test/std/strings/c.strings/cuchar.compile.pass.cpp --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/include/cuchar b/libcxx/include/cuchar
index 419248e58..8385a48d4 100644
--- a/libcxx/include/cuchar
+++ b/libcxx/include/cuchar
@@ -75,10 +75,10 @@ using ::c32rtomb _LIBCPP_USING_IF_EXISTS;
_LIBCPP_END_NAMESPACE_STD
-#if _LIBCPP_HAS_C8RTOMB_MBRTOC8
+# if _LIBCPP_HAS_C8RTOMB_MBRTOC8
using ::mbrtoc8 _LIBCPP_USING_IF_EXISTS;
using ::c8rtomb _LIBCPP_USING_IF_EXISTS;
-#endif
+# endif
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
``````````
</details>
https://github.com/llvm/llvm-project/pull/174378
More information about the libcxx-commits
mailing list