From a4339ea4b5c331cf835937488aa15c6332298df0 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 12 Mar 2026 07:00:18 +0100 Subject: [CHORE] Ran format.sh Signed-off-by: Amlal El Mahrouss --- example/asio_example/example.cpp | 24 +++++++++++++----------- include/ocl/tproc/algos/bfs.inl | 1 - test/rope_test/crope.pred.test.cpp | 2 +- test/rope_test/crope.pred2.test.cpp | 6 +++--- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/example/asio_example/example.cpp b/example/asio_example/example.cpp index 07bc62f..a03cae3 100644 --- a/example/asio_example/example.cpp +++ b/example/asio_example/example.cpp @@ -18,21 +18,23 @@ using namespace boost; int main() { - auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); - auto new_elem = std::make_unique(", and Jumps again"); + auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); + auto new_elem = std::make_unique(", and Jumps again"); auto new_elem_2 = std::make_unique(", and then Jumps down."); - + boost::asio::io_context ioc{1}; auto spawn_strand = boost::asio::make_strand(ioc); - - boost::asio::co_spawn(spawn_strand, [&new_elem, &new_elem_2, &rope]() -> boost::asio::awaitable { - rope.concat(new_elem.get()); - new_elem->concat(new_elem_2.get()); - - co_return; - }, boost::asio::detached); + + boost::asio::co_spawn( + spawn_strand, [&new_elem, &new_elem_2, &rope]() -> boost::asio::awaitable { + rope.concat(new_elem.get()); + new_elem->concat(new_elem_2.get()); + + co_return; + }, + boost::asio::detached); ocl::asio::run<[]() { (void)0; }>(ioc); - + std::cout << rope << std::endl; } diff --git a/include/ocl/tproc/algos/bfs.inl b/include/ocl/tproc/algos/bfs.inl index 2fea2ae..03678a9 100644 --- a/include/ocl/tproc/algos/bfs.inl +++ b/include/ocl/tproc/algos/bfs.inl @@ -3,4 +3,3 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-foss-org/tproc - diff --git a/test/rope_test/crope.pred.test.cpp b/test/rope_test/crope.pred.test.cpp index 5505462..cce52eb 100644 --- a/test/rope_test/crope.pred.test.cpp +++ b/test/rope_test/crope.pred.test.cpp @@ -35,7 +35,7 @@ BOOST_AUTO_TEST_CASE(rope_should_succeed_in_at) BOOST_AUTO_TEST_CASE(rope_should_succeed_in_concat) { - auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); + auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); std::unique_ptr new_elem = std::make_unique(", and Jumps again."); rope.concat(new_elem.get()); diff --git a/test/rope_test/crope.pred2.test.cpp b/test/rope_test/crope.pred2.test.cpp index 9b9b333..7587b86 100644 --- a/test/rope_test/crope.pred2.test.cpp +++ b/test/rope_test/crope.pred2.test.cpp @@ -19,11 +19,11 @@ using namespace boost; BOOST_AUTO_TEST_CASE(rope_should_succeed_in_concat) { - auto rope = tproc::crope("Exact"); + auto rope = tproc::crope("Exact"); auto next_rope = std::make_unique(" Sentence"); - auto rope_2 = rope.concat(next_rope.get()); + auto rope_2 = rope.concat(next_rope.get()); std::cout << "Result: " << rope << std::endl; - BOOST_TEST(rope.to_string() == "Exact Sentence"); + BOOST_TEST(rope.to_string() == "Exact Sentence"); } -- cgit v1.2.3