[libcxx-commits] [libcxx] [libc++][RFC] Rewrite CPOs with resolver functions (PR #209104)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 13 01:09:24 PDT 2026
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 cpp,h -- libcxx/include/__utility/cpo.h libcxx/include/__ranges/access.h libcxx/include/__ranges/data.h libcxx/test/std/ranges/range.access/begin.verify.cpp libcxx/test/std/ranges/range.access/end.verify.cpp --diff_from_common_commit
``````````
: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/ranges/range.access/begin.verify.cpp b/libcxx/test/std/ranges/range.access/begin.verify.cpp
index df6fce040..71d59aa37 100644
--- a/libcxx/test/std/ranges/range.access/begin.verify.cpp
+++ b/libcxx/test/std/ranges/range.access/begin.verify.cpp
@@ -20,5 +20,6 @@ static_assert(!std::ranges::enable_borrowed_range<NonBorrowedRange>);
// Verify that if the expression is an rvalue and `enable_borrowed_range` is false, `ranges::begin` is ill-formed.
void test() {
- std::ranges::begin(NonBorrowedRange()); // expected-error {{no matching function for call to object of type 'const __begin::__fn'}}
+ std::ranges::begin(
+ NonBorrowedRange()); // expected-error {{no matching function for call to object of type 'const __begin::__fn'}}
}
diff --git a/libcxx/test/std/ranges/range.access/end.verify.cpp b/libcxx/test/std/ranges/range.access/end.verify.cpp
index 30cbd8524..56c73c68c 100644
--- a/libcxx/test/std/ranges/range.access/end.verify.cpp
+++ b/libcxx/test/std/ranges/range.access/end.verify.cpp
@@ -20,5 +20,6 @@ static_assert(!std::ranges::enable_borrowed_range<NonBorrowedRange>);
// Verify that if the expression is an rvalue and `enable_borrowed_range` is false, `ranges::end` is ill-formed.
void test() {
- std::ranges::end(NonBorrowedRange()); // expected-error {{no matching function for call to object of type 'const __end::__fn'}}
+ std::ranges::end(
+ NonBorrowedRange()); // expected-error {{no matching function for call to object of type 'const __end::__fn'}}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/209104
More information about the libcxx-commits
mailing list