[libcxx-commits] [libcxx] [libc++] Avoid materializing input ranges prepended to deque (PR #199969)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 4 01:25:32 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 ,h,cpp -- libcxx/test/libcxx/containers/sequences/deque/input_range_insert_at_begin.pass.cpp libcxx/include/deque libcxx/test/benchmarks/containers/sequence/sequence_container_benchmarks.h libcxx/test/std/containers/sequences/deque/deque.modifiers/prepend_range.pass.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/containers/sequences/deque/deque.modifiers/prepend_range.pass.cpp b/libcxx/test/std/containers/sequences/deque/deque.modifiers/prepend_range.pass.cpp
index cfd5135ba..215868711 100644
--- a/libcxx/test/std/containers/sequences/deque/deque.modifiers/prepend_range.pass.cpp
+++ b/libcxx/test/std/containers/sequences/deque/deque.modifiers/prepend_range.pass.cpp
@@ -54,7 +54,7 @@ void test_input_range_strong_exception_safety() {
c.pop_front();
std::deque<T> expected = c;
- T input[] = {T(0), T(1), T(2), T(3)};
+ T input[] = {T(0), T(1), T(2), T(3)};
using Iter = cpp20_input_iterator<T*>;
auto in = std::ranges::subrange(Iter(input), sentinel_wrapper<Iter>(Iter(input + 4)));
``````````
</details>
https://github.com/llvm/llvm-project/pull/199969
More information about the libcxx-commits
mailing list