From dbb5005aa31286b99862b09b94570a56ae7eb0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Sat, 4 Jan 2025 10:20:02 -0500 Subject: [PATCH] DOC: Fix legacy methods `itk::Transform` Doxygen warnings Fix legacy methods `itk::Transform` Doxygen warnings: protect with the `ITK_LEGACY_REMOVE` macro definition a function declared as legacy with the `itkLegacyMacro` in `itk::Transform`. Fixes: ``` Warning Parsing file /home/kitware/DashboModules/Core/Transform/include/itkTransform.h:535: warning: Illegal member name found. ``` and ``` Warning Modules/Core/Transform/include/itkTransform.h:535: warning: no uniquely matching class member found for itk::Transform::virtual void itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::ComputeInverseJacobianWithRespectToPosition() const & ``` Raised for example in: https://open.cdash.org/viewBuildError.php?type=1&buildid=10124761 --- Modules/Core/Transform/include/itkTransform.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Modules/Core/Transform/include/itkTransform.h b/Modules/Core/Transform/include/itkTransform.h index b2fe825d2fd..14c868ca197 100644 --- a/Modules/Core/Transform/include/itkTransform.h +++ b/Modules/Core/Transform/include/itkTransform.h @@ -529,9 +529,11 @@ class ITK_TEMPLATE_EXPORT Transform : public TransformBaseTemplateGetNameOfClass()); } + +#if !defined(ITK_LEGACY_REMOVE) itkLegacyMacro(virtual void ComputeJacobianWithRespectToPosition(const InputPointType & x, JacobianType & jacobian) const;) - +#endif /** This provides the ability to get a local jacobian value * in a dense/local transform, e.g. DisplacementFieldTransform. For such @@ -540,8 +542,11 @@ class ITK_TEMPLATE_EXPORT Transform : public TransformBaseTemplate