[libcxx-commits] [libcxx] [libc++] Granularize <ostream> (PR #85537)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Apr 13 09:39:43 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 61f1f1300254e91334404f0d22e75e96f0d98a85 5458e31f7d53da6a3ec00986ab184ab2fd236dfe -- libcxx/include/__ostream/basic_ostream.h libcxx/include/__ostream/print.h libcxx/include/istream libcxx/include/ostream libcxx/include/sstream libcxx/include/syncstream libcxx/test/libcxx/input.output/file.streams/fstreams/traits_mismatch.verify.cpp libcxx/test/libcxx/input.output/iostream.format/output.streams/traits_mismatch.verify.cpp libcxx/test/std/input.output/syncstream/syncbuf/helpers.h libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/parse.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__ostream/print.h b/libcxx/include/__ostream/print.h
index bf9882305a..97680cdab6 100644
--- a/libcxx/include/__ostream/print.h
+++ b/libcxx/include/__ostream/print.h
@@ -169,7 +169,9 @@ _LIBCPP_HIDE_FROM_ABI void println(ostream& __os, format_string<_Args...> __fmt,
 }
 
 template <class = void> // TODO PRINT template or availability markup fires too eagerly (http://llvm.org/PR61563).
-_LIBCPP_HIDE_FROM_ABI inline void println(ostream& __os) { std::print(__os, "\n"); }
+_LIBCPP_HIDE_FROM_ABI inline void println(ostream& __os) {
+  std::print(__os, "\n");
+}
 
 #endif // _LIBCPP_STD_VER >= 23
 

``````````

</details>


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


More information about the libcxx-commits mailing list