Skip to content

Commit eb1a90a

Browse files
committed
[#301] Run clang-format
1 parent 70690ea commit eb1a90a

File tree

10 files changed

+16
-21
lines changed

10 files changed

+16
-21
lines changed

examples/cxx/event_based_communication/src/custom_publisher.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ class CustomPublisher : public iox2::FileDescriptorBased {
6565
case PubSubEvent::SubscriberConnected: {
6666
std::cout << "new subscriber connected - delivering history" << std::endl;
6767
m_publisher.update_connections().expect("");
68-
m_notifier
69-
.notify_with_custom_event_id(iox2::EventId(iox2::bb::into<size_t>(PubSubEvent::SentHistory)))
68+
m_notifier.notify_with_custom_event_id(iox2::EventId(iox2::bb::into<size_t>(PubSubEvent::SentHistory)))
7069
.expect("");
7170
break;
7271
}

examples/cxx/event_based_communication/src/custom_subscriber.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ class CustomSubscriber : public iox2::FileDescriptorBased {
5252
auto notifier = event_service.notifier_builder().create().expect("");
5353
auto subscriber = pubsub_service.subscriber_builder().create().expect("");
5454

55-
notifier
56-
.notify_with_custom_event_id(iox2::EventId(iox2::bb::into<size_t>(PubSubEvent::SubscriberConnected)))
55+
notifier.notify_with_custom_event_id(iox2::EventId(iox2::bb::into<size_t>(PubSubEvent::SubscriberConnected)))
5756
.expect("");
5857

5958
return CustomSubscriber { std::move(subscriber), std::move(notifier), std::move(listener) };
@@ -98,8 +97,7 @@ class CustomSubscriber : public iox2::FileDescriptorBased {
9897
auto receive() -> iox2::legacy::optional<iox2::Sample<iox2::ServiceType::Ipc, TransmissionData, void>> {
9998
auto sample = m_subscriber.receive().expect("");
10099
if (sample.has_value()) {
101-
m_notifier
102-
.notify_with_custom_event_id(iox2::EventId(iox2::bb::into<size_t>(PubSubEvent::ReceivedSample)))
100+
m_notifier.notify_with_custom_event_id(iox2::EventId(iox2::bb::into<size_t>(PubSubEvent::ReceivedSample)))
103101
.expect("");
104102
}
105103

iceoryx2-bb/cxx/include/iox2/legacy/detail/std_chrono_support.inl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ inline legacy::units::Duration
2323
FromTrait<std::chrono::nanoseconds, legacy::units::Duration>::from(const std::chrono::nanoseconds& value) noexcept {
2424
return legacy::units::Duration::fromNanoseconds(value.count());
2525
}
26-
inline legacy::units::Duration FromTrait<std::chrono::microseconds, legacy::units::Duration>::from(
27-
const std::chrono::microseconds& value) noexcept {
26+
inline legacy::units::Duration
27+
FromTrait<std::chrono::microseconds, legacy::units::Duration>::from(const std::chrono::microseconds& value) noexcept {
2828
return legacy::units::Duration::fromMicroseconds(value.count());
2929
}
3030

31-
inline legacy::units::Duration FromTrait<std::chrono::milliseconds, legacy::units::Duration>::from(
32-
const std::chrono::milliseconds& value) noexcept {
31+
inline legacy::units::Duration
32+
FromTrait<std::chrono::milliseconds, legacy::units::Duration>::from(const std::chrono::milliseconds& value) noexcept {
3333
return legacy::units::Duration::fromMilliseconds(value.count());
3434
}
3535

iceoryx2-cxx/include/iox2/client.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ template <ServiceType Service,
162162
inline auto
163163
Client<Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader>::unable_to_deliver_strategy()
164164
const -> UnableToDeliverStrategy {
165-
return iox2::bb::into<UnableToDeliverStrategy>(
166-
static_cast<int>(iox2_client_unable_to_deliver_strategy(&m_handle)));
165+
return iox2::bb::into<UnableToDeliverStrategy>(static_cast<int>(iox2_client_unable_to_deliver_strategy(&m_handle)));
167166
}
168167

169168
template <ServiceType Service,

iceoryx2-cxx/include/iox2/port_factory_publisher.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ PortFactoryPublisher<S, Payload, UserHeader>::create() && -> iox2::legacy::expec
114114
m_max_loaned_samples.and_then(
115115
[&](auto value) -> auto { iox2_port_factory_publisher_builder_set_max_loaned_samples(&m_handle, value); });
116116
m_allocation_strategy.and_then([&](auto value) -> auto {
117-
iox2_port_factory_publisher_builder_set_allocation_strategy(
118-
&m_handle, iox2::bb::into<iox2_allocation_strategy_e>(value));
117+
iox2_port_factory_publisher_builder_set_allocation_strategy(&m_handle,
118+
iox2::bb::into<iox2_allocation_strategy_e>(value));
119119
});
120120

121121
iox2_publisher_h pub_handle {};

iceoryx2-cxx/src/log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// SPDX-License-Identifier: Apache-2.0 OR MIT
1212

1313
#include "iox2/log.hpp"
14-
#include "iox2/internal/iceoryx2.hpp"
1514
#include "iox2/bb/into.hpp"
15+
#include "iox2/internal/iceoryx2.hpp"
1616
#include "iox2/legacy/optional.hpp"
1717

1818
namespace iox2 {

iceoryx2-cxx/src/node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// SPDX-License-Identifier: Apache-2.0 OR MIT
1212

1313
#include "iox2/node.hpp"
14-
#include "iox2/internal/callback_context.hpp"
1514
#include "iox2/bb/into.hpp"
15+
#include "iox2/internal/callback_context.hpp"
1616

1717
namespace iox2 {
1818
template <ServiceType T>

iceoryx2-cxx/src/service.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ auto Service<S>::list(const ConfigView config,
7676
const iox2::legacy::function<CallbackProgression(ServiceDetails<S>)>& callback)
7777
-> iox2::legacy::expected<void, ServiceListError> {
7878
auto mutable_callback = callback;
79-
auto result = iox2_service_list(
80-
iox2::bb::into<iox2_service_type_e>(S), config.m_ptr, list_callback<S>, &mutable_callback);
79+
auto result =
80+
iox2_service_list(iox2::bb::into<iox2_service_type_e>(S), config.m_ptr, list_callback<S>, &mutable_callback);
8181

8282
if (result == IOX2_OK) {
8383
return iox2::legacy::ok();

iceoryx2-cxx/src/waitset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// SPDX-License-Identifier: Apache-2.0 OR MIT
1212

1313
#include "iox2/waitset.hpp"
14-
#include "iox2/internal/callback_context.hpp"
1514
#include "iox2/bb/into.hpp"
15+
#include "iox2/internal/callback_context.hpp"
1616
#include <cstdint>
1717
#include <string>
1818
#include <vector>

iceoryx2-cxx/tests/src/enum_conversion_tests.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ TEST(EnumConversionTest, publish_subscribe_open_or_create_into_c_str) {
202202
ASSERT_GT(strlen(iox2::bb::into<const char*>(Sut::OpenIncompatibleAttributes)), 1U);
203203
ASSERT_GT(strlen(iox2::bb::into<const char*>(Sut::OpenDoesNotSupportRequestedMinBufferSize)), 1U);
204204
ASSERT_GT(strlen(iox2::bb::into<const char*>(Sut::OpenDoesNotSupportRequestedMinHistorySize)), 1U);
205-
ASSERT_GT(strlen(iox2::bb::into<const char*>(Sut::OpenDoesNotSupportRequestedMinSubscriberBorrowedSamples)),
206-
1U);
205+
ASSERT_GT(strlen(iox2::bb::into<const char*>(Sut::OpenDoesNotSupportRequestedMinSubscriberBorrowedSamples)), 1U);
207206
ASSERT_GT(strlen(iox2::bb::into<const char*>(Sut::OpenDoesNotSupportRequestedAmountOfPublishers)), 1U);
208207
ASSERT_GT(strlen(iox2::bb::into<const char*>(Sut::OpenDoesNotSupportRequestedAmountOfSubscribers)), 1U);
209208
ASSERT_GT(strlen(iox2::bb::into<const char*>(Sut::OpenDoesNotSupportRequestedAmountOfNodes)), 1U);

0 commit comments

Comments
 (0)