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

Transform classic loops to range-based for loops in module tracking #2837

Merged

Conversation

SunBlack
Copy link
Contributor

@SunBlack SunBlack commented Feb 9, 2019

Changes are based on the result of run-clang-tidy -header-filter='.' -checks='-,modernize-loop-convert' -fix

@SunBlack SunBlack force-pushed the range_based_loops_tracking branch from 44946fc to c5ddeeb Compare February 9, 2019 00:46
Copy link
Member

@taketwo taketwo left a comment

Choose a reason for hiding this comment

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

These changes are a bit more involved than just auto-ization of a loop 😄

Introduced optimizations LGTM, however technically we are changing the API for deriving classes. Somehow, I think it's rather unlikely there exist deriving classes in the wild, so would be OK to just merge this change without deprecation cycle.

@taketwo taketwo added changelog: API break Meta-information for changelog generation c++14 labels Feb 9, 2019
@SunBlack
Copy link
Contributor Author

SunBlack commented Feb 9, 2019

I know, but I don't even have an idea why this methods are virtual, because they are just simple helper methods.

Changes are based on the result of run-clang-tidy -header-filter='.*' -checks='-*,modernize-loop-convert' -fix
@SunBlack SunBlack force-pushed the range_based_loops_tracking branch from c5ddeeb to 08110c0 Compare February 9, 2019 17:05
@SunBlack
Copy link
Contributor Author

SunBlack commented Feb 9, 2019

Same here: Just edited typo in commit message via force push (just saw that I copy & pasted a typo across my last PRs)

@SunBlack SunBlack changed the title Tranform classic loops to range-based for loops in module tracking Transform classic loops to range-based for loops in module tracking Feb 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: API break Meta-information for changelog generation module: tracking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants