[libcxx-commits] [libcxx] [libc++][syncbuf] Implements LWG3253. (PR #99778)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 20 12:24:48 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 c59ee7ec627533e00f654d052ade51c9daf7e722 ebc6910db6a12e90c2a50b129fc855362b56bfea --extensions  -- libcxx/include/syncstream
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/syncstream b/libcxx/include/syncstream
index a0617f4acf..fea4c66b8e 100644
--- a/libcxx/include/syncstream
+++ b/libcxx/include/syncstream
@@ -255,11 +255,9 @@ public:
 
   // [syncstream.syncbuf.cons], construction and destruction
 
-  _LIBCPP_HIDE_FROM_ABI basic_syncbuf()
-      : basic_syncbuf(nullptr) {}
+  _LIBCPP_HIDE_FROM_ABI basic_syncbuf() : basic_syncbuf(nullptr) {}
 
-  _LIBCPP_HIDE_FROM_ABI explicit basic_syncbuf(streambuf_type* __obuf)
-      : basic_syncbuf(__obuf, _Allocator()) {}
+  _LIBCPP_HIDE_FROM_ABI explicit basic_syncbuf(streambuf_type* __obuf) : basic_syncbuf(__obuf, _Allocator()) {}
 
   _LIBCPP_HIDE_FROM_ABI basic_syncbuf(streambuf_type* __obuf, _Allocator const& __alloc)
       : __wrapped_(__obuf), __str_(__alloc) {

``````````

</details>


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


More information about the libcxx-commits mailing list