[libcxx-commits] [libcxx] [libc++][NFC] Create and use test-defined simple_view concept (PR #77334)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 8 18:08:40 PST 2024


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 b4ee7d6119f97931d9f38ac8c6bc7409eed87aab 6f0225364ef584be8069087968e3b9cacade786b -- libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp libcxx/test/std/ranges/range.adaptors/range.drop/begin.pass.cpp libcxx/test/std/ranges/range.adaptors/range.drop/types.h libcxx/test/std/ranges/range.adaptors/range.elements/types.h libcxx/test/std/ranges/range.adaptors/range.join/range.join.sentinel/ctor.other.pass.cpp libcxx/test/std/ranges/range.adaptors/range.join/types.h libcxx/test/std/ranges/range.adaptors/range.lazy.split/begin.pass.cpp libcxx/test/std/ranges/range.adaptors/range.lazy.split/end.pass.cpp libcxx/test/std/ranges/range.adaptors/range.take.while/types.h libcxx/test/std/ranges/range.adaptors/range.take/begin.pass.cpp libcxx/test/std/ranges/range.adaptors/range.zip/sentinel/ctor.other.pass.cpp libcxx/test/std/ranges/range.adaptors/range.zip/sentinel/eq.pass.cpp libcxx/test/std/ranges/range.adaptors/range.zip/sentinel/minus.pass.cpp libcxx/test/std/ranges/range.adaptors/range.zip/types.h libcxx/test/support/test_range.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp b/libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp
index 2f117c387c..a58f74c3b5 100644
--- a/libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp
+++ b/libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp
@@ -50,8 +50,8 @@ static_assert(!std::ranges::__simple_view<NoConstView>);
 static_assert( std::ranges::__simple_view<DifferentSentinel>);
 static_assert(!std::ranges::__simple_view<WrongConstSentinel>);
 
-static_assert( simple_view<SimpleView>);
+static_assert(simple_view<SimpleView>);
 static_assert(!simple_view<WrongConstView>);
 static_assert(!simple_view<NoConstView>);
-static_assert( simple_view<DifferentSentinel>);
+static_assert(simple_view<DifferentSentinel>);
 static_assert(!simple_view<WrongConstSentinel>);

``````````

</details>


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


More information about the libcxx-commits mailing list