[libcxx-commits] [libcxx] PR: [libc++] Speed-up input_range based operations in vector<bool> (PR #124188)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 23 13:38:27 PST 2025
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 5a9b74d20d5f3b7f92c01d68d28778108dfb1308 8a3f8ee2353305975eda6d94a3890a0d4b4b3ed0 --extensions cpp,h -- libcxx/test/benchmarks/containers/vector_bool_operations.bench.cpp libcxx/include/__vector/vector_bool.h libcxx/test/benchmarks/containers/ContainerBenchmarks.h libcxx/test/benchmarks/containers/vector_operations.bench.cpp libcxx/test/std/containers/from_range_helpers.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/benchmarks/containers/ContainerBenchmarks.h b/libcxx/test/benchmarks/containers/ContainerBenchmarks.h
index 43d685be83..7a3aade348 100644
--- a/libcxx/test/benchmarks/containers/ContainerBenchmarks.h
+++ b/libcxx/test/benchmarks/containers/ContainerBenchmarks.h
@@ -136,7 +136,7 @@ void BM_ConstructFromRange(benchmark::State& st, Container, GenInputs gen) {
template <class Container, class GenInputs>
void BM_ConstructFromInputRange(benchmark::State& st, GenInputs gen) {
- auto in = gen(st.range(0));
+ auto in = gen(st.range(0));
input_only_range rg(std::ranges::begin(in), std::ranges::end(in));
benchmark::DoNotOptimize(&in);
while (st.KeepRunning()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/124188
More information about the libcxx-commits
mailing list