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

Mark non-const and non-modifying member functions as const #3836

Conversation

SunBlack
Copy link
Contributor

@SunBlack SunBlack commented Mar 31, 2020

Changes are done by: run-clang-tidy -header-filter='.' -checks='-,readability-make-member-function-const' -fix

//edit: I touched a few 3rd-Party code. As you have started to touch sometimes 3rd-Part code: It is okay or should I revert this?

Copy link
Member

@kunaltyagi kunaltyagi left a comment

Choose a reason for hiding this comment

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

LGTM.

IMO, if a tool complains, we might as well apply the fix so we can uniformly check the tool for overall status of PCL.

I tried using XML for reporting clang-tidy results, and that's going to be a difficult goal; but maybe to avoid regressions, it might be better to integrate simple text output of errors ASAP, specially of the checks that you've been adding

@kunaltyagi kunaltyagi changed the title Make member function const Make member functions const (where possible) Mar 31, 2020
@kunaltyagi kunaltyagi added changelog: enhancement Meta-information for changelog generation needs: code review Specify why not closed/merged yet labels Mar 31, 2020
@kunaltyagi kunaltyagi changed the title Make member functions const (where possible) Mark non-const and non-modifying member functions as const Mar 31, 2020
@SergioRAgostinho SergioRAgostinho self-requested a review April 1, 2020 07:18
@SergioRAgostinho SergioRAgostinho merged commit f827195 into PointCloudLibrary:master Apr 1, 2020
@SergioRAgostinho SergioRAgostinho removed their request for review April 1, 2020 19:29
@SunBlack SunBlack deleted the readability-make-member-function-const branch April 2, 2020 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: enhancement Meta-information for changelog generation needs: code review Specify why not closed/merged yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants