From c0ef2e12403d6107c1baf8d286439af8e122d10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 13 Feb 2022 12:02:32 +0100 Subject: [PATCH] GL: hide deprecated enum alias value from Doxygen. Due to \m_enum_values_as_keywords it caused the Half value of the deprecated HalfFloat to appear first in search as an alias. --- src/Magnum/GL/Attribute.h | 12 ++++++++++-- src/Magnum/GL/PixelFormat.h | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/Magnum/GL/Attribute.h b/src/Magnum/GL/Attribute.h index eb2b0b9b5..801fa0dbc 100644 --- a/src/Magnum/GL/Attribute.h +++ b/src/Magnum/GL/Attribute.h @@ -219,7 +219,11 @@ template class Attribute { * Half float. * @m_deprecated_since{2020,06} Use @ref DataType::Half instead. */ - HalfFloat CORRADE_DEPRECATED_ENUM("use Half instead") = Half, + HalfFloat CORRADE_DEPRECATED_ENUM("use Half instead") + #ifndef DOXYGEN_GENERATING_OUTPUT + = Half /* it messes up with @m_enum_values_as_keywords */ + #endif + , #endif #endif @@ -539,7 +543,11 @@ class MAGNUM_GL_EXPORT DynamicAttribute { * Half float. * @m_deprecated_since{2020,06} Use @ref DataType::Half instead. */ - HalfFloat CORRADE_DEPRECATED_ENUM("use Half instead") = Half, + HalfFloat CORRADE_DEPRECATED_ENUM("use Half instead") + #ifndef DOXYGEN_GENERATING_OUTPUT + = Half /* it messes up with @m_enum_values_as_keywords */ + #endif + , #endif #endif diff --git a/src/Magnum/GL/PixelFormat.h b/src/Magnum/GL/PixelFormat.h index 0e4e1f984..8b2fbf892 100644 --- a/src/Magnum/GL/PixelFormat.h +++ b/src/Magnum/GL/PixelFormat.h @@ -449,7 +449,11 @@ enum class PixelType: GLenum { * Half float. * @m_deprecated_since{2020,06} Use @ref PixelType::Half instead. */ - HalfFloat CORRADE_DEPRECATED_ENUM("use Half instead") = Half, + HalfFloat CORRADE_DEPRECATED_ENUM("use Half instead") + #ifndef DOXYGEN_GENERATING_OUTPUT + = Half /* it messes up with @m_enum_values_as_keywords */ + #endif + , #endif /**