-
Notifications
You must be signed in to change notification settings - Fork 119
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
COMP: Add missing semicolons to ITK macro calls #1227
Conversation
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]>
@Wildcarde Is it OK that I mentioned you as co-author of the commit? |
itkSetMacro(GradientMagnitudeTolerance, double) | ||
|
||
/** Setting: a stopping criterion, the value tolerance. By default 1e-5. | ||
* | ||
* The optimizer stops when | ||
* \f[ 2.0 * | f_k - f_{k-1} | \le | ||
* ValueTolerance * ( |f_k| + |f_{k-1}| + 1e-20 ) \f] | ||
* is satisfied MaxNrOfItWithoutImprovement times in a row. | ||
*/ | ||
itkGetConstMacro(ValueTolerance, double); | ||
itkSetMacro(GradientMagnitudeTolerance, double); | ||
|
||
/** Setting: a stopping criterion, the value tolerance. By default 1e-5. | ||
* | ||
* The optimizer stops when | ||
* \f[ 2.0 * | f_k - f_{k-1} | \le | ||
* ValueTolerance * ( |f_k| + |f_{k-1}| + 1e-20 ) \f] | ||
* is satisfied MaxNrOfItWithoutImprovement times in a row. | ||
*/ | ||
itkGetConstMacro(ValueTolerance, double); |
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.
@Wildcarde FYI, I only just applied your patch, but then the automatic source code formatting (clang-format) also made some adjustments, as you see here!
yep not a problem at all! |
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.