[libcxx-commits] [libcxx] [libc++] Specialize __lazy_synth_three_way_comparator for std::greater and friends (PR #157624)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 11 01:39:09 PDT 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/include/__utility/lazy_synth_three_way_comparator.h libcxx/test/std/containers/associative/map/map.ops/find.pass.cpp libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp libcxx/test/std/containers/associative/multiset/find.pass.cpp libcxx/test/std/containers/associative/set/find.pass.cpp
``````````

: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/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp b/libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp
index d4cf1bb82..6843e10f4 100644
--- a/libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp
+++ b/libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp
@@ -72,7 +72,7 @@ int main(int, char**) {
   {
     using Pair = std::pair<const int, int>;
     using Map  = std::multimap<int, int, std::greater<int>>;
-    Pair arr[]  = {
+    Pair arr[] = {
         Pair(5, 1), Pair(5, 2), Pair(5, 3), Pair(7, 1), Pair(7, 2), Pair(7, 3), Pair(9, 1), Pair(9, 2), Pair(9, 3)};
     const Map m(arr, arr + sizeof(arr) / sizeof(arr[0]));
     assert(iter_in_range(std::next(m.begin(), 6), std::next(m.begin(), 9), m.find(5)));

``````````

</details>


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


More information about the libcxx-commits mailing list