Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(autoware_costmap_generator): fix bugprone-branch-clone #9669

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

kobayu858
Copy link
Contributor

Description

This is a fix based on clang-tidy bugprone-branch-clone error.

/home/emb4/autoware/autoware/src/universe/autoware.universe/planning/autoware_costmap_generator/src/utils/objects_to_costmap.cpp:203:89: error: repeated branch in conditional chain [bugprone-branch-clone,-warnings-as-errors]
    } else if (object.shape.type == autoware_perception_msgs::msg::Shape::BOUNDING_BOX) {
                                                                                        ^
/home/emb4/autoware/autoware/src/universe/autoware.universe/planning/autoware_costmap_generator/src/utils/objects_to_costmap.cpp:205:6: note: end of the original
    } else if (object.shape.type == autoware_perception_msgs::msg::Shape::CYLINDER) {
     ^
/home/emb4/autoware/autoware/src/universe/autoware.universe/planning/autoware_costmap_generator/src/utils/objects_to_costmap.cpp:205:85: note: clone 1 starts here
    } else if (object.shape.type == autoware_perception_msgs::msg::Shape::CYLINDER) {
                                                                                    ^

Related links

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Signed-off-by: kobayu858 <[email protected]>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Dec 17, 2024
Copy link

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@kobayu858 kobayu858 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 17, 2024
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 29.83%. Comparing base (b9ebc42) to head (161b790).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...costmap_generator/src/utils/objects_to_costmap.cpp 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9669      +/-   ##
==========================================
- Coverage   29.83%   29.83%   -0.01%     
==========================================
  Files        1443     1444       +1     
  Lines      108599   108605       +6     
  Branches    42667    42667              
==========================================
+ Hits        32405    32406       +1     
- Misses      73011    73017       +6     
+ Partials     3183     3182       -1     
Flag Coverage Δ *Carryforward flag
differential 13.11% <0.00%> (?)
total 29.83% <ø> (+<0.01%) ⬆️ Carriedforward from b9ebc42

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kobayu858 kobayu858 requested a review from veqcc December 17, 2024 04:25
@kobayu858 kobayu858 merged commit fc2b93e into autowarefoundation:main Dec 17, 2024
45 of 46 checks passed
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants