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_path_smoother): fix bugprone-branch-clone #9697

Merged
merged 2 commits into from
Dec 20, 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_path_smoother/src/elastic_band.cpp:56:44: error: repeated branch in conditional chain [bugprone-branch-clone,-warnings-as-errors]
        if (r == 0 || r == num_points - 1) {
                                           ^
/home/emb4/autoware/autoware/src/universe/autoware.universe/planning/autoware_path_smoother/src/elastic_band.cpp:58:10: note: end of the original
        } else if (c == 0 || c == num_points - 1) {
         ^
/home/emb4/autoware/autoware/src/universe/autoware.universe/planning/autoware_path_smoother/src/elastic_band.cpp:58:51: note: clone 1 starts here
        } else if (c == 0 || c == num_points - 1) {
                                                  ^

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]>
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 20, 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 requested a review from veqcc December 20, 2024 06:19
@kobayu858 kobayu858 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 20, 2024
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.81%. Comparing base (c17b000) to head (63d1acb).
Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9697      +/-   ##
==========================================
- Coverage   29.82%   29.81%   -0.02%     
==========================================
  Files        1443     1451       +8     
  Lines      108599   108664      +65     
  Branches    42667    42668       +1     
==========================================
- Hits        32395    32393       -2     
- Misses      73024    73091      +67     
  Partials     3180     3180              
Flag Coverage Δ *Carryforward flag
differential 10.04% <100.00%> (?)
total 29.82% <ø> (-0.01%) ⬇️ Carriedforward from c17b000

*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 merged commit 857aa71 into autowarefoundation:main Dec 20, 2024
44 of 46 checks passed
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Dec 25, 2024
…ation#9697)

* fix: bugprone-error

Signed-off-by: kobayu858 <[email protected]>

* fix: bugprone-error

Signed-off-by: kobayu858 <[email protected]>

---------

Signed-off-by: kobayu858 <[email protected]>
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.

3 participants