From 49bb359580fe6c490fe552304a4acd8735c461f2 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Mon, 7 Aug 2017 11:20:36 +0200 Subject: doc: Fix qdoc errors for \fn commands in endian functions This change updates the \fn commands in the endian functions, which are template-based. clangqdoc now parses these \fn commands and expects to see all the template stuff in the signatures. Change-Id: I94c1aba8d710c97b8d41184d64b5341c88ece297 Reviewed-by: Martin Smith --- src/corelib/global/qendian.qdoc | 84 ++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/src/corelib/global/qendian.qdoc b/src/corelib/global/qendian.qdoc index 2ccdea5979..65df25a205 100644 --- a/src/corelib/global/qendian.qdoc +++ b/src/corelib/global/qendian.qdoc @@ -34,8 +34,8 @@ */ /*! + \fn template T qFromUnaligned(const void *ptr) \internal - \fn T qFromUnaligned(const void *ptr) \since 5.5 Loads a \c{T} from address \a ptr, which may be misaligned. @@ -45,8 +45,8 @@ */ /*! + \fn template void qToUnaligned(const T t, void *ptr) \internal - \fn void qToUnaligned(T t, void *ptr) \since 4.5 Stores \a t to address \a ptr, which may be misaligned. @@ -57,7 +57,7 @@ /*! - \fn T qFromBigEndian(const void *src) + \fn template T qFromBigEndian(const void *src) \since 4.3 \relates @@ -78,7 +78,7 @@ \sa qToLittleEndian() */ /*! - \fn T qFromBigEndian(T src) + \fn template T qFromBigEndian(T src) \since 4.3 \relates \overload @@ -90,7 +90,7 @@ unmodified. */ /*! - \fn T qFromLittleEndian(const void *src) + \fn template T qFromLittleEndian(const void *src) \since 4.3 \relates @@ -111,7 +111,7 @@ \sa qToLittleEndian() */ /*! - \fn T qFromLittleEndian(T src) + \fn template T qFromLittleEndian(T src) \since 4.3 \relates \overload @@ -123,7 +123,7 @@ unmodified. */ /*! - \fn void qToBigEndian(T src, void *dest) + \fn template void qToBigEndian(T src, void *dest) \since 4.3 \relates @@ -141,7 +141,7 @@ \sa qToLittleEndian() */ /*! - \fn T qToBigEndian(T src) + \fn template T qToBigEndian(T src) \since 4.3 \relates \overload @@ -153,7 +153,7 @@ unmodified. */ /*! - \fn void qToLittleEndian(T src, void *dest) + \fn template void qToLittleEndian(T src, void *dest) \since 4.3 \relates @@ -171,7 +171,7 @@ \sa qToBigEndian() */ /*! - \fn T qToLittleEndian(T src) + \fn template T qToLittleEndian(T src) \since 4.3 \relates \overload @@ -203,100 +203,100 @@ an exact endian is needed. */ -/*! \fn QLEInteger::QLEInteger(T value) +/*! \fn template QLEInteger::QLEInteger(T value) Constructs a QLEInteger with the given \a value. */ -/*! \fn QLEInteger &QLEInteger::operator=(T value) +/*! \fn template QLEInteger &QLEInteger::operator=(T i) - Assigns \a value to this QLEInteger and returns a reference to + Assigns \a i to this QLEInteger and returns a reference to this QLEInteger. */ /*! - \fn QLEInteger::operator T() const + \fn template QLEInteger::operator T() const Returns the value of this QLEInteger as a native integer. */ /*! - \fn bool QLEInteger::operator==(QLEInteger other) const + \fn template bool QLEInteger::operator==(QLEInteger other) const Returns \c true if the value of this QLEInteger is equal to the value of \a other. */ /*! - \fn bool QLEInteger::operator!=(QLEInteger other) const + \fn template bool QLEInteger::operator!=(QLEInteger other) const Returns \c true if the value of this QLEInteger is not equal to the value of \a other. */ /*! - \fn QLEInteger &QLEInteger::operator+=(T i) + \fn template QLEInteger &QLEInteger::operator+=(T i) Adds \a i to this QLEInteger and returns a reference to this object. */ /*! - \fn QLEInteger &QLEInteger::operator-=(T i) + \fn template QLEInteger &QLEInteger::operator-=(T i) Subtracts \a i from this QLEInteger and returns a reference to this object. */ /*! - \fn QLEInteger &QLEInteger::operator*=(T i) + \fn template QLEInteger &QLEInteger::operator*=(T i) Multiplies \a i with this QLEInteger and returns a reference to this object. */ /*! - \fn QLEInteger &QLEInteger::operator/=(T i) + \fn template QLEInteger &QLEInteger::operator/=(T i) Divides this QLEInteger with \a i and returns a reference to this object. */ /*! - \fn QLEInteger &QLEInteger::operator%=(T i) + \fn template QLEInteger &QLEInteger::operator%=(T i) Sets this QLEInteger to the remainder of a division by \a i and returns a reference to this object. */ /*! - \fn QLEInteger &QLEInteger::operator>>=(T i) + \fn template QLEInteger &QLEInteger::operator>>=(T i) Performs a left-shift by \a i on this QLEInteger and returns a reference to this object. */ /*! - \fn QLEInteger &QLEInteger::operator<<=(T i) + \fn template QLEInteger &QLEInteger::operator<<=(T i) Performs a right-shift by \a i on this QLEInteger and returns a reference to this object. */ /*! - \fn QLEInteger &QLEInteger::operator|=(T i) + \fn template QLEInteger &QLEInteger::operator|=(T i) Performs a bitwise OR with \a i onto this QLEInteger and returns a reference to this object. */ /*! - \fn QLEInteger &QLEInteger::operator&=(T i) + \fn template QLEInteger &QLEInteger::operator&=(T i) Performs a bitwise AND with \a i onto this QLEInteger and returns a reference to this object. */ /*! - \fn QLEInteger &QLEInteger::operator^=(T i) + \fn template QLEInteger &QLEInteger::operator^=(T i) Performs a bitwise XOR with \a i onto this QLEInteger and returns a reference to this object. @@ -322,100 +322,100 @@ an exact endian is needed. */ -/*! \fn QBEInteger::QBEInteger(T value) +/*! \fn template QBEInteger::QBEInteger(T value) Constructs a QBEInteger with the given \a value. */ -/*! \fn QBEInteger &QBEInteger::operator=(T value) +/*! \fn template QBEInteger &QBEInteger::operator=(T i) - Assigns \a value to this QBEInteger and returns a reference to + Assigns \a i to this QBEInteger and returns a reference to this QBEInteger. */ /*! - \fn QBEInteger::operator T() const + \fn template QBEInteger::operator T() const Returns the value of this QBEInteger as a native integer. */ /*! - \fn bool QBEInteger::operator==(QBEInteger other) const + \fn template bool QBEInteger::operator==(QBEInteger other) const Returns \c true if the value of this QBEInteger is equal to the value of \a other. */ /*! - \fn bool QBEInteger::operator!=(QBEInteger other) const + \fn template bool QBEInteger::operator!=(QBEInteger other) const Returns \c true if the value of this QBEInteger is not equal to the value of \a other. */ /*! - \fn QBEInteger &QBEInteger::operator+=(T i) + \fn template QBEInteger &QBEInteger::operator+=(T i) Adds \a i to this QBEInteger and returns a reference to this object. */ /*! - \fn QBEInteger &QBEInteger::operator-=(T i) + \fn template QBEInteger &QBEInteger::operator-=(T i) Subtracts \a i from this QBEInteger and returns a reference to this object. */ /*! - \fn QBEInteger &QBEInteger::operator*=(T i) + \fn template QBEInteger &QBEInteger::operator*=(T i) Multiplies \a i with this QBEInteger and returns a reference to this object. */ /*! - \fn QBEInteger &QBEInteger::operator/=(T i) + \fn template QBEInteger &QBEInteger::operator/=(T i) Divides this QBEInteger with \a i and returns a reference to this object. */ /*! - \fn QBEInteger &QBEInteger::operator%=(T i) + \fn template QBEInteger &QBEInteger::operator%=(T i) Sets this QBEInteger to the remainder of a division by \a i and returns a reference to this object. */ /*! - \fn QBEInteger &QBEInteger::operator>>=(T i) + \fn template QBEInteger &QBEInteger::operator>>=(T i) Performs a left-shift by \a i on this QBEInteger and returns a reference to this object. */ /*! - \fn QBEInteger &QBEInteger::operator<<=(T i) + \fn template QBEInteger &QBEInteger::operator<<=(T i) Performs a right-shift by \a i on this QBEInteger and returns a reference to this object. */ /*! - \fn QBEInteger &QBEInteger::operator|=(T i) + \fn template QBEInteger &QBEInteger::operator|=(T i) Performs a bitwise OR with \a i onto this QBEInteger and returns a reference to this object. */ /*! - \fn QBEInteger &QBEInteger::operator&=(T i) + \fn template QBEInteger &QBEInteger::operator&=(T i) Performs a bitwise AND with \a i onto this QBEInteger and returns a reference to this object. */ /*! - \fn QBEInteger &QBEInteger::operator^=(T i) + \fn template QBEInteger &QBEInteger::operator^=(T i) Performs a bitwise XOR with \a i onto this QBEInteger and returns a reference to this object. -- cgit v1.2.3