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

Prefer combined assignment operators #3030

Merged
merged 7 commits into from
Apr 23, 2019

Conversation

SunBlack
Copy link
Contributor

Prefer usage of += -= *= /= %= ^= &= |=.

Changes are done via regex: ^( +)(\S+)\s*=\s*\2\s*\|(\s*[\d\w]) => \1\2 |=\3.

There are a few hint left for +=in module tracking, because ParticleXYR and similar doesn't has defined required operator and I didn't wanted to define them in this PR ;).

@SunBlack SunBlack force-pushed the operator_usage_improvement branch from f8ae91e to f1050cc Compare April 21, 2019 09:18
@SunBlack SunBlack force-pushed the operator_usage_improvement branch from f1050cc to bcdbe8d Compare April 23, 2019 09:45
@taketwo taketwo merged commit fb1cbd0 into PointCloudLibrary:master Apr 23, 2019
@SunBlack SunBlack deleted the operator_usage_improvement branch April 23, 2019 19:22
@taketwo taketwo changed the title Operator usage improvement Prefer combined assignment operators Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants