-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
Replace postfix with prefix increment and decrement #3484
Merged
hjmjohnson
merged 1 commit into
InsightSoftwareConsortium:master
from
N-Dekker:Replace-postfix-with-prefix
Jul 14, 2022
Merged
Replace postfix with prefix increment and decrement #3484
hjmjohnson
merged 1 commit into
InsightSoftwareConsortium:master
from
N-Dekker:Replace-postfix-with-prefix
Jul 14, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dzenanz
approved these changes
Jul 12, 2022
2021f7c
to
917355e
Compare
dzenanz
approved these changes
Jul 13, 2022
Applied to the root of ITK source tree, at the GNU bash prompt: find . \( -iname itk*.cxx -or -iname itk*.hxx -or -iname itk*.h \) -exec perl -pi -w -e 's/ (\w+)\+\+;/ ++$1;/g;' {} \; find . \( -iname itk*.cxx -or -iname itk*.hxx -or -iname itk*.h \) -exec perl -pi -w -e 's/ (\w+)\-\-;/ --$1;/g;' {} \; Excluded itkConceptChecking.h, as it is intended to check both the prefix *and* the postfix forms. Excluded the unit tests, as they might intentionally test the postfix forms. Follow-up to: pull request InsightSoftwareConsortium#2493 commit f81578b "STYLE: Replace postfix by prefix increment in `for` loops in Core/Common"
917355e
to
7cb6454
Compare
hjmjohnson
approved these changes
Jul 14, 2022
N-Dekker
added a commit
to SuperElastix/elastix
that referenced
this pull request
Jul 15, 2022
Applied to the root of elastix source tree, at the GNU bash prompt: find . \( -iname *.cxx -or -iname *.hxx -or -iname *.h \) -exec perl -pi -w -e 's/ (\w+)\+\+;/ ++$1;/g;' {} \; find . \( -iname *.cxx -or -iname *.hxx -or -iname *.h \) -exec perl -pi -w -e 's/ (\w+)\-\-;/ --$1;/g;' {} \; Following ITK pull request InsightSoftwareConsortium/ITK#3484 commit InsightSoftwareConsortium/ITK@ec510c1 In accordance with common C++ guidelines, including: Google C++ Style Guide: "Use the prefix form (++i) of the increment and decrement operators unless you need postfix semantics." https://google.github.io/styleguide/cppguide.html#Preincrement_and_Predecrement Herb Sutter, Andrei Alexandrescu - C++ Coding Standards: 101 Rules, Guidelines, and Best Practices: "Prefer the canonical form of ++ and --. Prefer calling the prefix forms" https://www.oreilly.com/library/view/c-coding-standards/0321113586/ch29.html
N-Dekker
added a commit
to SuperElastix/elastix
that referenced
this pull request
Jul 15, 2022
Applied to the root of elastix source tree, at the GNU bash prompt: find . \( -iname *.cxx -or -iname *.hxx -or -iname *.h \) -exec perl -pi -w -e 's/ (\w+)\+\+;/ ++$1;/g;' {} \; find . \( -iname *.cxx -or -iname *.hxx -or -iname *.h \) -exec perl -pi -w -e 's/ (\w+)\-\-;/ --$1;/g;' {} \; Following ITK pull request InsightSoftwareConsortium/ITK#3484 commit InsightSoftwareConsortium/ITK@ec510c1 In accordance with common C++ guidelines, including: Google C++ Style Guide: "Use the prefix form (++i) of the increment and decrement operators unless you need postfix semantics." https://google.github.io/styleguide/cppguide.html#Preincrement_and_Predecrement Herb Sutter, Andrei Alexandrescu - C++ Coding Standards: 101 Rules, Guidelines, and Best Practices: "Prefer the canonical form of ++ and --. Prefer calling the prefix forms" https://www.oreilly.com/library/view/c-coding-standards/0321113586/ch29.html
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:Core
Issues affecting the Core module
area:Filtering
Issues affecting the Filtering module
area:IO
Issues affecting the IO module
area:Numerics
Issues affecting the Numerics module
area:Registration
Issues affecting the Registration module
area:Segmentation
Issues affecting the Segmentation module
area:Video
Issues affecting the Video module
type:Infrastructure
Infrastructure/ecosystem related changes, such as CMake or buildbots
type:Testing
Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Followed common C++ guidelines, including:
Google C++ Style Guide: "Use the prefix form (++i) of the increment and
decrement operators unless you need postfix semantics."
https://google.github.io/styleguide/cppguide.html#Preincrement_and_Predecrement
Herb Sutter, Andrei Alexandrescu - C++ Coding Standards: 101 Rules,
Guidelines, and Best Practices: "Prefer the canonical form of ++ and --.
Prefer calling the prefix forms"
https://www.oreilly.com/library/view/c-coding-standards/0321113586/ch29.html
Follow-up to pull request #2493 commit f81578b "STYLE: Replace postfix by prefix increment in
for
loops in Core/Common"