summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-12 07:00:18 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-12 07:00:18 +0100
commita4339ea4b5c331cf835937488aa15c6332298df0 (patch)
tree146c4f2e5d3632e39d66ab4ca9264fa1d9fb47e9
parentdeca9f5be38700763023d565558c0e3c4799b2e2 (diff)
[CHORE] Ran format.shHEADdevelop
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--example/asio_example/example.cpp24
-rw-r--r--include/ocl/tproc/algos/bfs.inl1
-rw-r--r--test/rope_test/crope.pred.test.cpp2
-rw-r--r--test/rope_test/crope.pred2.test.cpp6
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<tproc::crope>(", and Jumps again");
+ auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog");
+ auto new_elem = std::make_unique<tproc::crope>(", and Jumps again");
auto new_elem_2 = std::make_unique<tproc::crope>(", 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<void> {
- 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<void> {
+ 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<tproc::crope> new_elem = std::make_unique<tproc::crope>(", 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<tproc::crope>(" 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");
}