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_obstacle_stop_planner): fix cppcheck warning of functionStatic #8264

Conversation

taisa1
Copy link
Contributor

@taisa1 taisa1 commented Jul 30, 2024

Description

This is a fix based on cppcheck warning functionStatic.

planning/autoware_obstacle_stop_planner/src/adaptive_cruise_control.hpp:187:10: performance: inconclusive: Technically the member function 'autoware::motion_planning::AdaptiveCruiseController::lowpass_filter' can be static (but you may consider moving to unnamed namespace). [functionStatic]
planning/autoware_obstacle_stop_planner/src/adaptive_cruise_control.hpp:193:10: performance: inconclusive: Technically the member function 'autoware::motion_planning::AdaptiveCruiseController::calcTrajYaw' can be static (but you may consider moving to unnamed namespace). [functionStatic]
planning/autoware_obstacle_stop_planner/src/adaptive_cruise_control.hpp:208:10: performance: inconclusive: Technically the member function 'autoware::motion_planning::AdaptiveCruiseController::calcTargetVelocity_I' can be static (but you may consider moving to unnamed namespace). [functionStatic]
planning/autoware_obstacle_stop_planner/src/debug_marker.hpp:81:7: performance: inconclusive: Technically the member function 'autoware::motion_planning::DebugValues::getValuesIdx' can be static (but you may consider moving to unnamed namespace). [functionStatic]

Related links

How was this PR tested?

Only checked if build succeeded.

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Jul 30, 2024
Copy link

github-actions bot commented Jul 30, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

@atsushi421 atsushi421 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jul 30, 2024
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.21%. Comparing base (f7027ff) to head (e6887e6).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8264      +/-   ##
==========================================
+ Coverage   23.76%   29.21%   +5.45%     
==========================================
  Files        1379     1601     +222     
  Lines      101359   116875   +15516     
  Branches    38522    50325   +11803     
==========================================
+ Hits        24086    34146   +10060     
+ Misses      74846    73575    -1271     
- Partials     2427     9154    +6727     
Flag Coverage Δ *Carryforward flag
differential 9.70% <ø> (?)
total 29.22% <ø> (+5.46%) ⬆️ Carriedforward from 7cb9141

*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.

@taisa1 taisa1 marked this pull request as ready for review July 30, 2024 10:19
Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@atsushi421 atsushi421 merged commit b7e159f into autowarefoundation:main Aug 6, 2024
29 of 30 checks passed
@atsushi421 atsushi421 deleted the fix_function_static_autoware_obstacle_stop_planner branch August 6, 2024 23:50
esteve pushed a commit to esteve/autoware.universe that referenced this pull request Aug 13, 2024
…Static (autowarefoundation#8264)

* fix: deal with functionStatic warnings

Signed-off-by: taisa1 <kento.osa@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: taisa1 <kento.osa@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
xtk8532704 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
…Static (autowarefoundation#8264)

* fix: deal with functionStatic warnings

Signed-off-by: taisa1 <kento.osa@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: taisa1 <kento.osa@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: xtk8532704 <1041084556@qq.com>
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) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants