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_detected_object_validation): fix functionStatic #8482

Merged

Conversation

kobayu858
Copy link
Contributor

Description

This is a fix based on cppcheck functionStatic warnings

Since this function internally calls another function and updates member variables within it, it was decided that it would be better to call it using an instance. Therefore, I have suppressed the warning with a comment.

perception/autoware_detected_object_validation/src/obstacle_pointcloud/debugger.hpp:69:8: performance: inconclusive: Technically the member function 'autoware::detected_object_validation::obstacle_pointcloud::Debugger::addNeighborPointcloud' can be static (but you may consider moving to unnamed namespace). [functionStatic]
  void addNeighborPointcloud(const pcl::PointCloud<pcl::PointXY>::Ptr & input)
       ^

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 <yutaro.kobayashi@tier4.jp>
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Aug 15, 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 August 15, 2024 05:11
@kobayu858 kobayu858 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 15, 2024
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.89%. Comparing base (3470824) to head (27a53f7).
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8482   +/-   ##
=======================================
  Coverage   23.89%   23.89%           
=======================================
  Files        1380     1381    +1     
  Lines      101835   101824   -11     
  Branches    38773    38767    -6     
=======================================
- Hits        24337    24335    -2     
+ Misses      75041    75025   -16     
- Partials     2457     2464    +7     
Flag Coverage Δ *Carryforward flag
differential 2.94% <ø> (?)
total 23.89% <ø> (-0.01%) ⬇️ Carriedforward from 9d522ea

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

Copy link
Contributor

@Shin-kyoto Shin-kyoto left a comment

Choose a reason for hiding this comment

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

LGTM

  • I confirmed that addNeighborPointcloud(const pcl::PointCloud<pcl::PointXY>::Ptr & input) calls the member function(addNeighborPointcloud(const pcl::PointCloud<pcl::PointXYZ>::Ptr & input), so addNeighborPointcloud(const pcl::PointCloud<pcl::PointXY>::Ptr & input) should not be static function.
  • I confirmed that the content of this PR is good to merge.
  • I did NOT check this PR by running autoware.

@veqcc veqcc merged commit 0649ede into autowarefoundation:main Aug 16, 2024
38 of 39 checks passed
@kobayu858 kobayu858 deleted the fix/cppcheck_functionStatic_per-1 branch August 21, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (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