[libcxx-commits] [libcxx] [libc++][test] Augment ranges::{fill, fill_n, find} with missing tests (PR #121209)

Peng Liu via libcxx-commits libcxx-commits at lists.llvm.org
Sat Dec 28 05:24:05 PST 2024


================
@@ -251,7 +262,7 @@ constexpr bool test() {
       assert(ret == 1);
     }
     {
-      int a[] = {5, 5, 4, 3, 2, 1};
+      int a[]                                      = {5, 5, 4, 3, 2, 1};
       auto range = std::ranges::subrange(DiffTypeIterator(a), DiffTypeIterator(a + 6));
       std::same_as<signed char> decltype(auto) ret = std::ranges::count(range, 4);
----------------
winner245 wrote:

```suggestion
      int a[]                                      = {5, 5, 4, 3, 2, 1};
      auto range = std::ranges::subrange(DiffTypeIterator(a), DiffTypeIterator(a + 6));
      std::same_as<signed char> decltype(auto) ret = std::ranges::count(range, 4);
```
This appears to be a bug in clang-format, which requires aligning `=` signs on two non-adjacent lines.

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


More information about the libcxx-commits mailing list