From 0807ede08c6fb37ed27f920875ae892a0b4f64c7 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 26 Oct 2020 10:21:59 +0100 Subject: Replace see-alsos in qfloat16 documentation with \overload Explicitly specify the float-overload, otherwise it's just ends up referring to itself, and won't generate a link. Also document qFpClassify(qfloat16) overload. The internal implementation was documented, but the public overload not. Change-Id: Ifdc364597a0e7b4d943f0ec6d149977a15c805ef Reviewed-by: Paul Wicking --- src/corelib/global/qnumeric.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/corelib/global/qnumeric.cpp') diff --git a/src/corelib/global/qnumeric.cpp b/src/corelib/global/qnumeric.cpp index b754155b307..e00f0af283e 100644 --- a/src/corelib/global/qnumeric.cpp +++ b/src/corelib/global/qnumeric.cpp @@ -104,6 +104,9 @@ Q_CORE_EXPORT double qQNaN() { return qt_qnan(); } Q_CORE_EXPORT double qInf() { return qt_inf(); } /*! + \fn int qFpClassify(double val) + \fn int qFpClassify(float val) + \relates Classifies a floating-point value. @@ -118,10 +121,6 @@ Q_CORE_EXPORT double qInf() { return qt_inf(); } \endlist */ Q_CORE_EXPORT int qFpClassify(double val) { return qt_fpclassify(val); } - -/*! - \overload -*/ Q_CORE_EXPORT int qFpClassify(float val) { return qt_fpclassify(val); } -- cgit v1.2.3