[libcxx-commits] [libcxx] [libc++][spaceship] Implements X::iterator container requirements. (PR #99343)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 17 08:50:09 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 daab6fc5357b3a7f8b6780134d5cb6130f92329b 635c6ec6721a4233e5085e35b34665a7df392f4f --extensions ,h,cpp -- libcxx/include/__bit_reference libcxx/include/__iterator/wrap_iter.h libcxx/include/deque libcxx/test/std/containers/sequences/array/iterators.pass.cpp libcxx/test/std/containers/sequences/deque/iterators.pass.cpp libcxx/test/std/containers/sequences/vector.bool/iterators.pass.cpp libcxx/test/std/containers/sequences/vector/iterators.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/deque b/libcxx/include/deque
index 1073187a99..945fc7b9cf 100644
--- a/libcxx/include/deque
+++ b/libcxx/include/deque
@@ -396,7 +396,7 @@ public:
_LIBCPP_HIDE_FROM_ABI friend bool operator>=(const __deque_iterator& __x, const __deque_iterator& __y) {
return !(__x < __y);
}
-#else // _LIBCPP_STD_VER <= 17
+#else // _LIBCPP_STD_VER <= 17
_LIBCPP_HIDE_FROM_ABI friend strong_ordering operator<=>(const __deque_iterator& __x, const __deque_iterator& __y) {
if (__x.__m_iter_ < __y.__m_iter_)
return strong_ordering::less;
``````````
</details>
https://github.com/llvm/llvm-project/pull/99343
More information about the libcxx-commits
mailing list