[libcxx-commits] [libcxx] [libc++] Granularize <vector> (PR #99705)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 19 13:55: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 0f0cfcff2ca65e295cd84d3eda6f8e93b76cb3a8 4cce73ee1f160a0876200b194f5d15b9c42c3d34 --extensions ,h -- libcxx/include/__vector/comparison.h libcxx/include/__vector/erase.h libcxx/include/__vector/formatter.h libcxx/include/__vector/pmr.h libcxx/include/__vector/swap.h libcxx/include/__vector/vector.h libcxx/include/__vector/vector_bool.h libcxx/include/__chrono/tzdb.h libcxx/include/__functional/boyer_moore_searcher.h libcxx/include/__fwd/vector.h libcxx/include/__random/discrete_distribution.h libcxx/include/__random/piecewise_constant_distribution.h libcxx/include/__random/piecewise_linear_distribution.h libcxx/include/__random/seed_seq.h libcxx/include/chrono libcxx/include/functional libcxx/include/vector
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__vector/comparison.h b/libcxx/include/__vector/comparison.h
index 083785ead9..27178e41ec 100644
--- a/libcxx/include/__vector/comparison.h
+++ b/libcxx/include/__vector/comparison.h
@@ -61,8 +61,7 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator<=(const vector<_Tp, _Allocator>& __x,
 template <class _Tp, class _Allocator>
 _LIBCPP_HIDE_FROM_ABI constexpr __synth_three_way_result<_Tp>
 operator<=>(const vector<_Tp, _Allocator>& __x, const vector<_Tp, _Allocator>& __y) {
-  return std::lexicographical_compare_three_way(
-      __x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
+  return std::lexicographical_compare_three_way(__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
 }
 
 #endif // _LIBCPP_STD_VER <= 17

``````````

</details>


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


More information about the libcxx-commits mailing list