Skip to content

Commit aaf47ca

Browse files
Apply new uncrustify configuration (#6259)
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
1 parent e2b9ce8 commit aaf47ca

24 files changed

+354
-270
lines changed

examples/cpp/rpc/ClientApp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ OperationStatus RepresentationLimits::execute()
116116

117117
// Print the results
118118
client_server_info("ClientApp",
119-
"Representation limits received: min_value = " << representation_limits_.min_value << ", max_value = " <<
119+
"Representation limits received: min_value = " << representation_limits_.min_value <<
120+
", max_value = " <<
120121
representation_limits_.max_value);
121122

122123
return OperationStatus::SUCCESS;

examples/cpp/rpc/app_utils.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,19 @@ struct Timestamp
7474

7575
#ifndef NDEGUB
7676
#define client_server_debug(context, message) \
77-
std::cout << C_B_WHITE << Timestamp::now() << C_B_BLUE << " [DEBUG] " << C_B_WHITE \
78-
<< "[" << context << "] " << C_DEF << message << std::endl
77+
std::cout << C_B_WHITE << Timestamp::now() << C_B_BLUE << " [DEBUG] " << C_B_WHITE \
78+
<< "[" << context << "] " << C_DEF << message << std::endl
7979
#else
8080
#define client_server_debug(context, message)
8181
#endif // ifdef NDEGUB
8282

8383
#define client_server_info(context, message) \
84-
std::cout << C_B_WHITE << Timestamp::now() << C_B_GREEN << " [INFO] " << C_B_WHITE \
85-
<< "[" << context << "] " << C_DEF << message << std::endl
84+
std::cout << C_B_WHITE << Timestamp::now() << C_B_GREEN << " [INFO] " << C_B_WHITE \
85+
<< "[" << context << "] " << C_DEF << message << std::endl
8686

8787
#define client_server_error(context, message) \
88-
std::cerr << C_B_WHITE << Timestamp::now() << C_B_RED << " [ERROR] " << C_B_WHITE \
89-
<< "[" << context << "] " << C_DEF << message << std::endl
88+
std::cerr << C_B_WHITE << Timestamp::now() << C_B_RED << " [ERROR] " << C_B_WHITE \
89+
<< "[" << context << "] " << C_DEF << message << std::endl
9090

9191
//! Get the filter kind from the user input
9292
inline calculator_example::FilterKind get_filter_kind(

include/fastdds/dds/core/LoanableSequence.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,6 @@ class LoanableSequence : public LoanableTypedCollection<T, _NonConstEnabler>
228228
// Macro to easily declare a LoanableSequence for a data type
229229
#define FASTDDS_SEQUENCE(FooSeq, Foo) using FooSeq = eprosima::fastdds::dds::LoanableSequence<Foo>
230230
#define FASTDDS_CONST_SEQUENCE(FooSeq, Foo) using FooSeq = eprosima::fastdds::dds::LoanableSequence<Foo, \
231-
std::false_type>
231+
std::false_type>
232232

233233
#endif // FASTDDS_DDS_CORE__LOANABLESEQUENCE_HPP

include/fastdds/dds/log/Log.hpp

Lines changed: 53 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -288,25 +288,25 @@ class LogConsumer
288288
#if !HAVE_LOG_NO_ERROR
289289

290290
#define EPROSIMA_LOG_ERROR_IMPL_(cat, msg) \
291-
do { \
292-
std::stringstream fastdds_log_ss_tmp__; \
293-
fastdds_log_ss_tmp__ << msg; \
294-
eprosima::fastdds::dds::Log::QueueLog( \
295-
fastdds_log_ss_tmp__.str(), eprosima::fastdds::dds::Log::Context{__FILE__, __LINE__, __func__, #cat}, \
296-
eprosima::fastdds::dds::Log::Kind::Error); \
297-
} while (0)
291+
do { \
292+
std::stringstream fastdds_log_ss_tmp__; \
293+
fastdds_log_ss_tmp__ << msg; \
294+
eprosima::fastdds::dds::Log::QueueLog( \
295+
fastdds_log_ss_tmp__.str(), eprosima::fastdds::dds::Log::Context{__FILE__, __LINE__, __func__, #cat}, \
296+
eprosima::fastdds::dds::Log::Kind::Error); \
297+
} while (0)
298298

299299
#elif (__INTERNALDEBUG || _INTERNALDEBUG)
300300

301301
#define EPROSIMA_LOG_ERROR_IMPL_(cat, msg) \
302-
do { \
303-
auto fastdds_log_lambda_tmp__ = [&]() \
304-
{ \
305-
std::stringstream fastdds_log_ss_tmp__; \
306-
fastdds_log_ss_tmp__ << msg; \
307-
}; \
308-
(void)fastdds_log_lambda_tmp__; \
309-
} while (0)
302+
do { \
303+
auto fastdds_log_lambda_tmp__ = [&]() \
304+
{ \
305+
std::stringstream fastdds_log_ss_tmp__; \
306+
fastdds_log_ss_tmp__ << msg; \
307+
}; \
308+
(void)fastdds_log_lambda_tmp__; \
309+
} while (0)
310310
#else
311311

312312
#define EPROSIMA_LOG_ERROR_IMPL_(cat, msg)
@@ -319,28 +319,29 @@ class LogConsumer
319319
#if !HAVE_LOG_NO_WARNING
320320

321321
#define EPROSIMA_LOG_WARNING_IMPL_(cat, msg) \
322-
do { \
323-
if (eprosima::fastdds::dds::Log::GetVerbosity() >= eprosima::fastdds::dds::Log::Kind::Warning) \
324-
{ \
325-
std::stringstream fastdds_log_ss_tmp__; \
326-
fastdds_log_ss_tmp__ << msg; \
327-
eprosima::fastdds::dds::Log::QueueLog( \
328-
fastdds_log_ss_tmp__.str(), eprosima::fastdds::dds::Log::Context{__FILE__, __LINE__, __func__, #cat}, \
329-
eprosima::fastdds::dds::Log::Kind::Warning); \
330-
} \
331-
} while (0)
322+
do { \
323+
if (eprosima::fastdds::dds::Log::GetVerbosity() >= eprosima::fastdds::dds::Log::Kind::Warning) \
324+
{ \
325+
std::stringstream fastdds_log_ss_tmp__; \
326+
fastdds_log_ss_tmp__ << msg; \
327+
eprosima::fastdds::dds::Log::QueueLog( \
328+
fastdds_log_ss_tmp__.str(), \
329+
eprosima::fastdds::dds::Log::Context{__FILE__, __LINE__, __func__, #cat}, \
330+
eprosima::fastdds::dds::Log::Kind::Warning); \
331+
} \
332+
} while (0)
332333

333334
#elif (__INTERNALDEBUG || _INTERNALDEBUG)
334335

335336
#define EPROSIMA_LOG_WARNING_IMPL_(cat, msg) \
336-
do { \
337-
auto fastdds_log_lambda_tmp__ = [&]() \
338-
{ \
339-
std::stringstream fastdds_log_ss_tmp__; \
340-
fastdds_log_ss_tmp__ << msg; \
341-
}; \
342-
(void)fastdds_log_lambda_tmp__; \
343-
} while (0)
337+
do { \
338+
auto fastdds_log_lambda_tmp__ = [&]() \
339+
{ \
340+
std::stringstream fastdds_log_ss_tmp__; \
341+
fastdds_log_ss_tmp__ << msg; \
342+
}; \
343+
(void)fastdds_log_lambda_tmp__; \
344+
} while (0)
344345

345346
#else
346347

@@ -358,28 +359,29 @@ class LogConsumer
358359
!defined(NDEBUG))))
359360

360361
#define EPROSIMA_LOG_INFO_IMPL_(cat, msg) \
361-
do { \
362-
if (eprosima::fastdds::dds::Log::GetVerbosity() >= eprosima::fastdds::dds::Log::Kind::Info) \
363-
{ \
364-
std::stringstream fastdds_log_ss_tmp__; \
365-
fastdds_log_ss_tmp__ << msg; \
366-
eprosima::fastdds::dds::Log::QueueLog( \
367-
fastdds_log_ss_tmp__.str(), eprosima::fastdds::dds::Log::Context{__FILE__, __LINE__, __func__, #cat}, \
368-
eprosima::fastdds::dds::Log::Kind::Info); \
369-
} \
370-
} while (0)
362+
do { \
363+
if (eprosima::fastdds::dds::Log::GetVerbosity() >= eprosima::fastdds::dds::Log::Kind::Info) \
364+
{ \
365+
std::stringstream fastdds_log_ss_tmp__; \
366+
fastdds_log_ss_tmp__ << msg; \
367+
eprosima::fastdds::dds::Log::QueueLog( \
368+
fastdds_log_ss_tmp__.str(), \
369+
eprosima::fastdds::dds::Log::Context{__FILE__, __LINE__, __func__, #cat}, \
370+
eprosima::fastdds::dds::Log::Kind::Info); \
371+
} \
372+
} while (0)
371373

372374
#elif (__INTERNALDEBUG || _INTERNALDEBUG)
373375

374376
#define EPROSIMA_LOG_INFO_IMPL_(cat, msg) \
375-
do { \
376-
auto fastdds_log_lambda_tmp__ = [&]() \
377-
{ \
378-
std::stringstream fastdds_log_ss_tmp__; \
379-
fastdds_log_ss_tmp__ << msg; \
380-
}; \
381-
(void)fastdds_log_lambda_tmp__; \
382-
} while (0)
377+
do { \
378+
auto fastdds_log_lambda_tmp__ = [&]() \
379+
{ \
380+
std::stringstream fastdds_log_ss_tmp__; \
381+
fastdds_log_ss_tmp__ << msg; \
382+
}; \
383+
(void)fastdds_log_lambda_tmp__; \
384+
} while (0)
383385

384386
#else
385387

include/fastdds/dds/rpc/exceptions/RemoteInvalidArgumentError.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class RemoteInvalidArgumentError : public RpcRemoteException
4040
* Constructor.
4141
*/
4242
RemoteInvalidArgumentError()
43-
: RemoteInvalidArgumentError("The value of a parameter passed has an illegal value")
43+
: RemoteInvalidArgumentError(
44+
"The value of a parameter passed has an illegal value")
4445
{
4546
}
4647

include/fastdds/dds/rpc/exceptions/RemoteOutOfResourcesError.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class RemoteOutOfResourcesError : public RpcRemoteException
4040
* Constructor.
4141
*/
4242
RemoteOutOfResourcesError()
43-
: RemoteOutOfResourcesError("The remote service ran out of resources while processing the request")
43+
: RemoteOutOfResourcesError(
44+
"The remote service ran out of resources while processing the request")
4445
{
4546
}
4647

include/fastdds/dds/rpc/exceptions/RemoteUnknownExceptionError.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class RemoteUnknownExceptionError : public RpcRemoteException
4040
* Constructor.
4141
*/
4242
RemoteUnknownExceptionError()
43-
: RemoteUnknownExceptionError("A generic, unspecified exception was raised by the service implementation")
43+
: RemoteUnknownExceptionError(
44+
"A generic, unspecified exception was raised by the service implementation")
4445
{
4546
}
4647

include/fastdds/dds/rpc/exceptions/RemoteUnknownOperationError.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class RemoteUnknownOperationError : public RpcRemoteException
4040
* Constructor.
4141
*/
4242
RemoteUnknownOperationError()
43-
: RemoteUnknownOperationError("The operation called is unknown")
43+
: RemoteUnknownOperationError(
44+
"The operation called is unknown")
4445
{
4546
}
4647

include/fastdds/dds/rpc/exceptions/RemoteUnsupportedError.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class RemoteUnsupportedError : public RpcRemoteException
4040
* Constructor.
4141
*/
4242
RemoteUnsupportedError()
43-
: RemoteUnsupportedError("Operation is valid but it is unsupported (i.e. is not implemented)")
43+
: RemoteUnsupportedError(
44+
"Operation is valid but it is unsupported (i.e. is not implemented)")
4445
{
4546
}
4647

include/fastdds/rtps/attributes/RTPSParticipantAttributes.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ class BuiltinProtocols;
161161
typedef struct PDPFactory
162162
{
163163
// Pointer to the PDP creator
164-
PDP* (*CreatePDPInstance)(BuiltinProtocols*);
164+
PDP* (*CreatePDPInstance)(
165+
BuiltinProtocols*);
165166
// Pointer to the PDP destructor
166167
void (* ReleasePDPInstance)(
167168
PDP*);

0 commit comments

Comments
 (0)