STYLE: Remove void from empty function parameter lists#571
Merged
Conversation
0e44771 to
37b4772
Compare
Following ITK commit "STYLE: removing void if used in place of empty parameter list", by Dženan Zukić, 11 September 2018 InsightSoftwareConsortium/ITK@60807f4 And ITK commit "STYLE: Remove redundant void argument lists", by Hans Johnson, 20 February 2020 pull request InsightSoftwareConsortium/ITK#1628 InsightSoftwareConsortium/ITK@e6d859e In accordance with C++ Core Guidelines, August 19, 2021: "Don't use void as an argument type" https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#nl25-dont-use-void-as-an-argument-type Clang-Tidy "modernize-redundant-void-arg" check: https://clang.llvm.org/extra/clang-tidy/checks/modernize-redundant-void-arg.html Using Notepad++ v8.1.9.2, Find in Files (Filters: *.hxx;*.h;*.cxx [v] Match case): Find what: (void); Replace with: (); (*) Normal Find what: ( void ) Replace with: () (*) Normal Find what: (void) Replace with: () (*) Normal Find what: void) Replace with: ) (*) Normal Find what: (void)\r\n Replace with: ()\r\n (*) Extended
37b4772 to
8eae8a8
Compare
void from empty function parameter list (void)void from empty function parameter lists
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Following ITK commit "STYLE: removing void if used in place of empty parameter list", by Dženan Zukić, 11 September 2018
InsightSoftwareConsortium/ITK@60807f4
And ITK commit "STYLE: Remove redundant void argument lists", by Hans Johnson, 20 February 2020
pull request InsightSoftwareConsortium/ITK#1628
InsightSoftwareConsortium/ITK@e6d859e
In accordance with C++ Core Guidelines, August 19, 2021: "Don't use void as an argument type"
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#nl25-dont-use-void-as-an-argument-type
Clang-Tidy "modernize-redundant-void-arg" check:
https://clang.llvm.org/extra/clang-tidy/checks/modernize-redundant-void-arg.html