Skip to content

Commit 14efb7b

Browse files
committed
Fixing logging unit tests and running automated uncrustify.
1 parent 6531233 commit 14efb7b

16 files changed

Lines changed: 38 additions & 38 deletions

rclcpp/include/rclcpp/any_service_callback.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ class AnyServiceCallback
3232
{
3333
private:
3434
using SharedPtrCallback = std::function<
35-
void (
35+
void(
3636
const std::shared_ptr<typename ServiceT::Request>,
3737
std::shared_ptr<typename ServiceT::Response>
3838
)>;
3939
using SharedPtrWithRequestHeaderCallback = std::function<
40-
void (
40+
void(
4141
const std::shared_ptr<rmw_request_id_t>,
4242
const std::shared_ptr<typename ServiceT::Request>,
4343
std::shared_ptr<typename ServiceT::Response>

rclcpp/include/rclcpp/any_subscription_callback.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ class AnySubscriptionCallback
3838
using MessageDeleter = allocator::Deleter<MessageAlloc, MessageT>;
3939
using MessageUniquePtr = std::unique_ptr<MessageT, MessageDeleter>;
4040

41-
using SharedPtrCallback = std::function<void (const std::shared_ptr<MessageT>)>;
41+
using SharedPtrCallback = std::function<void(const std::shared_ptr<MessageT>)>;
4242
using SharedPtrWithInfoCallback =
43-
std::function<void (const std::shared_ptr<MessageT>, const rmw_message_info_t &)>;
44-
using ConstSharedPtrCallback = std::function<void (const std::shared_ptr<const MessageT>)>;
43+
std::function<void(const std::shared_ptr<MessageT>, const rmw_message_info_t &)>;
44+
using ConstSharedPtrCallback = std::function<void(const std::shared_ptr<const MessageT>)>;
4545
using ConstSharedPtrWithInfoCallback =
46-
std::function<void (const std::shared_ptr<const MessageT>, const rmw_message_info_t &)>;
47-
using UniquePtrCallback = std::function<void (MessageUniquePtr)>;
46+
std::function<void(const std::shared_ptr<const MessageT>, const rmw_message_info_t &)>;
47+
using UniquePtrCallback = std::function<void(MessageUniquePtr)>;
4848
using UniquePtrWithInfoCallback =
49-
std::function<void (MessageUniquePtr, const rmw_message_info_t &)>;
49+
std::function<void(MessageUniquePtr, const rmw_message_info_t &)>;
5050

5151
SharedPtrCallback shared_ptr_callback_;
5252
SharedPtrWithInfoCallback shared_ptr_with_info_callback_;

rclcpp/include/rclcpp/client.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ class Client : public ClientBase
131131
using SharedFuture = std::shared_future<SharedResponse>;
132132
using SharedFutureWithRequest = std::shared_future<std::pair<SharedRequest, SharedResponse>>;
133133

134-
using CallbackType = std::function<void (SharedFuture)>;
135-
using CallbackWithRequestType = std::function<void (SharedFutureWithRequest)>;
134+
using CallbackType = std::function<void(SharedFuture)>;
135+
using CallbackWithRequestType = std::function<void(SharedFutureWithRequest)>;
136136

137137
RCLCPP_SMART_PTR_DEFINITIONS(Client)
138138

rclcpp/include/rclcpp/exceptions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ throw_from_rcl_error(
116116
rcl_ret_t ret,
117117
const std::string & prefix = "",
118118
const rcl_error_state_t * error_state = nullptr,
119-
void (* reset_error)() = rcl_reset_error);
119+
void (*reset_error)() = rcl_reset_error);
120120

121121
class RCLErrorBase
122122
{

rclcpp/include/rclcpp/function_traits.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,20 +130,20 @@ struct function_traits<FunctionT &&>: function_traits<FunctionT>
130130
*/
131131
template<std::size_t Arity, typename FunctorT>
132132
struct arity_comparator : std::integral_constant<
133-
bool, (Arity == function_traits<FunctorT>::arity)> {};
133+
bool, (Arity == function_traits<FunctorT>::arity)>{};
134134

135135
template<typename FunctorT, typename ... Args>
136136
struct check_arguments : std::is_same<
137137
typename function_traits<FunctorT>::arguments,
138138
std::tuple<Args ...>
139-
>
139+
>
140140
{};
141141

142142
template<typename FunctorAT, typename FunctorBT>
143143
struct same_arguments : std::is_same<
144144
typename function_traits<FunctorAT>::arguments,
145145
typename function_traits<FunctorBT>::arguments
146-
>
146+
>
147147
{};
148148

149149
} // namespace function_traits

rclcpp/include/rclcpp/intra_process_manager.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class IntraProcessManager
326326
message_sequence_number,
327327
requesting_subscriptions_intra_process_id,
328328
target_subs_size
329-
);
329+
);
330330
typename TypedMRB::SharedPtr typed_buffer = std::static_pointer_cast<TypedMRB>(buffer);
331331
if (!typed_buffer) {
332332
return;

rclcpp/include/rclcpp/service.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ class Service : public ServiceBase
8989
{
9090
public:
9191
using CallbackType = std::function<
92-
void (
92+
void(
9393
const std::shared_ptr<typename ServiceT::Request>,
9494
std::shared_ptr<typename ServiceT::Response>)>;
9595

9696
using CallbackWithHeaderType = std::function<
97-
void (
97+
void(
9898
const std::shared_ptr<rmw_request_id_t>,
9999
const std::shared_ptr<typename ServiceT::Request>,
100100
std::shared_ptr<typename ServiceT::Response>)>;

rclcpp/include/rclcpp/subscription.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ class Subscription : public SubscriptionBase
268268
}
269269

270270
using GetMessageCallbackType =
271-
std::function<void (uint64_t, uint64_t, uint64_t, MessageUniquePtr &)>;
272-
using MatchesAnyPublishersCallbackType = std::function<bool (const rmw_gid_t *)>;
271+
std::function<void(uint64_t, uint64_t, uint64_t, MessageUniquePtr &)>;
272+
using MatchesAnyPublishersCallbackType = std::function<bool(const rmw_gid_t *)>;
273273

274274
/// Implemenation detail.
275275
void setup_intra_process(

rclcpp/include/rclcpp/subscription_factory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct SubscriptionFactory
5757

5858
// Function that takes a MessageT from the intra process manager
5959
using SetupIntraProcessFunction = std::function<
60-
void (
60+
void(
6161
rclcpp::intra_process_manager::IntraProcessManager::SharedPtr ipm,
6262
rclcpp::SubscriptionBase::SharedPtr subscription,
6363
const rcl_subscription_options_t & subscription_options)>;

rclcpp/include/rclcpp/timer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ class TimerBase
9595
};
9696

9797

98-
using VoidCallbackType = std::function<void ()>;
99-
using TimerCallbackType = std::function<void (TimerBase &)>;
98+
using VoidCallbackType = std::function<void()>;
99+
using TimerCallbackType = std::function<void(TimerBase &)>;
100100

101101
/// Generic timer. Periodically executes a user-specified callback.
102102
template<

0 commit comments

Comments
 (0)