diff options
author | Martin Smith <martin.smith@qt.io> | 2017-07-18 12:55:59 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2017-12-04 13:39:57 +0000 |
commit | 5e0ef2defdb543aeef657c14aa0a65b395016e4d (patch) | |
tree | bf1c73b4181a2f929adb579b888e19c67d239b0e /src/corelib/global/qendian.h | |
parent | 49bb359580fe6c490fe552304a4acd8735c461f2 (diff) |
doc: Add missing template text
There are two fake classes in qendian.h that exist only documenting
a lot of operator functions, but now that clang is being used to parse
all C++ code, when a class is a template class, clangqdoc must see its
template stuff to recognize template type T, for example. Hence, this
update adds template<typename T> to some fake class declarations used
only for documentation purposes. ie, inside #ifdef Q_CLANG_QDOC.
Change-Id: I1988b77cd7f3bb97067e7107dd00de34770e9fed
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/corelib/global/qendian.h')
-rw-r--r-- | src/corelib/global/qendian.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h index 3337829de0..a14fce23f8 100644 --- a/src/corelib/global/qendian.h +++ b/src/corelib/global/qendian.h @@ -272,7 +272,8 @@ public: static Q_DECL_CONSTEXPR T fromSpecial(T source) { return qFromBigEndian(source); } }; -#ifdef Q_QDOC +#ifdef Q_CLANG_QDOC +template<typename T> class QLEInteger { public: explicit Q_DECL_CONSTEXPR QLEInteger(T i); @@ -292,6 +293,7 @@ public: QLEInteger &operator ^=(T i); }; +template<typename T> class QBEInteger { public: explicit Q_DECL_CONSTEXPR QBEInteger(T i); |