diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-21 13:37:08 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-21 13:45:58 +0200 |
commit | 33349e3fce9f05ff5f4ca1427751edd9b9929e82 (patch) | |
tree | bf648884cd85e55f2d4c5f2ab02317ceba5dc318 /src/corelib/tools/qcontainerfwd.h | |
parent | e59e924f529fbebfe4572be1b818f262bbf20c2d (diff) |
Fix a bunch of qdoc warnings from QList types
For documentation purposes, we treat QList, QByteArrayList, and QStringList as
simple classes, whereas reality is a bit more complicated. We conditionally
change the declaration of the types for qdoc runs, and need to be consistent
to avoid a flood of warnings from clang when building documentation.
Change-Id: I22d529079e10f8fd3d93edc771e5f05729fa925f
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/corelib/tools/qcontainerfwd.h')
-rw-r--r-- | src/corelib/tools/qcontainerfwd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/tools/qcontainerfwd.h b/src/corelib/tools/qcontainerfwd.h index 46c2801b00..575cd1def9 100644 --- a/src/corelib/tools/qcontainerfwd.h +++ b/src/corelib/tools/qcontainerfwd.h @@ -61,8 +61,13 @@ template <class T> class QStack; template<class T, qsizetype Prealloc = 256> class QVarLengthArray; template <class T> class QList; template<typename T> using QVector = QList<T>; +#ifndef Q_CLANG_QDOC using QStringList = QList<QString>; using QByteArrayList = QList<QByteArray>; +#else +class QStringList; +class QByteArrayList; +#endif class QMetaType; class QVariant; |