Skip to content

Commit aa0b446

Browse files
style(pre-commit): autofix
1 parent d152b44 commit aa0b446

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

autoware_utils_debug/src/time_keeper.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ void TimeKeeper::end_track(const std::string & func_name)
165165
return;
166166
}
167167
if (current_time_node_->get_name() != func_name) {
168-
throw std::runtime_error(fmt::format(
169-
"You must call end_track({}) first, but end_track({}) is called",
170-
current_time_node_->get_name(), func_name));
168+
throw std::runtime_error(
169+
fmt::format(
170+
"You must call end_track({}) first, but end_track({}) is called",
171+
current_time_node_->get_name(), func_name));
171172
}
172173
const double processing_time = stop_watch_.toc(func_name);
173174
current_time_node_->set_time(processing_time);
@@ -181,8 +182,10 @@ void TimeKeeper::end_track(const std::string & func_name)
181182
void TimeKeeper::report()
182183
{
183184
if (current_time_node_ != nullptr) {
184-
throw std::runtime_error(fmt::format(
185-
"You must call end_track({}) first, but report() is called", current_time_node_->get_name()));
185+
throw std::runtime_error(
186+
fmt::format(
187+
"You must call end_track({}) first, but report() is called",
188+
current_time_node_->get_name()));
186189
}
187190
for (const auto & reporter : reporters_) {
188191
reporter(root_node_);

autoware_utils_geometry/include/autoware_utils_geometry/boost_geometry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ BOOST_GEOMETRY_REGISTER_POINT_2D( // NO
9999
autoware_utils_geometry::Point2d, double, cs::cartesian, x(), y()) // NOLINT
100100
BOOST_GEOMETRY_REGISTER_POINT_3D( // NOLINT
101101
autoware_utils_geometry::Point3d, double, cs::cartesian, x(), y(), z()) // NOLINT
102-
BOOST_GEOMETRY_REGISTER_RING(autoware_utils_geometry::LinearRing2d) // NOLINT
102+
BOOST_GEOMETRY_REGISTER_RING(autoware_utils_geometry::LinearRing2d) // NOLINT
103103

104104
#endif // AUTOWARE_UTILS_GEOMETRY__BOOST_GEOMETRY_HPP_

autoware_utils_geometry/src/geometry/alt_geometry.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,12 @@ std::optional<alt::ConvexPolygon2d> envelope(const alt::Polygon2d & poly)
359359
poly.outer().begin(), std::prev(poly.outer().end()),
360360
[](const auto & a, const auto & b) { return a.y() < b.y(); });
361361

362-
return alt::ConvexPolygon2d::create(alt::PointList2d{
363-
{x_min_vertex->x(), y_min_vertex->y()},
364-
{x_min_vertex->x(), y_max_vertex->y()},
365-
{x_max_vertex->x(), y_max_vertex->y()},
366-
{x_max_vertex->x(), y_min_vertex->y()}});
362+
return alt::ConvexPolygon2d::create(
363+
alt::PointList2d{
364+
{x_min_vertex->x(), y_min_vertex->y()},
365+
{x_min_vertex->x(), y_max_vertex->y()},
366+
{x_max_vertex->x(), y_max_vertex->y()},
367+
{x_max_vertex->x(), y_min_vertex->y()}});
367368
}
368369

369370
bool equals(const alt::Point2d & point1, const alt::Point2d & point2)

0 commit comments

Comments
 (0)