[libcxx-commits] [libcxx] Enable identification of code that relies on std::char_traits<char16_t>::int_type. (PR #89840)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 23 15:34:31 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 5a0942cd7423069e78fdfb9743a13aedfa7bdee0 9b80da1fea9d8feef8e1f22c7d875db1e800738c -- libcxx/include/__string/char_traits.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__string/char_traits.h b/libcxx/include/__string/char_traits.h
index 67e760d44c..b9648348c4 100644
--- a/libcxx/include/__string/char_traits.h
+++ b/libcxx/include/__string/char_traits.h
@@ -331,8 +331,10 @@ char_traits<char8_t>::find(const char_type* __s, size_t __n, const char_type& __
template <>
struct _LIBCPP_TEMPLATE_VIS char_traits<char16_t> {
using char_type = char16_t;
+
private:
using int_type = uint_least16_t;
+
public:
using off_type = streamoff;
using pos_type = u16streampos;
``````````
</details>
https://github.com/llvm/llvm-project/pull/89840
More information about the libcxx-commits
mailing list