[llvm-branch-commits] [libcxx] [libc++][format] Implements P3107R5 in <print>. (PR #130500)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Mar 9 11:11:17 PDT 2025


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 97732a4da20cf57acecee0a14e68cf57749930b2 bfd4e08a6d624437b734af8ee6803c1f528ee7b6 --extensions ,h -- libcxx/include/__format/buffer.h libcxx/include/print
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/print b/libcxx/include/print
index 8eeb2db4ef..f5141c641f 100644
--- a/libcxx/include/print
+++ b/libcxx/include/print
@@ -340,8 +340,8 @@ _LIBCPP_HIDE_FROM_ABI inline void __vprint_nonunicode_buffered(
 }
 
 template <class = void> // TODO PRINT template or availability markup fires too eagerly (http://llvm.org/PR61563).
-_LIBCPP_HIDE_FROM_ABI inline void __vprint_nonunicode_buffered(
-FILE* __stream    , string_view __fmt, format_args __args, bool __write_nl) {
+_LIBCPP_HIDE_FROM_ABI inline void
+__vprint_nonunicode_buffered(FILE* __stream, string_view __fmt, format_args __args, bool __write_nl) {
   _LIBCPP_ASSERT_NON_NULL(__stream, "__stream must be a valid pointer to an output C stream");
   __print::__file_stream_buffer __buffer(__stream);
 
@@ -424,8 +424,8 @@ __vprint_unicode_windows(FILE* __stream, string_view __fmt, format_args __args,
 }
 
 template <class = void> // TODO PRINT template or availability markup fires too eagerly (http://llvm.org/PR61563).
-_LIBCPP_HIDE_FROM_ABI inline void
-__vprint_unicode_buffered_windows(FILE* __stream, string_view __fmt, format_args __args, bool __write_nl, bool __is_terminal) {
+_LIBCPP_HIDE_FROM_ABI inline void __vprint_unicode_buffered_windows(
+    FILE* __stream, string_view __fmt, format_args __args, bool __write_nl, bool __is_terminal) {
   _LIBCPP_ASSERT_NON_NULL(__stream, "__stream must be a valid pointer to an output C stream");
 
   if (!__is_terminal)

``````````

</details>


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


More information about the llvm-branch-commits mailing list