[libcxx-commits] [libcxx] [libc++] P3612R1: Harmonize proxy-reference operations (PR #173710)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Dec 26 23:05:11 PST 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 origin/main HEAD --extensions ,h,cpp -- libcxx/test/std/containers/sequences/vector.bool/reference.swap.deprecated.verify.cpp libcxx/test/std/utilities/template.bitset/bitset.members/reference.swap.pass.cpp libcxx/include/__bit_reference libcxx/include/__vector/vector_bool.h libcxx/include/bitset libcxx/include/vector libcxx/test/std/containers/sequences/vector.bool/reference.swap.pass.cpp libcxx/test/std/containers/sequences/vector.bool/swap.pass.cpp libcxx/test/std/utilities/template.bitset/bitset.members/index.pass.cpp --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_bool.h b/libcxx/include/__vector/vector_bool.h
index a7690ce0c..0483db569 100644
--- a/libcxx/include/__vector/vector_bool.h
+++ b/libcxx/include/__vector/vector_bool.h
@@ -398,8 +398,8 @@ public:
#else
_NOEXCEPT_(!__alloc_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<allocator_type>);
#endif
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_DEPRECATED_IN_CXX26 _LIBCPP_CONSTEXPR_SINCE_CXX20 static void
- swap(reference __x, reference __y) _NOEXCEPT {
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_DEPRECATED_IN_CXX26
+ _LIBCPP_CONSTEXPR_SINCE_CXX20 static void swap(reference __x, reference __y) _NOEXCEPT {
bool __t = __x;
__x = __y;
__y = __t;
``````````
</details>
https://github.com/llvm/llvm-project/pull/173710
More information about the libcxx-commits
mailing list