[libc++][ranges][NFC] Format a couple of elements_view tests - #210687
Merged
Zingam merged 1 commit intoJul 20, 2026
Conversation
|
@llvm/pr-subscribers-libcxx Author: Hristo Hristov (H-G-Hristov) ChangesAs a pre-requisite for #193891 Full diff: https://github.com/llvm/llvm-project/pull/210687.diff 2 Files Affected:
diff --git a/libcxx/test/std/ranges/range.adaptors/range.elements/iterator/base.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.elements/iterator/base.pass.cpp
index 79c4e1f418372..a77e98f845a06 100644
--- a/libcxx/test/std/ranges/range.adaptors/range.elements/iterator/base.pass.cpp
+++ b/libcxx/test/std/ranges/range.adaptors/range.elements/iterator/base.pass.cpp
@@ -22,10 +22,9 @@
// Test Noexcept
template <class T>
-concept IsBaseNoexcept =
- requires {
- { std::declval<T>().base() } noexcept;
- };
+concept IsBaseNoexcept = requires {
+ { std::declval<T>().base() } noexcept;
+};
using BaseView = std::ranges::subrange<std::tuple<int>*>;
using ElementsIter = std::ranges::iterator_t<std::ranges::elements_view<BaseView, 0>>;
diff --git a/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/ctor.convert.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/ctor.convert.pass.cpp
index 4ff65be645220..96019b74a2d02 100644
--- a/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/ctor.convert.pass.cpp
+++ b/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/ctor.convert.pass.cpp
@@ -60,9 +60,9 @@ static_assert(!std::is_constructible_v<std::ranges::sentinel_t<std::ranges::elem
std::ranges::sentinel_t<const std::ranges::elements_view<Range, 0>>>);
// !convertible_to<sentinel_t<V>, sentinel_t<Base>>
-static_assert(!std::is_constructible_v<
- std::ranges::sentinel_t<const std::ranges::elements_view<NonConvertConstSentRange, 0>>,
- std::ranges::sentinel_t<std::ranges::elements_view<NonConvertConstSentRange, 0>>>);
+static_assert(
+ !std::is_constructible_v< std::ranges::sentinel_t<const std::ranges::elements_view<NonConvertConstSentRange, 0>>,
+ std::ranges::sentinel_t<std::ranges::elements_view<NonConvertConstSentRange, 0>>>);
constexpr bool test() {
// base is init correctly
|
As a pre-requisite for llvm#193891
H-G-Hristov
force-pushed
the
hgh/libcxx/elements_view-tests-format
branch
from
July 20, 2026 11:18
194eff9 to
67da176
Compare
frederick-vs-ja
approved these changes
Jul 20, 2026
elements_view testselements_view tests
midhuncodes7
pushed a commit
to midhuncodes7/llvm-project
that referenced
this pull request
Jul 28, 2026
…210687) As a pre-requisite for llvm#193891
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As a pre-requisite for #193891