-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
Modernize initialization of local iterators, replacing IteratorType it; it = <expression>
#4970
Merged
hjmjohnson
merged 2 commits into
InsightSoftwareConsortium:master
from
N-Dekker:Replace-declare-plus-assign-with-init-iterators
Nov 21, 2024
Merged
Modernize initialization of local iterators, replacing IteratorType it; it = <expression>
#4970
hjmjohnson
merged 2 commits into
InsightSoftwareConsortium:master
from
N-Dekker:Replace-declare-plus-assign-with-init-iterators
Nov 21, 2024
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
Contributor
N-Dekker
commented
Nov 21, 2024
- Follow-up to pull request Modernize initialization of local SmartPointer variables #4964
Using Notepad++, Replace in Files, doing: Find what: ^( [ ]+)([^ ][^=\r\n]*[Ii]terator[^=\r\n]*)([ ]+)(\w+[Ii]t);[\r\n]+\1\4\ = Replace with: $1$2$3$4 = Filters: itk*.* !+\test Directory: D:\src\ITK\Modules [v] Match case (*) Regular expression - Follow-up to pull request InsightSoftwareConsortium#4964 commit 4926511 "STYLE: Replace `Pointer var; var = x` with `Pointer var = x`"
Small style improvement to the previous commit. - Following pull request InsightSoftwareConsortium#3959 commit ef24b65 "STYLE: Construct local variables by passing arguments directly (part 2)", 11 March, 2023
github-actions
bot
added
type:Infrastructure
Infrastructure/ecosystem related changes, such as CMake or buildbots
area:Filtering
Issues affecting the Filtering module
area:Segmentation
Issues affecting the Segmentation module
area:Numerics
Issues affecting the Numerics module
labels
Nov 21, 2024
hjmjohnson
approved these changes
Nov 21, 2024
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.
Example update PR would be nice for this too.
hjmjohnson
merged commit Nov 21, 2024
c35278c
into
InsightSoftwareConsortium:master
17 checks passed
Thanks for merging, @hjmjohnson
Did you encounter such cases in the Examples? |
N-Dekker
added a commit
to N-Dekker/ITK
that referenced
this pull request
Nov 21, 2024
Using Notepad++, Replace in Files, doing: Find what: ^( [ ]+)([^ ][^=\r\n]*)([ ]+)(\w+);[\r\n]+\1\4\ = Replace with: $1$2$3$4 = Filters: itk*.* !+\test Directory: D:\src\ITK\Modules [v] Match case (*) Regular expression Excluded a few cases where the syntax `T var; var = x` appears intentional (in ConceptChecking, ImageKmeansModelEstimator, MahalanobisDistanceThresholdImageFunction, QuasiNewtonOptimizerv4Template, and VariableSizeMatrix). - Following pull request InsightSoftwareConsortium#4970 commit 89b5bd0 "STYLE: Replace `Iterator it; it = x` with `Iterator it = x`" and other similar commits for different types of variables.
N-Dekker
added a commit
to N-Dekker/ITK
that referenced
this pull request
Nov 21, 2024
Using Notepad++, Replace in Files, doing: Find what: ^( [ ]+)([^ ][^=\r\n]*)([ ]+)(\w+);[\r\n]+\1\4\ = Replace with: $1$2$3$4 = Filters: itk*.* !+\test Directory: D:\src\ITK\Modules [v] Match case (*) Regular expression Excluded a few cases where the syntax `T var; var = x` appears intentional (in ConceptChecking, ImageKmeansModelEstimator, MahalanobisDistanceThresholdImageFunction, QuasiNewtonOptimizerv4Template, and VariableSizeMatrix). - Following pull request InsightSoftwareConsortium#4970 commit 89b5bd0 "STYLE: Replace `Iterator it; it = x` with `Iterator it = x`" and other similar commits for different types of variables.
hjmjohnson
pushed a commit
that referenced
this pull request
Nov 22, 2024
Using Notepad++, Replace in Files, doing: Find what: ^( [ ]+)([^ ][^=\r\n]*)([ ]+)(\w+);[\r\n]+\1\4\ = Replace with: $1$2$3$4 = Filters: itk*.* !+\test Directory: D:\src\ITK\Modules [v] Match case (*) Regular expression Excluded a few cases where the syntax `T var; var = x` appears intentional (in ConceptChecking, ImageKmeansModelEstimator, MahalanobisDistanceThresholdImageFunction, QuasiNewtonOptimizerv4Template, and VariableSizeMatrix). - Following pull request #4970 commit 89b5bd0 "STYLE: Replace `Iterator it; it = x` with `Iterator it = x`" and other similar commits for different types of variables.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:Filtering
Issues affecting the Filtering module
area:Numerics
Issues affecting the Numerics module
area:Segmentation
Issues affecting the Segmentation module
type:Infrastructure
Infrastructure/ecosystem related changes, such as CMake or buildbots
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.