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
CppCheck: use some stl algorithms #37205
Conversation
f2a750c
to
7f8e062
Compare
7f8e062
to
e9a9c19
Compare
e9a9c19
to
eb5330a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, much easier to read in my opinion! Just had a few minor suggestions, and one question to make sure I don't miss something that may be a difference (but probably not)
Co-authored-by: Rob Applin <40830825+robertapplin@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. Did a code review and I can't see any differences to the old behaviour!
Description of work
A bit of cppcheck suppression file pruning, in this case dealing with some of the useStlAlgorithm errors.
I got to look at a little under half of these and some I've left in because they'd just make the code much more confusing (which probably means there needs to be some refactoring really).
Hopefully all the changes I've made are for quite simple cases.
I tried to format all the lambda functions nicely but often clang has other ideas.
There is no associated issue.
To test:
Reviewer
Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.
Code Review
Functional Tests
Does everything look good? Mark the review as Approve. A member of
@mantidproject/gatekeepers
will take care of it.Gatekeeper
If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.