[libcxx-commits] [libcxx] [libc++][pstl] std_thread scheduler (PR #212121)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 26 08:42:07 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 cpp,h -- libcxx/src/pstl/std_thread.cpp libcxx/test/libcxx/algorithms/pstl.std_thread.apply.pass.cpp libcxx/include/__pstl/backends/std_thread.h --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/include/__pstl/backends/std_thread.h b/libcxx/include/__pstl/backends/std_thread.h
index 66b8a5767..c99c79731 100644
--- a/libcxx/include/__pstl/backends/std_thread.h
+++ b/libcxx/include/__pstl/backends/std_thread.h
@@ -112,7 +112,8 @@ struct __cpu_traits<__std_thread_backend_tag> {
template <class _RandomAccessIterator1, class _RandomAccessIterator2, class _RandomAccessIteratorOut>
struct __merge_range {
- _LIBCPP_HIDE_FROM_ABI __merge_range(_RandomAccessIterator1 __mid1, _RandomAccessIterator2 __mid2, _RandomAccessIteratorOut __result)
+ _LIBCPP_HIDE_FROM_ABI
+ __merge_range(_RandomAccessIterator1 __mid1, _RandomAccessIterator2 __mid2, _RandomAccessIteratorOut __result)
: __mid1_(__mid1), __mid2_(__mid2), __result_(__result) {}
_RandomAccessIterator1 __mid1_;
``````````
</details>
https://github.com/llvm/llvm-project/pull/212121
More information about the libcxx-commits
mailing list