Skip to content

Commit 8ac848b

Browse files
authored
Fixes for uncrustify 0.72 (#1844)
Signed-off-by: Chris Lalancette <[email protected]>
1 parent b2b676d commit 8ac848b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

rclcpp/include/rclcpp/function_traits.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ template<typename ClassT, typename ReturnTypeT, typename ... Args, typename ...
8383
#if defined _LIBCPP_VERSION // libc++ (Clang)
8484
struct function_traits<std::__bind<ReturnTypeT (ClassT::*)(Args ...), FArgs ...>>
8585
#elif defined _GLIBCXX_RELEASE // glibc++ (GNU C++ >= 7.1)
86-
struct function_traits<std::_Bind<ReturnTypeT(ClassT::*(FArgs ...))(Args ...)>>
86+
struct function_traits<std::_Bind<ReturnTypeT(ClassT::* (FArgs ...))(Args ...)>>
8787
#elif defined __GLIBCXX__ // glibc++ (GNU C++)
8888
struct function_traits<std::_Bind<std::_Mem_fn<ReturnTypeT (ClassT::*)(Args ...)>(FArgs ...)>>
8989
#elif defined _MSC_VER // MS Visual Studio
@@ -100,7 +100,7 @@ template<typename ClassT, typename ReturnTypeT, typename ... Args, typename ...
100100
#if defined _LIBCPP_VERSION // libc++ (Clang)
101101
struct function_traits<std::__bind<ReturnTypeT (ClassT::*)(Args ...) const, FArgs ...>>
102102
#elif defined _GLIBCXX_RELEASE // glibc++ (GNU C++ >= 7.1)
103-
struct function_traits<std::_Bind<ReturnTypeT(ClassT::*(FArgs ...))(Args ...) const>>
103+
struct function_traits<std::_Bind<ReturnTypeT(ClassT::* (FArgs ...))(Args ...) const>>
104104
#elif defined __GLIBCXX__ // glibc++ (GNU C++)
105105
struct function_traits<std::_Bind<std::_Mem_fn<ReturnTypeT (ClassT::*)(Args ...) const>(FArgs ...)>>
106106
#elif defined _MSC_VER // MS Visual Studio

rclcpp/include/rclcpp/wait_set_policies/sequential_synchronization.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class SequentialSynchronization : public detail::SynchronizationPolicyCommon
203203
std::shared_ptr<rclcpp::Waitable> && waitable,
204204
std::shared_ptr<void> && associated_entity,
205205
std::function<
206-
void(std::shared_ptr<rclcpp::Waitable>&&, std::shared_ptr<void>&&)
206+
void(std::shared_ptr<rclcpp::Waitable>&&, std::shared_ptr<void> &&)
207207
> add_waitable_function)
208208
{
209209
// Explicitly no thread synchronization.

rclcpp/include/rclcpp/wait_set_policies/thread_safe_synchronization.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class ThreadSafeSynchronization : public detail::SynchronizationPolicyCommon
216216
std::shared_ptr<rclcpp::Waitable> && waitable,
217217
std::shared_ptr<void> && associated_entity,
218218
std::function<
219-
void(std::shared_ptr<rclcpp::Waitable>&&, std::shared_ptr<void>&&)
219+
void(std::shared_ptr<rclcpp::Waitable>&&, std::shared_ptr<void> &&)
220220
> add_waitable_function)
221221
{
222222
using rclcpp::wait_set_policies::detail::WritePreferringReadWriteLock;

rclcpp/test/utils/rclcpp_gtest_macros.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ ::testing::AssertionResult AreThrowableContentsEqual(
162162
#define RCLCPP_EXPECT_THROW_EQ(throwing_statement, expected_exception) \
163163
do { \
164164
::testing::AssertionResult \
165-
is_the_result_of_the_throwing_expression_equal_to_the_expected_throwable = \
165+
is_the_result_of_the_throwing_expression_equal_to_the_expected_throwable = \
166166
::testing::AssertionSuccess(); \
167167
CHECK_THROW_EQ_IMPL( \
168168
throwing_statement, \
@@ -183,7 +183,7 @@ ::testing::AssertionResult AreThrowableContentsEqual(
183183
#define RCLCPP_ASSERT_THROW_EQ(throwing_statement, expected_exception) \
184184
do { \
185185
::testing::AssertionResult \
186-
is_the_result_of_the_throwing_expression_equal_to_the_expected_throwable = \
186+
is_the_result_of_the_throwing_expression_equal_to_the_expected_throwable = \
187187
::testing::AssertionSuccess(); \
188188
CHECK_THROW_EQ_IMPL( \
189189
throwing_statement, \

rclcpp_action/src/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ClientBaseImpl
4444
: node_graph_(node_graph),
4545
node_handle(node_base->get_shared_rcl_node_handle()),
4646
logger(node_logging->get_logger().get_child("rclcpp_action")),
47-
random_bytes_generator(std::random_device{} ())
47+
random_bytes_generator(std::random_device{}())
4848
{
4949
std::weak_ptr<rcl_node_t> weak_node_handle(node_handle);
5050
client_handle = std::shared_ptr<rcl_action_client_t>(

0 commit comments

Comments
 (0)