Skip to content

Commit 6ec642a

Browse files
committed
style: apply clang-format to all library, example, and test files
1 parent af1fe47 commit 6ec642a

49 files changed

Lines changed: 179 additions & 218 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

libs/core/algorithms/include/hpx/parallel/algorithms/detail/mismatch.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ namespace hpx::parallel::detail {
121121
HPX_CXX_CORE_EXPORT template <typename ExPolicy, typename Iter1,
122122
typename Sent1, typename Iter2, typename Sent2, typename F,
123123
typename Proj1, typename Proj2>
124-
HPX_HOST_DEVICE HPX_FORCEINLINE util::in_in_result<Iter1, Iter2>
125-
sequential_mismatch_binary(Iter1 first1, Sent1 last1, Iter2 first2,
126-
Sent2 last2, F&& f, Proj1&& proj1, Proj2&& proj2)
124+
HPX_HOST_DEVICE HPX_FORCEINLINE
125+
util::in_in_result<Iter1, Iter2> sequential_mismatch_binary(
126+
Iter1 first1, Sent1 last1, Iter2 first2, Sent2 last2, F&& f,
127+
Proj1&& proj1, Proj2&& proj2)
127128
{
128129
return sequential_mismatch_binary_t<ExPolicy>{}(first1, last1, first2,
129130
last2, HPX_FORWARD(F, f), HPX_FORWARD(Proj1, proj1),

libs/core/algorithms/include/hpx/parallel/algorithms/exclusive_scan.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,9 @@ namespace hpx {
496496
)
497497
// clang-format on
498498
friend typename parallel::util::detail::algorithm_result<ExPolicy,
499-
FwdIter2>::type
500-
tag_fallback_invoke(hpx::exclusive_scan_t, ExPolicy&& policy,
501-
FwdIter1 first, FwdIter1 last, FwdIter2 dest, T init)
499+
FwdIter2>::type tag_fallback_invoke(hpx::exclusive_scan_t,
500+
ExPolicy&& policy, FwdIter1 first, FwdIter1 last, FwdIter2 dest,
501+
T init)
502502
{
503503
static_assert(std::forward_iterator<FwdIter1>,
504504
"Requires at least forward iterator.");
@@ -558,9 +558,9 @@ namespace hpx {
558558
)
559559
// clang-format on
560560
friend typename parallel::util::detail::algorithm_result<ExPolicy,
561-
FwdIter2>::type
562-
tag_fallback_invoke(hpx::exclusive_scan_t, ExPolicy&& policy,
563-
FwdIter1 first, FwdIter1 last, FwdIter2 dest, T init, Op op)
561+
FwdIter2>::type tag_fallback_invoke(hpx::exclusive_scan_t,
562+
ExPolicy&& policy, FwdIter1 first, FwdIter1 last, FwdIter2 dest,
563+
T init, Op op)
564564
{
565565
static_assert(std::forward_iterator<FwdIter1>,
566566
"Requires at least forward iterator.");

libs/core/algorithms/include/hpx/parallel/algorithms/remove_copy.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,9 @@ namespace hpx {
445445
)
446446
// clang-format on
447447
friend typename parallel::util::detail::algorithm_result<ExPolicy,
448-
FwdIter2>::type
449-
tag_fallback_invoke(hpx::remove_copy_if_t, ExPolicy&& policy,
450-
FwdIter1 first, FwdIter1 last, FwdIter2 dest, Pred pred)
448+
FwdIter2>::type tag_fallback_invoke(hpx::remove_copy_if_t,
449+
ExPolicy&& policy, FwdIter1 first, FwdIter1 last, FwdIter2 dest,
450+
Pred pred)
451451
{
452452
static_assert(std::forward_iterator<FwdIter1>,
453453
"Required at least forward iterator.");
@@ -504,9 +504,9 @@ namespace hpx {
504504
)
505505
// clang-format on
506506
friend typename parallel::util::detail::algorithm_result<ExPolicy,
507-
FwdIter2>::type
508-
tag_fallback_invoke(hpx::remove_copy_t, ExPolicy&& policy,
509-
FwdIter1 first, FwdIter1 last, FwdIter2 dest, T const& value)
507+
FwdIter2>::type tag_fallback_invoke(hpx::remove_copy_t,
508+
ExPolicy&& policy, FwdIter1 first, FwdIter1 last, FwdIter2 dest,
509+
T const& value)
510510
{
511511
static_assert(std::forward_iterator<FwdIter1>,
512512
"Required at least forward iterator.");

libs/core/algorithms/include/hpx/parallel/algorithms/search.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,9 @@ namespace hpx {
452452
typename std::iterator_traits<FwdIter>::value_type, T>)
453453
// clang-format on
454454
friend typename parallel::util::detail::algorithm_result<ExPolicy,
455-
FwdIter>::type
456-
tag_fallback_invoke(hpx::search_n_t, ExPolicy&& policy, FwdIter first,
457-
FwdIter last, Size count, T const& value, Pred pred = Pred(),
458-
Proj proj = Proj())
455+
FwdIter>::type tag_fallback_invoke(hpx::search_n_t,
456+
ExPolicy&& policy, FwdIter first, FwdIter last, Size count,
457+
T const& value, Pred pred = Pred(), Proj proj = Proj())
459458
{
460459
return hpx::parallel::detail::search_n<FwdIter, FwdIter>().call(
461460
HPX_FORWARD(ExPolicy, policy), first, last, count, value,

libs/core/algorithms/include/hpx/parallel/algorithms/set_difference.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ namespace hpx {
343343
)
344344
// clang-format on
345345
friend hpx::parallel::util::detail::algorithm_result_t<ExPolicy,
346-
FwdIter3>
347-
tag_fallback_invoke(set_difference_t, ExPolicy&& policy,
346+
FwdIter3> tag_fallback_invoke(set_difference_t, ExPolicy&& policy,
348347
FwdIter1 first1, FwdIter1 last1, FwdIter2 first2, FwdIter2 last2,
349348
FwdIter3 dest, Pred op = Pred())
350349
{

libs/core/algorithms/include/hpx/parallel/algorithms/set_intersection.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,7 @@ namespace hpx {
326326
)
327327
// clang-format on
328328
friend hpx::parallel::util::detail::algorithm_result_t<ExPolicy,
329-
FwdIter3>
330-
tag_fallback_invoke(set_intersection_t, ExPolicy&& policy,
329+
FwdIter3> tag_fallback_invoke(set_intersection_t, ExPolicy&& policy,
331330
FwdIter1 first1, FwdIter1 last1, FwdIter2 first2, FwdIter2 last2,
332331
FwdIter3 dest, Pred op = Pred())
333332
{

libs/core/algorithms/include/hpx/parallel/algorithms/set_symmetric_difference.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,9 @@ namespace hpx {
362362
)
363363
// clang-format on
364364
friend hpx::parallel::util::detail::algorithm_result_t<ExPolicy,
365-
FwdIter3>
366-
tag_fallback_invoke(set_symmetric_difference_t, ExPolicy&& policy,
367-
FwdIter1 first1, FwdIter1 last1, FwdIter2 first2, FwdIter2 last2,
368-
FwdIter3 dest, Pred op = Pred())
365+
FwdIter3> tag_fallback_invoke(set_symmetric_difference_t,
366+
ExPolicy&& policy, FwdIter1 first1, FwdIter1 last1, FwdIter2 first2,
367+
FwdIter2 last2, FwdIter3 dest, Pred op = Pred())
369368
{
370369
static_assert(std::forward_iterator<FwdIter1>,
371370
"Requires at least forward iterator.");

libs/core/algorithms/include/hpx/parallel/algorithms/set_union.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,9 @@ namespace hpx {
349349
)
350350
// clang-format on
351351
friend hpx::parallel::util::detail::algorithm_result_t<ExPolicy,
352-
FwdIter3>
353-
tag_fallback_invoke(set_union_t, ExPolicy&& policy, FwdIter1 first1,
354-
FwdIter1 last1, FwdIter2 first2, FwdIter2 last2, FwdIter3 dest,
355-
Pred op = Pred())
352+
FwdIter3> tag_fallback_invoke(set_union_t, ExPolicy&& policy,
353+
FwdIter1 first1, FwdIter1 last1, FwdIter2 first2, FwdIter2 last2,
354+
FwdIter3 dest, Pred op = Pred())
356355
{
357356
static_assert(std::forward_iterator<FwdIter1>,
358357
"Requires at least forward iterator.");

libs/core/algorithms/include/hpx/parallel/algorithms/shift_left.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,8 @@ namespace hpx {
277277
)
278278
// clang-format on
279279
friend typename hpx::parallel::util::detail::algorithm_result<ExPolicy,
280-
FwdIter>::type
281-
tag_fallback_invoke(shift_left_t, ExPolicy&& policy, FwdIter first,
282-
FwdIter last, Size n)
280+
FwdIter>::type tag_fallback_invoke(shift_left_t, ExPolicy&& policy,
281+
FwdIter first, FwdIter last, Size n)
283282
{
284283
static_assert(std::forward_iterator<FwdIter>,
285284
"Requires at least forward iterator.");

libs/core/algorithms/include/hpx/parallel/algorithms/shift_right.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,8 @@ namespace hpx {
322322
)
323323
// clang-format on
324324
friend typename hpx::parallel::util::detail::algorithm_result<ExPolicy,
325-
FwdIter>::type
326-
tag_fallback_invoke(shift_right_t, ExPolicy&& policy, FwdIter first,
327-
FwdIter last, Size n)
325+
FwdIter>::type tag_fallback_invoke(shift_right_t, ExPolicy&& policy,
326+
FwdIter first, FwdIter last, Size n)
328327
{
329328
static_assert(std::forward_iterator<FwdIter>,
330329
"Requires at least forward iterator.");

0 commit comments

Comments
 (0)