[libcxx-commits] [libcxx] [libc++][NFC] Simplify __split_buffer a bit (PR #114224)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 30 06:13:52 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 85f3d5ca4994ff70a72f6ad81948bf4721e15ef1 75b53f449a6d6dfa2d293941746077b350007cfe --extensions ,h -- libcxx/include/__split_buffer libcxx/include/__vector/vector.h libcxx/include/deque
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/deque b/libcxx/include/deque
index 37b6184395..4d4a11757f 100644
--- a/libcxx/include/deque
+++ b/libcxx/include/deque
@@ -1230,7 +1230,7 @@ private:
       shrink_to_fit();
     }
     __alloc()        = __c.__alloc();
-    __map_.__alloc_ = __c.__map_.__alloc_;
+    __map_.__alloc_  = __c.__map_.__alloc_;
   }
 
   _LIBCPP_HIDE_FROM_ABI void __copy_assign_alloc(const deque&, false_type) {}

``````````

</details>


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


More information about the libcxx-commits mailing list