Skip to content

Commit 6bc854f

Browse files
committed
iox-#1755 Run clang-format-18
1 parent d5b0319 commit 6bc854f

30 files changed

+96
-108
lines changed

iceoryx_hoofs/posix/sync/source/signal_watcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void internalSignalHandler(int) noexcept
4343

4444
SignalWatcher::SignalWatcher() noexcept
4545
: m_sigTermGuard(
46-
registerSignalHandler(PosixSignal::TERM, internalSignalHandler).expect("Unable to register Signal::TERM"))
46+
registerSignalHandler(PosixSignal::TERM, internalSignalHandler).expect("Unable to register Signal::TERM"))
4747
, m_sigIntGuard(
4848
registerSignalHandler(PosixSignal::INT, internalSignalHandler).expect("Unable to register Signal::INT"))
4949
{

iceoryx_hoofs/reporting/include/iox/error_reporting/custom/default/error_reporting_impl.hpp

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,12 @@ inline void report(const SourceLocation& location, Kind, const Error& error, con
9090
auto moduleName = toModuleName(error);
9191
auto errorName = toErrorName(error);
9292

93-
IOX_ERROR_INTERNAL_LOG(
94-
location,
95-
[stringifiedCondition](auto& stream) -> auto& {
96-
return detail::logStringifiedCondition(stream, stringifiedCondition);
97-
} << "["
98-
<< errorName << " (code = " << code.value << ")] in module [" << moduleName << " (id = " << module.value
99-
<< ")]");
93+
IOX_ERROR_INTERNAL_LOG(location,
94+
[stringifiedCondition](auto& stream) -> auto& {
95+
return detail::logStringifiedCondition(stream, stringifiedCondition);
96+
} << "["
97+
<< errorName << " (code = " << code.value << ")] in module [" << moduleName
98+
<< " (id = " << module.value << ")]");
10099
auto& h = ErrorHandler::get();
101100
h.onReportError(ErrorDescriptor(location, code, module));
102101
}
@@ -115,13 +114,12 @@ report(const SourceLocation& location, iox::er::FatalKind kind, const Error& err
115114
auto moduleName = toModuleName(error);
116115
auto errorName = toErrorName(error);
117116

118-
IOX_ERROR_INTERNAL_LOG_FATAL(
119-
location,
120-
[stringifiedCondition](auto& stream) -> auto& {
121-
return detail::logStringifiedCondition(stream, stringifiedCondition);
122-
} << "["
123-
<< kind.name << "] [" << errorName << " (code = " << code.value << ")] in module [" << moduleName
124-
<< " (id = " << module.value << ")]");
117+
IOX_ERROR_INTERNAL_LOG_FATAL(location,
118+
[stringifiedCondition](auto& stream) -> auto& {
119+
return detail::logStringifiedCondition(stream, stringifiedCondition);
120+
} << "["
121+
<< kind.name << "] [" << errorName << " (code = " << code.value << ")] in module ["
122+
<< moduleName << " (id = " << module.value << ")]");
125123
auto& h = ErrorHandler::get();
126124
h.onReportError(ErrorDescriptor(location, code, module));
127125
}
@@ -141,21 +139,19 @@ report(const SourceLocation& location, Kind kind, const Error& error, const char
141139
auto module = toModule(error);
142140
if constexpr (std::is_same<NoMessage, Message>::value)
143141
{
144-
IOX_ERROR_INTERNAL_LOG_FATAL(
145-
location,
146-
[stringifiedCondition](auto& stream) -> auto& {
147-
return detail::logStringifiedCondition(stream, stringifiedCondition);
148-
} << "["
149-
<< kind.name << "]");
142+
IOX_ERROR_INTERNAL_LOG_FATAL(location,
143+
[stringifiedCondition](auto& stream) -> auto& {
144+
return detail::logStringifiedCondition(stream, stringifiedCondition);
145+
} << "["
146+
<< kind.name << "]");
150147
}
151148
else
152149
{
153-
IOX_ERROR_INTERNAL_LOG_FATAL(
154-
location,
155-
[stringifiedCondition](auto& stream) -> auto& {
156-
return detail::logStringifiedCondition(stream, stringifiedCondition);
157-
} << "["
158-
<< kind.name << "] " << std::forward<Message>(msg));
150+
IOX_ERROR_INTERNAL_LOG_FATAL(location,
151+
[stringifiedCondition](auto& stream) -> auto& {
152+
return detail::logStringifiedCondition(stream, stringifiedCondition);
153+
} << "["
154+
<< kind.name << "] " << std::forward<Message>(msg));
159155
}
160156
auto& h = ErrorHandler::get();
161157
h.onReportViolation(ErrorDescriptor(location, code, module));

iceoryx_hoofs/test/moduletests/test_design_functional_interface_concat_multiple_calls.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ struct AndThenOrElseConcatenatedWorksWhenInvalid<TYPE_HAS_NO_VALUE_METHOD, TYPE_
5151
auto sut = TestFactory::createInvalidObject();
5252
bool wasAndThenCalled = false;
5353
bool wasOrElseCalled = false;
54-
sutCall(
55-
sut, [&] { wasAndThenCalled = true; }, [&] { wasOrElseCalled = true; });
54+
sutCall(sut, [&] { wasAndThenCalled = true; }, [&] { wasOrElseCalled = true; });
5655

5756
EXPECT_FALSE(wasAndThenCalled);
5857
EXPECT_TRUE(wasOrElseCalled);
@@ -68,8 +67,7 @@ struct AndThenOrElseConcatenatedWorksWhenInvalid<TYPE_HAS_VALUE_METHOD, TYPE_HAS
6867
auto sut = TestFactory::createInvalidObject();
6968
bool wasAndThenCalled = false;
7069
bool wasOrElseCalled = false;
71-
sutCall(
72-
sut, [&](auto&) { wasAndThenCalled = true; }, [&] { wasOrElseCalled = true; });
70+
sutCall(sut, [&](auto&) { wasAndThenCalled = true; }, [&] { wasOrElseCalled = true; });
7371

7472
EXPECT_FALSE(wasAndThenCalled);
7573
EXPECT_TRUE(wasOrElseCalled);
@@ -161,8 +159,7 @@ struct AndThenOrElseConcatenatedWorkWhenValid<TYPE_HAS_NO_VALUE_METHOD, TYPE_HAS
161159
auto sut = TestFactory::createValidObject();
162160
bool wasAndThenCalled = false;
163161
bool wasOrElseCalled = false;
164-
sutCall(
165-
sut, [&] { wasAndThenCalled = true; }, [&] { wasOrElseCalled = true; });
162+
sutCall(sut, [&] { wasAndThenCalled = true; }, [&] { wasOrElseCalled = true; });
166163

167164
EXPECT_TRUE(wasAndThenCalled);
168165
EXPECT_FALSE(wasOrElseCalled);
@@ -200,8 +197,7 @@ struct AndThenOrElseConcatenatedWorkWhenValid<TYPE_HAS_NO_VALUE_METHOD, TYPE_HAS
200197
auto sut = TestFactory::createValidObject();
201198
bool wasAndThenCalled = false;
202199
bool wasOrElseCalled = false;
203-
sutCall(
204-
sut, [&] { wasAndThenCalled = true; }, [&](auto&) { wasOrElseCalled = true; });
200+
sutCall(sut, [&] { wasAndThenCalled = true; }, [&](auto&) { wasOrElseCalled = true; });
205201

206202
EXPECT_TRUE(wasAndThenCalled);
207203
EXPECT_FALSE(wasOrElseCalled);

iceoryx_hoofs/test/moduletests/test_functional_function.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ struct Arg : Counter<Arg>
140140
{
141141
Arg() = default;
142142
explicit Arg(int32_t value)
143-
: value(value){};
143+
: value(value) {};
144144
Arg(const Arg&) = default;
145145
Arg& operator=(const Arg&) = default;
146146

@@ -557,7 +557,7 @@ TEST_F(function_test, CallWithRValueReferenceArgumentsWorks)
557557

558558
// NOLINTNEXTLINE(cppcoreguidelines-rvalue-reference-param-not-moved) this is okay for this test
559559
auto lambda = [](Arg&& a) { return a.value + 1; };
560-
function<int32_t(Arg &&), 128> sut(lambda);
560+
function<int32_t(Arg&&), 128> sut(lambda);
561561

562562
auto result = sut(std::move(arg));
563563

iceoryx_posh/include/iceoryx_posh/internal/popo/trigger.inl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ inline Trigger::Trigger(EventBasedTrigger_t,
7575
const uint64_t notificationType,
7676
const uint64_t notificationTypeHash) noexcept
7777
: Trigger(
78-
notificationOrigin,
79-
[]() { return false; },
80-
resetCallback,
81-
notificationId,
82-
callback,
83-
uniqueId,
84-
TriggerType::EVENT_BASED,
85-
notificationType,
86-
notificationTypeHash)
78+
notificationOrigin,
79+
[]() { return false; },
80+
resetCallback,
81+
notificationId,
82+
callback,
83+
uniqueId,
84+
TriggerType::EVENT_BASED,
85+
notificationType,
86+
notificationTypeHash)
8787
{
8888
}
8989
} // namespace popo

iceoryx_posh/test/integrationtests/test_interface_port_stack_blowup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class InterfacePortRequestStackBlowup_test : public RouDi_GTest
3939
{
4040
}
4141

42-
void SetUp(){};
43-
void TearDown(){};
42+
void SetUp() {};
43+
void TearDown() {};
4444
};
4545

4646
TEST_F(InterfacePortRequestStackBlowup_test, RouDiMustContinue)

iceoryx_posh/test/integrationtests/test_publisher_subscriber_communication.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ class PublisherSubscriberCommunicationWithBigPayload_test : public PublisherSubs
159159
public:
160160
PublisherSubscriberCommunicationWithBigPayload_test()
161161
: PublisherSubscriberCommunication_test(
162-
MinimalIceoryxConfigBuilder()
163-
.payloadChunkSize(SIZE_LARGER_THAN_4GB + additionalSizeForUserHeader)
164-
.payloadChunkCount(2)
165-
.create())
162+
MinimalIceoryxConfigBuilder()
163+
.payloadChunkSize(SIZE_LARGER_THAN_4GB + additionalSizeForUserHeader)
164+
.payloadChunkCount(2)
165+
.create())
166166
{
167167
}
168168

iceoryx_posh/test/mocks/gateway_base_mock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class MockGatewayBase
2525
{
2626
public:
27-
MockGatewayBase(const iox::capro::Interfaces){};
27+
MockGatewayBase(const iox::capro::Interfaces) {};
2828
MOCK_METHOD1(getCaProMessage, bool(iox::capro::CaproMessage&));
2929

3030
MOCK_METHOD0(getInterface, iox::capro::Interfaces());

iceoryx_posh/test/mocks/publisher_mock.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ class MockPublisherPortUser
3636
MockPublisherPortUser(std::nullptr_t)
3737
{
3838
}
39-
MockPublisherPortUser(MemberType_t*){};
39+
MockPublisherPortUser(MemberType_t*) {};
4040

41-
MockPublisherPortUser(const MockPublisherPortUser& rhs [[maybe_unused]]){};
42-
MockPublisherPortUser(MockPublisherPortUser&& rhs [[maybe_unused]]){};
41+
MockPublisherPortUser(const MockPublisherPortUser& rhs [[maybe_unused]]) {};
42+
MockPublisherPortUser(MockPublisherPortUser&& rhs [[maybe_unused]]) {};
4343
MockPublisherPortUser& operator=(const MockPublisherPortUser& rhs [[maybe_unused]])
4444
{
4545
return *this;
@@ -79,7 +79,7 @@ class MockBasePublisher
7979
public:
8080
using PortType = MockPublisherPortUser;
8181

82-
MockBasePublisher(const iox::capro::ServiceDescription&, const iox::popo::PublisherOptions&){};
82+
MockBasePublisher(const iox::capro::ServiceDescription&, const iox::popo::PublisherOptions&) {};
8383
MOCK_CONST_METHOD0(getUid, iox::popo::uid_t());
8484
MOCK_CONST_METHOD0(getServiceDescription, iox::capro::ServiceDescription());
8585
MOCK_METHOD0(offer, void(void));

iceoryx_posh/test/mocks/subscriber_mock.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class MockSubscriberPortUser
4242
{
4343
}
4444

45-
MockSubscriberPortUser(iox::popo::SubscriberPortData*){};
45+
MockSubscriberPortUser(iox::popo::SubscriberPortData*) {};
4646
iox::capro::ServiceDescription getCaProServiceDescription() const noexcept
4747
{
4848
return getServiceDescription();
@@ -70,7 +70,7 @@ class MockBaseSubscriber
7070
using SelfType = MockBaseSubscriber<T, Port>;
7171
using PortType = Port;
7272

73-
MockBaseSubscriber(const iox::capro::ServiceDescription&, const iox::popo::SubscriberOptions&){};
73+
MockBaseSubscriber(const iox::capro::ServiceDescription&, const iox::popo::SubscriberOptions&) {};
7474
MOCK_CONST_METHOD0(getUid, iox::popo::uid_t());
7575
MOCK_CONST_METHOD0(getServiceDescription, iox::capro::ServiceDescription());
7676
MOCK_METHOD1(subscribe, void(uint64_t));

0 commit comments

Comments
 (0)