[libcxx-commits] [libcxx] [libc++][format] Fixes formatting code units as integers. (PR #73396)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Nov 25 08:00:16 PST 2023
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 7c44167daa7529d0a1352746e17c9aba6a4ed8ae bde72ecf152059e454f82f9c4c1a5d846d3f5a53 -- libcxx/test/std/utilities/format/format.formatter/format.formatter.spec/formatter.char.fsigned-char.pass.cpp libcxx/test/std/utilities/format/format.formatter/format.formatter.spec/formatter.char.funsigned-char.pass.cpp libcxx/include/__format/format_arg_store.h libcxx/include/__format/formatter_char.h libcxx/include/version libcxx/test/std/language.support/support.limits/support.limits.general/.version.compile.pass.cpp libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__format/formatter_char.h b/libcxx/include/__format/formatter_char.h
index bc3962c876..3358d42225 100644
--- a/libcxx/include/__format/formatter_char.h
+++ b/libcxx/include/__format/formatter_char.h
@@ -63,7 +63,8 @@ public:
template <class _FormatContext>
_LIBCPP_HIDE_FROM_ABI typename _FormatContext::iterator format(char __value, _FormatContext& __ctx) const
- requires(same_as<_CharT, wchar_t>) {
+ requires(same_as<_CharT, wchar_t>)
+ {
return format(static_cast<wchar_t>(static_cast<unsigned char>(__value)), __ctx);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/73396
More information about the libcxx-commits
mailing list