[libcxx-commits] [libcxx] [libc++] std::cmp_less and other integer comparison functions could be improved (PR #151332)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Sep 6 22:17:24 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/test/benchmarks/utility/cmp.bench.cpp libcxx/include/__utility/cmp.h
``````````

: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/benchmarks/utility/cmp.bench.cpp b/libcxx/test/benchmarks/utility/cmp.bench.cpp
index acfdf198e..954ab72e3 100644
--- a/libcxx/test/benchmarks/utility/cmp.bench.cpp
+++ b/libcxx/test/benchmarks/utility/cmp.bench.cpp
@@ -62,7 +62,7 @@ using TestType =
                 long long,
                 unsigned long long
 #ifndef TEST_HAS_NO_INT128
-				,
+                ,
                 __int128_t,
                 __uint128_t
 #endif

``````````

</details>


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


More information about the libcxx-commits mailing list