[libcxx-commits] [libcxx] [libcxx] adds `__split_buffer::__swap_layouts` (PR #180102)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Feb 5 18:18:36 PST 2026


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 origin/main HEAD --extensions ,h -- libcxx/include/__split_buffer libcxx/include/__vector/vector.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libcxx/include/__vector/vector.h b/libcxx/include/__vector/vector.h
index 9c83274e0..3e127c72d 100644
--- a/libcxx/include/__vector/vector.h
+++ b/libcxx/include/__vector/vector.h
@@ -822,8 +822,8 @@ private:
     return __p;
   }
 
-  _LIBCPP_NODEBUG _LIBCPP_ALWAYS_INLINE _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI
-  void __swap_layouts(__split_buffer<_Tp, allocator_type>& __sb) {
+  _LIBCPP_NODEBUG _LIBCPP_ALWAYS_INLINE _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void
+  __swap_layouts(__split_buffer<_Tp, allocator_type>& __sb) {
     __sb.__swap_layouts(__begin_, __end_, __cap_);
   }
 };

``````````

</details>


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


More information about the libcxx-commits mailing list