Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed May 26, 2024
1 parent 8a3e5ee commit 37885d4
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/tilde/src/stee_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ SteeNode::SteeNode(
init();
}

SteeNode::~SteeNode() {}
SteeNode::~SteeNode()
{
}

void SteeNode::init()
{
Expand Down
5 changes: 4 additions & 1 deletion src/tilde/src/tilde_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
5 changes: 4 additions & 1 deletion src/tilde/test/test_stee_source_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion src/tilde_deadline_detector/src/forward_estimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
namespace tilde_deadline_detector
{

ForwardEstimator::ForwardEstimator() {}
ForwardEstimator::ForwardEstimator()
{
}

void ForwardEstimator::set_skip_out_to_in(const std::map<std::string, std::string> & skip_out_to_in)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ TildeDeadlineDetectorNode::TildeDeadlineDetectorNode(const rclcpp::NodeOptions &
init();
}

TildeDeadlineDetectorNode::~TildeDeadlineDetectorNode() {}
TildeDeadlineDetectorNode::~TildeDeadlineDetectorNode()
{
}

std::set<std::string> TildeDeadlineDetectorNode::get_message_tracking_tag_topics() const
{
Expand Down
5 changes: 4 additions & 1 deletion src/tilde_message_filters/src/sample_tilde_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ struct NonConstHelper

std::shared_ptr<tilde::TildePublisher<Msg>> 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 <typename CallbackT>
void func(CallbackT && callback) // add [[deprecated]] to show deduced type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,12 @@ TEST(TildeSynchronizer, compile9)
TildeSynchronizer<Policy9> 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 &)
{
}
Expand Down

0 comments on commit 37885d4

Please sign in to comment.