[libcxx-commits] [libcxx] [libc++][ranges] implement `ranges::elements_of` (PR #91414)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 8 20:51:00 PDT 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 3e7135750cfe41e8b093e19ce5b85ad937e064fd 4c72a3a27463672b1eac3582836851778634ce02 --extensions cpp,,h,inc -- libcxx/include/__ranges/elements_of.h libcxx/test/std/ranges/range.utility/range.elementsof/ctad.compile.pass.cpp libcxx/test/std/ranges/range.utility/range.elementsof/elements_of.pass.cpp libcxx/include/ranges libcxx/modules/std/ranges.inc
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/ranges/range.utility/range.elementsof/elements_of.pass.cpp b/libcxx/test/std/ranges/range.utility/range.elementsof/elements_of.pass.cpp
index 13ce4cbea9..3839238302 100644
--- a/libcxx/test/std/ranges/range.utility/range.elementsof/elements_of.pass.cpp
+++ b/libcxx/test/std/ranges/range.utility/range.elementsof/elements_of.pass.cpp
@@ -48,7 +48,7 @@ constexpr bool test_range() {
   }
   {
     // designated initializer
-  
+
     // AppleClang 15 hasn't implemented P0960R3, so `std::ranges::elements_of` requires a
     // user-defined constructor, making it non-aggregate and therefore incompatible with designated
     // initializers.

``````````

</details>


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


More information about the libcxx-commits mailing list