From 21d04e1646504446faaca0583aba3162e1d94d65 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 7 Jun 2024 00:07:41 +0000 Subject: [PATCH] ci(pre-commit): autofix --- src/tilde/src/stee_node.cpp | 4 +++- src/tilde/src/tilde_publisher.cpp | 5 ++++- src/tilde/test/test_stee_source_table.cpp | 5 ++++- src/tilde_deadline_detector/src/forward_estimator.cpp | 4 +++- .../src/tilde_deadline_detector_node.cpp | 4 +++- src/tilde_message_filters/src/sample_tilde_subscriber.cpp | 5 ++++- .../test/test_from_original_synchronizer.cpp | 8 ++++++-- 7 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/tilde/src/stee_node.cpp b/src/tilde/src/stee_node.cpp index 138901eb..57c32395 100644 --- a/src/tilde/src/stee_node.cpp +++ b/src/tilde/src/stee_node.cpp @@ -32,7 +32,9 @@ SteeNode::SteeNode( init(); } -SteeNode::~SteeNode() {} +SteeNode::~SteeNode() +{ +} void SteeNode::init() { diff --git a/src/tilde/src/tilde_publisher.cpp b/src/tilde/src/tilde_publisher.cpp index 9c7fcb47..51b1ba3f 100644 --- a/src/tilde/src/tilde_publisher.cpp +++ b/src/tilde/src/tilde_publisher.cpp @@ -161,7 +161,10 @@ bool TildePublisherBase::get_input_info( return true; } -void TildePublisherBase::set_enable(bool enable) { enable_ = enable; } +void TildePublisherBase::set_enable(bool enable) +{ + enable_ = enable; +} void TildePublisherBase::print_input_infos() { diff --git a/src/tilde/test/test_stee_source_table.cpp b/src/tilde/test/test_stee_source_table.cpp index 985cb7b0..30dc9fdd 100644 --- a/src/tilde/test/test_stee_source_table.cpp +++ b/src/tilde/test/test_stee_source_table.cpp @@ -77,7 +77,10 @@ class TestSteeSourcesTable : public ::testing::Test void TearDown() override {} }; -rclcpp::Time get_time(int32_t sec, uint32_t nsec) { return rclcpp::Time(sec, nsec, RCL_ROS_TIME); } +rclcpp::Time get_time(int32_t sec, uint32_t nsec) +{ + return rclcpp::Time(sec, nsec, RCL_ROS_TIME); +} void add_sources( const std::string & in_topic, const rclcpp::Time & stamp, const rclcpp::Time & steady, diff --git a/src/tilde_deadline_detector/src/forward_estimator.cpp b/src/tilde_deadline_detector/src/forward_estimator.cpp index 3e6a63bd..74ab2ab3 100644 --- a/src/tilde_deadline_detector/src/forward_estimator.cpp +++ b/src/tilde_deadline_detector/src/forward_estimator.cpp @@ -24,7 +24,9 @@ namespace tilde_deadline_detector { -ForwardEstimator::ForwardEstimator() {} +ForwardEstimator::ForwardEstimator() +{ +} void ForwardEstimator::set_skip_out_to_in(const std::map & skip_out_to_in) { diff --git a/src/tilde_deadline_detector/src/tilde_deadline_detector_node.cpp b/src/tilde_deadline_detector/src/tilde_deadline_detector_node.cpp index 93583e8d..1ce8432b 100644 --- a/src/tilde_deadline_detector/src/tilde_deadline_detector_node.cpp +++ b/src/tilde_deadline_detector/src/tilde_deadline_detector_node.cpp @@ -72,7 +72,9 @@ TildeDeadlineDetectorNode::TildeDeadlineDetectorNode(const rclcpp::NodeOptions & init(); } -TildeDeadlineDetectorNode::~TildeDeadlineDetectorNode() {} +TildeDeadlineDetectorNode::~TildeDeadlineDetectorNode() +{ +} std::set TildeDeadlineDetectorNode::get_message_tracking_tag_topics() const { diff --git a/src/tilde_message_filters/src/sample_tilde_subscriber.cpp b/src/tilde_message_filters/src/sample_tilde_subscriber.cpp index 5926398c..3098c721 100644 --- a/src/tilde_message_filters/src/sample_tilde_subscriber.cpp +++ b/src/tilde_message_filters/src/sample_tilde_subscriber.cpp @@ -44,7 +44,10 @@ struct NonConstHelper std::shared_ptr> g_pub_callback_fn_; -void callback_fn(MsgConstPtr msg) { g_pub_callback_fn_->publish(*msg); } +void callback_fn(MsgConstPtr msg) +{ + g_pub_callback_fn_->publish(*msg); +} template void func(CallbackT && callback) // add [[deprecated]] to show deduced type diff --git a/src/tilde_message_filters/test/test_from_original_synchronizer.cpp b/src/tilde_message_filters/test/test_from_original_synchronizer.cpp index 7be82ea4..f6b8252f 100644 --- a/src/tilde_message_filters/test/test_from_original_synchronizer.cpp +++ b/src/tilde_message_filters/test/test_from_original_synchronizer.cpp @@ -156,8 +156,12 @@ TEST(TildeSynchronizer, compile9) TildeSynchronizer sync(nullptr, f0, f1, f2, f3, f4, f5, f6, f7, f8); } -void function2(const MsgConstPtr &, const MsgConstPtr &) {} -void function3(const MsgConstPtr &, const MsgConstPtr &, const MsgConstPtr &) {} +void function2(const MsgConstPtr &, const MsgConstPtr &) +{ +} +void function3(const MsgConstPtr &, const MsgConstPtr &, const MsgConstPtr &) +{ +} void function4(const MsgConstPtr &, const MsgConstPtr &, const MsgConstPtr &, const MsgConstPtr &) { }