-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
Wdeprecated #4665
Wdeprecated #4665
Conversation
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.
Generally looks good, but CI should be green.
@@ -32,8 +32,7 @@ | |||
* (i.e. itkNotUsed cannot be used) but is not always used. | |||
*/ | |||
template <typename T> | |||
[[deprecated("Preferably use the C++ `[[maybe_unused]]` attribute instead!")]] inline void |
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.
This commit seems to be fighting against clang-format, see:
https://github.com/InsightSoftwareConsortium/ITK/actions/runs/9097194889/job/25004442774?pr=4665
8b8595d
to
ddf71f6
Compare
832df86
to
db1a2bd
Compare
d4b7213
to
4d3c477
Compare
So the issue here is that But there are some tricky cases here: This struct is "deprecated": /**
* \brief A structure which enable changing any image class' pixel
* type to another.
*
*
* \sa Image::Rebind
* \deprecated Use template alias RebindImageType instead
*/
template <typename UPixelType, unsigned int VUImageDimension = VImageDimension>
struct Rebind
{
using Type = itk::VectorImage<UPixelType, VUImageDimension>;
}; but its replacement references the deprecated struct: using RebindImageType = typename Rebind<UPixelType, VUImageDimension>::Type; If the struct is tagged What do you all think of just changing the |
4d3c477
to
d0ccf4b
Compare
@andrei-sandor please amend the commit messge, as "COMP: Added ITK_DEPRECATED when \deprecated there" is no longer true. |
… of code This is used for struct,classes and functions. Decided to not use \deprecated Doxygen command and [[deprecated]] at the same time.
d0ccf4b
to
3501777
Compare
/azp ITK.macOS |
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.
🔢
Added ITK_DEPRECATED when \deprecated is used in a comment. They must both come together. Applied to structs, classes and functions