[libcxx-commits] [libcxx] [libc++] Fix {std, ranges}::equal for vector<bool> with small storage types (PR #130394)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 7 20:33:06 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 942fb038910036965ffe56cc53fd882eddbc6cba 3395d8c7d932800b27a32a0e55c8f8a035712346 --extensions ,h,cpp -- libcxx/include/__algorithm/equal.h libcxx/include/__bit_reference libcxx/include/__fwd/bit_reference.h libcxx/include/__vector/comparison.h libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/ranges.equal.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp
index e80269d384..39b0b1cdef 100644
--- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp
@@ -283,9 +283,9 @@ struct TestTypes {
int main(int, char**) {
test();
- #if TEST_STD_VER >= 20
- static_assert(test());
- #endif
+#if TEST_STD_VER >= 20
+ static_assert(test());
+#endif
types::for_each(types::integer_types(), TestTypes());
types::for_each(types::as_pointers<types::cv_qualified_versions<int> >(),
``````````
</details>
https://github.com/llvm/llvm-project/pull/130394
More information about the libcxx-commits
mailing list