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

ENH: Default to allow ITK_MACROEND_NOOP_STATEMENT #4706

Conversation

hjmjohnson
Copy link
Member

@hjmjohnson hjmjohnson commented Jun 3, 2024

The ITK_MACROEND_NOOP_STATEMENT is always supported in compilers,
and allows macros to be used with
semi-colons without warnings or clang-format
inconsistencies.

related to #4699

PR Checklist

NOTE: Does require ';' at the end of ITK macros when used. This greatly simplifies meeting the clang-format desired formatting behaviors in the code base.

The ITK_MACROEND_NOOP_STATEMENT is always supported
in compilers, and allows macros to be used with
semi-colons without warnings or clang-format
inconsistencies.
@hjmjohnson hjmjohnson added the type:Style Style changes: no logic impact (indentation, comments, naming) label Jun 3, 2024
@hjmjohnson hjmjohnson self-assigned this Jun 3, 2024
@github-actions github-actions bot added type:Enhancement Improvement of existing methods or implementation area:Core Issues affecting the Core module and removed type:Style Style changes: no logic impact (indentation, comments, naming) labels Jun 3, 2024
@hjmjohnson hjmjohnson mentioned this pull request Jun 3, 2024
@github-actions github-actions bot added type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots area:Remotes Issues affecting the Remote module area:Documentation Issues affecting the Documentation module labels Jun 3, 2024
@hjmjohnson hjmjohnson merged commit 2185144 into InsightSoftwareConsortium:master Jun 4, 2024
14 checks passed
@hjmjohnson hjmjohnson deleted the force-allow-noop-statement branch June 4, 2024 15:47
N-Dekker added a commit to SuperElastix/elastix that referenced this pull request Aug 30, 2024
Aims to resolve issue #1224 "Missing semicolons causing compile issues with some compilers".

ITK has become stricter with respect to those semicolons from ITK pull request InsightSoftwareConsortium/ITK#4706 commit InsightSoftwareConsortium/ITK@55e2339 "ENH: Default to allow ITK_MACROEND_NOOP_STATEMENT", Hans Johnson, June 4, 2024.

Co-authored-by: Wildcarde <[email protected]>
N-Dekker added a commit to SuperElastix/elastix that referenced this pull request Aug 30, 2024
Aims to resolve issue #1224 "Missing semicolons causing compile issues with some compilers".

ITK has become stricter with respect to those semicolons from ITK pull request InsightSoftwareConsortium/ITK#4706 commit InsightSoftwareConsortium/ITK@55e2339 "ENH: Default to allow ITK_MACROEND_NOOP_STATEMENT", Hans Johnson, June 4, 2024.

Co-authored-by: Wildcarde <[email protected]>
N-Dekker added a commit to SuperElastix/elastix that referenced this pull request Aug 30, 2024
Aims to resolve issue #1224 "Missing semicolons causing compile issues with some compilers".

ITK has become stricter with respect to those semicolons from ITK pull request InsightSoftwareConsortium/ITK#4706 commit InsightSoftwareConsortium/ITK@55e2339 "ENH: Default to allow ITK_MACROEND_NOOP_STATEMENT", Hans Johnson, June 4, 2024.

Co-authored-by: Wildcarde <[email protected]>
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:Documentation Issues affecting the Documentation module area:Remotes Issues affecting the Remote module type:Enhancement Improvement of existing methods or implementation type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants