Skip to content

ENH: Update compiler macros#810

Merged
hjmjohnson merged 4 commits intoInsightSoftwareConsortium:masterfrom
maekclena:macro_cleanup
May 7, 2019
Merged

ENH: Update compiler macros#810
hjmjohnson merged 4 commits intoInsightSoftwareConsortium:masterfrom
maekclena:macro_cleanup

Conversation

@maekclena
Copy link
Copy Markdown
Contributor

Implements #543.

The required compiler versions come from the ITK Software Guide, book 1, chapter 2. For the Intel compiler I picked the last version compatible with Visual Studio 2010.

Copy link
Copy Markdown
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is good you have taken this up. Some suggestions in-line.

Comment thread Modules/Core/Common/include/itkMacro.h Outdated
Comment thread Modules/Core/Common/include/itkMacro.h Outdated
Comment thread Modules/Core/Common/include/itkMacro.h Outdated
Comment thread Modules/Core/Common/include/itkMacro.h Outdated
Copy link
Copy Markdown
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great progress!

Comment thread Modules/Core/Common/include/itkMacro.h Outdated
Comment thread Modules/Core/Common/include/itkMacro.h
Copy link
Copy Markdown
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic. The only thing left is to get the green dashboard.

Please squash before merging.

@hjmjohnson hjmjohnson merged commit aec9519 into InsightSoftwareConsortium:master May 7, 2019
@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented May 7, 2019

@maekclena do you have a discourse profile? Do you have any comments to add to discussion about compression?

@maekclena
Copy link
Copy Markdown
Contributor Author

No, I don't have an account. I'm not really knowledgeable on compression so I don't have anything to add to the discussion.

@maekclena maekclena deleted the macro_cleanup branch May 14, 2019 12:38
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Sep 26, 2021
`itkStaticConstMacro(name, type, value)` became unconditionally
identical to `static constexpr type name = value` with commit
aec9519 "ENH: Update compiler macros (InsightSoftwareConsortium#810)",
maekclena, 7 May 2019.

`itkGetStaticConstMacro(name)` became unconditionally identical to
`(Self::name)` with commit 84e490b
"Removing some outdated compiler conditionals", Hans Johnson, 31 July
2010.

Most `itkStaticConstMacro` calls were removed by commit 5c14741
"STYLE: Replace itkStaticConstMacro with static constexpr",
Hans Johnson, 2 February 2018.

Most `itkGetStaticConstMacro` calls were removed by commit d72d28f
"STYLE: Do not use itkGetStaticConstMacro in ITK",
Hans Johnson, 4 March 2018.
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Sep 26, 2021
`itkStaticConstMacro(name, type, value)` became unconditionally
identical to `static constexpr type name = value` with commit
aec9519 "ENH: Update compiler macros (InsightSoftwareConsortium#810)",
maekclena, 7 May 2019.

`itkGetStaticConstMacro(name)` became unconditionally identical to
`(Self::name)` with commit 84e490b
"Removing some outdated compiler conditionals", Hans Johnson, 31 July
2010.

Most `itkStaticConstMacro` calls were removed by commit 5c14741
"STYLE: Replace itkStaticConstMacro with static constexpr",
Hans Johnson, 2 February 2018.

Most `itkGetStaticConstMacro` calls were removed by commit d72d28f
"STYLE: Do not use itkGetStaticConstMacro in ITK",
Hans Johnson, 4 March 2018.
hjmjohnson added a commit to hjmjohnson/ITK that referenced this pull request Apr 19, 2026
Use static constexpr directly now that C++11 conformance
is required by all compilers.

:%s/itkStaticConstMacro *( *\([^,]*\),[ \_s]*\([^,]*\),\_s*\([^)]*\)) */static constexpr \2 \1 = \3/ge

'itkStaticConstMacro(name, type, value)' became unconditionally
identical to 'static constexpr type name = value' with ITK commit
aec9519 "ENH: Update compiler macros (InsightSoftwareConsortium#810)",
maekclena, 7 May 2019.

'itkGetStaticConstMacro(name)' became unconditionally identical to
'(Self::name)' with ITK commit 84e490b
"Removing some outdated compiler conditionals", Hans Johnson, 31 July
2010.

Most 'itkStaticConstMacro' calls were removed by ITK commit 5c14741
hjmjohnson added a commit to hjmjohnson/ITK that referenced this pull request Apr 19, 2026
Use static constexpr directly now that C++11 conformance
is required by all compilers.

:%s/itkStaticConstMacro *( *\([^,]*\),[ \_s]*\([^,]*\),\_s*\([^)]*\)) */static constexpr \2 \1 = \3/ge

'itkStaticConstMacro(name, type, value)' became unconditionally
identical to 'static constexpr type name = value' with ITK commit
aec9519 "ENH: Update compiler macros (InsightSoftwareConsortium#810)",
maekclena, 7 May 2019.

'itkGetStaticConstMacro(name)' became unconditionally identical to
'(Self::name)' with ITK commit 84e490b
"Removing some outdated compiler conditionals", Hans Johnson, 31 July
2010.

Most 'itkStaticConstMacro' calls were removed by ITK commit 5c14741
hjmjohnson added a commit to hjmjohnson/ITK that referenced this pull request Apr 19, 2026
Use static constexpr directly now that C++11 conformance
is required by all compilers.

:%s/itkStaticConstMacro *( *\([^,]*\),[ \_s]*\([^,]*\),\_s*\([^)]*\)) */static constexpr \2 \1 = \3/ge

'itkStaticConstMacro(name, type, value)' became unconditionally
identical to 'static constexpr type name = value' with ITK commit
aec9519 "ENH: Update compiler macros (InsightSoftwareConsortium#810)",
maekclena, 7 May 2019.

'itkGetStaticConstMacro(name)' became unconditionally identical to
'(Self::name)' with ITK commit 84e490b
"Removing some outdated compiler conditionals", Hans Johnson, 31 July
2010.

Most 'itkStaticConstMacro' calls were removed by ITK commit 5c14741
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants