Replace usages of Q_CLANG_QDOC with Q_QDOC
To allow the user to customize the C++ code that QDoc sees, so as to be able to work-around some limitations on QDoc itself, QDoc defines two symbols: Q_QDOC and Q_CLANG_QDOC, both of which are "true" during an entire execution of QDoc. At a certain point in time, QDoc allowed the user the choice between a custom C++ parser and a Clang based one. The Q_QDOC symbol would always be defined while the Q_CLANG_QDOC symbol would be defined only when the Clang based parser was chosen. In more recent times, QDoc always uses a Clang based parser, such that both Q_CLANG_QDOC and Q_QDOC are always defined, making them equivalent. To avoid using different symbols, and the possible confusion and fragmentation that derives from it, all usages of Q_CLANG_QDOC are now replaced by the equivalent usages of Q_QDOC. Change-Id: I5810abb9ad1016a4c5bbea99acd03381b8514b3f Reviewed-by: Kai Koehne <kai.koehne@qt.io>
This commit is contained in:
parent
2b35b89803
commit
e2fef733be
@ -4,13 +4,13 @@
|
||||
#ifndef QTBASE_QTTASKBUILDER_H
|
||||
#define QTBASE_QTTASKBUILDER_H
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
#include <QtConcurrent/qtconcurrentstoredfunctioncall.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
|
||||
namespace QtConcurrent {
|
||||
|
||||
@ -126,7 +126,7 @@ private: // Data
|
||||
|
||||
} // namespace QtConcurrent
|
||||
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include <QtConcurrent/qtconcurrent_global.h>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
#include <QtConcurrent/qtconcurrentfilterkernel.h>
|
||||
#include <QtConcurrent/qtconcurrentfunctionwrappers.h>
|
||||
@ -71,7 +71,7 @@ QFuture<ResultType> filteredReduced(Sequence &&sequence,
|
||||
std::forward<KeepFunctor>(keep), std::forward<ReduceFunctor>(reduce), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Sequence, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -94,7 +94,7 @@ QFuture<ResultType> filteredReduced(QThreadPool *pool,
|
||||
ResultType(std::forward<InitialValueType>(initialValue)), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Sequence, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -116,7 +116,7 @@ QFuture<ResultType> filteredReduced(Sequence &&sequence,
|
||||
ResultType(std::forward<InitialValueType>(initialValue)), options);
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Sequence, typename KeepFunctor, typename ReduceFunctor,
|
||||
std::enable_if_t<QtPrivate::isInvocable<KeepFunctor, Sequence>::value, int> = 0,
|
||||
typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type>
|
||||
@ -213,7 +213,7 @@ QFuture<ResultType> filteredReduced(Iterator begin,
|
||||
std::forward<ReduceFunctor>(reduce), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Iterator, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -236,7 +236,7 @@ QFuture<ResultType> filteredReduced(QThreadPool *pool,
|
||||
ResultType(std::forward<InitialValueType>(initialValue)), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Iterator, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -259,7 +259,7 @@ QFuture<ResultType> filteredReduced(Iterator begin,
|
||||
ResultType(std::forward<InitialValueType>(initialValue)), options);
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Iterator, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type>
|
||||
QFuture<ResultType> filteredReduced(QThreadPool *pool,
|
||||
@ -406,7 +406,7 @@ ResultType blockingFilteredReduced(Sequence &&sequence,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Sequence, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -430,7 +430,7 @@ ResultType blockingFilteredReduced(QThreadPool *pool,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Sequence, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -453,7 +453,7 @@ ResultType blockingFilteredReduced(Sequence &&sequence,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Sequence, typename KeepFunctor, typename ReduceFunctor,
|
||||
std::enable_if_t<QtPrivate::isInvocable<KeepFunctor, Sequence>::value, int> = 0,
|
||||
typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type>
|
||||
@ -557,7 +557,7 @@ ResultType blockingFilteredReduced(Iterator begin,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Iterator, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -581,7 +581,7 @@ ResultType blockingFilteredReduced(QThreadPool *pool,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Iterator, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -604,7 +604,7 @@ ResultType blockingFilteredReduced(Iterator begin,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Iterator, typename KeepFunctor, typename ReduceFunctor,
|
||||
typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type>
|
||||
ResultType blockingFilteredReduced(QThreadPool *pool,
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <QtConcurrent/qtconcurrent_global.h>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined (Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined (Q_QDOC)
|
||||
|
||||
#include <QtConcurrent/qtconcurrentiteratekernel.h>
|
||||
#include <QtConcurrent/qtconcurrentmapkernel.h>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include <tuple>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "private/qfunctions_p.h"
|
||||
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <QtConcurrent/qtconcurrent_global.h>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
#include <QtCore/qatomic.h>
|
||||
#include <QtConcurrent/qtconcurrentmedian.h>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include <QtConcurrent/qtconcurrent_global.h>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
#include <QtConcurrent/qtconcurrentmapkernel.h>
|
||||
#include <QtConcurrent/qtconcurrentreducekernel.h>
|
||||
@ -75,7 +75,7 @@ QFuture<ResultType> mappedReduced(Sequence &&sequence,
|
||||
std::forward<MapFunctor>(map), std::forward<ReduceFunctor>(reduce), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -97,7 +97,7 @@ QFuture<ResultType> mappedReduced(QThreadPool *pool,
|
||||
std::forward<ReduceFunctor>(reduce),
|
||||
ResultType(std::forward<InitialValueType>(initialValue)), options);
|
||||
}
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -148,7 +148,7 @@ QFuture<ResultType> mappedReduced(Sequence &&sequence,
|
||||
std::forward<MapFunctor>(map), std::forward<ReduceFunctor>(reduce), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename Sequence, typename MapFunctor, typename ReduceFunctor, typename ResultType,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -172,7 +172,7 @@ QFuture<ResultType> mappedReduced(QThreadPool *pool,
|
||||
ResultType(std::forward<InitialValueType>(initialValue)), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename Sequence, typename MapFunctor, typename ReduceFunctor, typename ResultType,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -223,7 +223,7 @@ QFuture<ResultType> mappedReduced(Iterator begin,
|
||||
std::forward<ReduceFunctor>(reduce), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -246,7 +246,7 @@ QFuture<ResultType> mappedReduced(QThreadPool *pool,
|
||||
ResultType(std::forward<InitialValueType>(initialValue)), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -298,7 +298,7 @@ QFuture<ResultType> mappedReduced(Iterator begin,
|
||||
std::forward<ReduceFunctor>(reduce), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename Iterator, typename MapFunctor, typename ReduceFunctor, typename ResultType,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -322,7 +322,7 @@ QFuture<ResultType> mappedReduced(QThreadPool *pool,
|
||||
ResultType(std::forward<InitialValueType>(initialValue)), options);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename Iterator, typename MapFunctor, typename ReduceFunctor, typename ResultType,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -453,7 +453,7 @@ ResultType blockingMappedReduced(Sequence &&sequence,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -477,7 +477,7 @@ ResultType blockingMappedReduced(QThreadPool *pool,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -533,7 +533,7 @@ ResultType blockingMappedReduced(Sequence &&sequence,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename MapFunctor, typename ReduceFunctor, typename Sequence, typename ResultType,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -558,7 +558,7 @@ ResultType blockingMappedReduced(QThreadPool *pool,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename MapFunctor, typename ReduceFunctor, typename Sequence, typename ResultType,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -612,7 +612,7 @@ ResultType blockingMappedReduced(Iterator begin,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -637,7 +637,7 @@ ResultType blockingMappedReduced(QThreadPool *pool,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -692,7 +692,7 @@ ResultType blockingMappedReduced(Iterator begin,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename Iterator, typename MapFunctor, typename ReduceFunctor, typename ResultType,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
@ -717,7 +717,7 @@ ResultType blockingMappedReduced(QThreadPool *pool,
|
||||
return future.takeResult();
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename Iterator, typename MapFunctor, typename ReduceFunctor, typename ResultType,
|
||||
typename InitialValueType>
|
||||
#else
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <QtConcurrent/qtconcurrent_global.h>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined (Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined (Q_QDOC)
|
||||
|
||||
#include <QtConcurrent/qtconcurrentiteratekernel.h>
|
||||
#include <QtConcurrent/qtconcurrentreducekernel.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <QtConcurrent/qtconcurrent_global.h>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <QtConcurrent/qtconcurrent_global.h>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
#include <QtCore/qatomic.h>
|
||||
#include <QtCore/qlist.h>
|
||||
@ -40,7 +40,7 @@ namespace QtConcurrent {
|
||||
MapReduce won't start any new threads, and when it exceeds
|
||||
ReduceQueueThrottleLimit running threads will be stopped.
|
||||
*/
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
enum ReduceQueueLimits {
|
||||
ReduceQueueStartLimit = 20,
|
||||
ReduceQueueThrottleLimit = 30
|
||||
@ -70,7 +70,7 @@ enum ReduceOption {
|
||||
// ParallelReduce = 0x8
|
||||
};
|
||||
Q_DECLARE_FLAGS(ReduceOptions, ReduceOption)
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(ReduceOptions)
|
||||
#endif
|
||||
// supports both ordered and out-of-order reduction
|
||||
|
@ -10,14 +10,14 @@
|
||||
|
||||
#include <QtConcurrent/qtconcurrentcompilertest.h>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
#include <QtConcurrent/qtconcurrentrunbase.h>
|
||||
#include <QtConcurrent/qtconcurrentstoredfunctioncall.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
|
||||
typedef int Function;
|
||||
|
||||
@ -82,7 +82,7 @@ auto run(Function &&f, Args &&...args)
|
||||
|
||||
} //namespace QtConcurrent
|
||||
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
|
||||
namespace QtConcurrent {
|
||||
|
||||
@ -30,7 +30,7 @@ constexpr auto task(Task &&t) { return QTaskBuilder(std::forward<Task>(t)); }
|
||||
|
||||
} // namespace QtConcurrent
|
||||
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include "qtconcurrentthreadengine.h"
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <QtConcurrent/qtconcurrent_global.h>
|
||||
|
||||
#if !defined(QT_NO_CONCURRENT) ||defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_CONCURRENT) ||defined(Q_QDOC)
|
||||
|
||||
#include <QtCore/qthreadpool.h>
|
||||
#include <QtCore/qfuture.h>
|
||||
|
@ -1040,7 +1040,7 @@
|
||||
* "Weak overloads" - makes an otherwise confliciting overload weaker
|
||||
* (by making it a template)
|
||||
*/
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
# define Q_WEAK_OVERLOAD template <typename = void>
|
||||
#else
|
||||
# define Q_WEAK_OVERLOAD
|
||||
@ -1064,7 +1064,7 @@
|
||||
* The workaround: declare such functions as function templates.
|
||||
* (Obviously a function template does not need this marker.)
|
||||
*/
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
# define QT_POST_CXX17_API_IN_EXPORTED_CLASS template <typename = void>
|
||||
#else
|
||||
# define QT_POST_CXX17_API_IN_EXPORTED_CLASS
|
||||
|
@ -302,7 +302,7 @@ public:
|
||||
static constexpr T fromSpecial(T source) { return qFromBigEndian(source); }
|
||||
};
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template<typename T>
|
||||
class QLEInteger {
|
||||
public:
|
||||
|
@ -24,7 +24,7 @@ public:
|
||||
// Microsoft Visual Studio has buggy behavior when it comes to
|
||||
// unsigned enums: even if the enum is unsigned, the enum tags are
|
||||
// always signed
|
||||
# if !defined(__LP64__) && !defined(Q_CLANG_QDOC)
|
||||
# if !defined(__LP64__) && !defined(Q_QDOC)
|
||||
constexpr inline Q_IMPLICIT QFlag(long value) noexcept : i(int(value)) {}
|
||||
constexpr inline Q_IMPLICIT QFlag(ulong value) noexcept : i(int(long(value))) {}
|
||||
# endif
|
||||
@ -57,7 +57,7 @@ class QFlags
|
||||
static_assert((std::is_enum<Enum>::value), "QFlags is only usable on enumeration types.");
|
||||
|
||||
public:
|
||||
#if defined(Q_CC_MSVC) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_CC_MSVC) || defined(Q_QDOC)
|
||||
// see above for MSVC
|
||||
// the definition below is too complex for qdoc
|
||||
typedef int Int;
|
||||
|
@ -138,7 +138,7 @@ Q_DECL_CONST_FUNCTION static inline int qt_fpclassify(float f)
|
||||
return qnumeric_std_wrapper::fpclassify(f);
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
namespace {
|
||||
/*!
|
||||
Returns true if the double \a v can be converted to type \c T, false if
|
||||
@ -312,7 +312,7 @@ template <auto V2, typename T> bool mul_overflow(T v1, T *r)
|
||||
return qMulOverflow<V2, T>(v1, r);
|
||||
}
|
||||
}
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
/*
|
||||
Safely narrows \a x to \c{To}. Let \c L be
|
||||
|
@ -64,7 +64,7 @@
|
||||
|
||||
int size() const { return int(size(QT6_CALL_NEW_OVERLOAD)); }
|
||||
*/
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
# define QT6_DECL_NEW_OVERLOAD
|
||||
# define QT6_DECL_NEW_OVERLOAD_TAIL
|
||||
# define QT6_IMPL_NEW_OVERLOAD
|
||||
|
@ -241,7 +241,7 @@ template<typename Container, typename ...T>
|
||||
using QDebugIfHasDebugStreamContainer =
|
||||
std::enable_if_t<std::conjunction_v<QTypeTraits::has_ostream_operator_container<QDebug, Container, T>...>, QDebug>;
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
|
||||
template<typename T>
|
||||
inline QDebugIfHasDebugStreamContainer<QList<T>, T> operator<<(QDebug debug, const QList<T> &vec)
|
||||
@ -380,7 +380,7 @@ QDebug operator<<(QDebug debug, const std::pair<T1, T2> &pair);
|
||||
template <typename T>
|
||||
QDebug operator<<(QDebug debug, const QContiguousCache<T> &cache);
|
||||
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
template <class T>
|
||||
inline QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
QDir(const QString &path = QString());
|
||||
QDir(const QString &path, const QString &nameFilter,
|
||||
SortFlags sort = SortFlags(Name | IgnoreCase), Filters filter = AllEntries);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QDir(const std::filesystem::path &path);
|
||||
QDir(const std::filesystem::path &path, const QString &nameFilter,
|
||||
SortFlags sort = SortFlags(Name | IgnoreCase), Filters filter = AllEntries);
|
||||
@ -91,7 +91,7 @@ public:
|
||||
{ d_ptr.swap(other.d_ptr); }
|
||||
|
||||
void setPath(const QString &path);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
void setPath(const std::filesystem::path &path);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
template<typename T, QtPrivate::ForceFilesystemPath<T> = 0>
|
||||
@ -103,7 +103,7 @@ public:
|
||||
QString path() const;
|
||||
QString absolutePath() const;
|
||||
QString canonicalPath() const;
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_QDOC)
|
||||
std::filesystem::path filesystemPath() const
|
||||
{ return QtPrivate::toFilesystemPath(path()); }
|
||||
std::filesystem::path filesystemAbsolutePath() const
|
||||
@ -115,7 +115,7 @@ public:
|
||||
#ifndef QT_BOOTSTRAPPED
|
||||
static void setSearchPaths(const QString &prefix, const QStringList &searchPaths);
|
||||
static void addSearchPath(const QString &prefix, const QString &path);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
static void addSearchPath(const QString &prefix, const std::filesystem::path &path);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
template<typename T, QtPrivate::ForceFilesystemPath<T> = 0>
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#if QT_CONFIG(cxx17_filesystem)
|
||||
#include <filesystem>
|
||||
#elif defined(Q_CLANG_QDOC)
|
||||
#elif defined(Q_QDOC)
|
||||
namespace std {
|
||||
namespace filesystem {
|
||||
class path {
|
||||
@ -64,7 +64,7 @@ class Q_CORE_EXPORT QFile : public QFileDevice
|
||||
public:
|
||||
QFile();
|
||||
QFile(const QString &name);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QFile(const std::filesystem::path &name);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
template<typename T, QtPrivate::ForceFilesystemPath<T> = 0>
|
||||
@ -77,7 +77,7 @@ public:
|
||||
explicit QFile(QObject *parent);
|
||||
QFile(const QString &name, QObject *parent);
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QFile(const std::filesystem::path &path, QObject *parent);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
template<typename T, QtPrivate::ForceFilesystemPath<T> = 0>
|
||||
@ -89,12 +89,12 @@ public:
|
||||
~QFile();
|
||||
|
||||
QString fileName() const override;
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_QDOC)
|
||||
std::filesystem::path filesystemFileName() const
|
||||
{ return QtPrivate::toFilesystemPath(fileName()); }
|
||||
#endif
|
||||
void setFileName(const QString &name);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
void setFileName(const std::filesystem::path &name);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
template<typename T, QtPrivate::ForceFilesystemPath<T> = 0>
|
||||
@ -136,7 +136,7 @@ public:
|
||||
|
||||
bool exists() const;
|
||||
static bool exists(const QString &fileName);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
static bool exists(const std::filesystem::path &fileName);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
template<typename T, QtPrivate::ForceFilesystemPath<T> = 0>
|
||||
@ -148,7 +148,7 @@ public:
|
||||
|
||||
QString symLinkTarget() const;
|
||||
static QString symLinkTarget(const QString &fileName);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
std::filesystem::path filesystemSymLinkTarget() const;
|
||||
static std::filesystem::path filesystemSymLinkTarget(const std::filesystem::path &fileName);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
@ -165,7 +165,7 @@ public:
|
||||
|
||||
bool remove();
|
||||
static bool remove(const QString &fileName);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
static bool remove(const std::filesystem::path &fileName);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
template<typename T, QtPrivate::ForceFilesystemPath<T> = 0>
|
||||
@ -177,7 +177,7 @@ public:
|
||||
|
||||
bool moveToTrash();
|
||||
static bool moveToTrash(const QString &fileName, QString *pathInTrash = nullptr);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
static bool moveToTrash(const std::filesystem::path &fileName, QString *pathInTrash = nullptr);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
template<typename T, QtPrivate::ForceFilesystemPath<T> = 0>
|
||||
@ -189,7 +189,7 @@ public:
|
||||
|
||||
bool rename(const QString &newName);
|
||||
static bool rename(const QString &oldName, const QString &newName);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool rename(const std::filesystem::path &newName);
|
||||
static bool rename(const std::filesystem::path &oldName,
|
||||
const std::filesystem::path &newName);
|
||||
@ -209,7 +209,7 @@ public:
|
||||
|
||||
bool link(const QString &newName);
|
||||
static bool link(const QString &fileName, const QString &newName);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool link(const std::filesystem::path &newName);
|
||||
static bool link(const std::filesystem::path &fileName,
|
||||
const std::filesystem::path &newName);
|
||||
@ -229,7 +229,7 @@ public:
|
||||
|
||||
bool copy(const QString &newName);
|
||||
static bool copy(const QString &fileName, const QString &newName);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool copy(const std::filesystem::path &newName);
|
||||
static bool copy(const std::filesystem::path &fileName,
|
||||
const std::filesystem::path &newName);
|
||||
@ -261,7 +261,7 @@ public:
|
||||
static Permissions permissions(const QString &filename);
|
||||
bool setPermissions(Permissions permissionSpec) override;
|
||||
static bool setPermissions(const QString &filename, Permissions permissionSpec);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
static Permissions permissions(const std::filesystem::path &filename);
|
||||
static bool setPermissions(const std::filesystem::path &filename, Permissions permissionSpec);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
QFILEINFO_MAYBE_EXPLICIT QFileInfo(const QFileDevice &file);
|
||||
QFILEINFO_MAYBE_EXPLICIT QFileInfo(const QDir &dir, const QString &file);
|
||||
QFileInfo(const QFileInfo &fileinfo);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QFileInfo(const std::filesystem::path &file);
|
||||
QFileInfo(const QDir &dir, const std::filesystem::path &file);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
@ -63,7 +63,7 @@ public:
|
||||
void setFile(const QString &file);
|
||||
void setFile(const QFileDevice &file);
|
||||
void setFile(const QDir &dir, const QString &file);
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
void setFile(const std::filesystem::path &file);
|
||||
#elif QT_CONFIG(cxx17_filesystem)
|
||||
template<typename T, QtPrivate::ForceFilesystemPath<T> = 0>
|
||||
@ -77,7 +77,7 @@ public:
|
||||
QString filePath() const;
|
||||
QString absoluteFilePath() const;
|
||||
QString canonicalFilePath() const;
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_QDOC)
|
||||
std::filesystem::path filesystemFilePath() const
|
||||
{ return QtPrivate::toFilesystemPath(filePath()); }
|
||||
std::filesystem::path filesystemAbsoluteFilePath() const
|
||||
@ -95,7 +95,7 @@ public:
|
||||
QString path() const;
|
||||
QString absolutePath() const;
|
||||
QString canonicalPath() const;
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_QDOC)
|
||||
std::filesystem::path filesystemPath() const { return QtPrivate::toFilesystemPath(path()); }
|
||||
std::filesystem::path filesystemAbsolutePath() const
|
||||
{ return QtPrivate::toFilesystemPath(absolutePath()); }
|
||||
@ -128,7 +128,7 @@ public:
|
||||
QString symLinkTarget() const;
|
||||
QString junctionTarget() const;
|
||||
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(cxx17_filesystem) || defined(Q_QDOC)
|
||||
std::filesystem::path filesystemSymLinkTarget() const
|
||||
{ return QtPrivate::toFilesystemPath(symLinkTarget()); }
|
||||
|
||||
|
@ -1476,7 +1476,7 @@ void QProcess::setStandardOutputProcess(QProcess *destination)
|
||||
dto->stdinChannel.pipeFrom(dfrom);
|
||||
}
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
|
||||
/*!
|
||||
\since 4.7
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
QT_REQUIRE_CONFIG(processenvironment);
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
struct _PROCESS_INFORMATION;
|
||||
struct _SECURITY_ATTRIBUTES;
|
||||
struct _STARTUPINFOW;
|
||||
@ -150,7 +150,7 @@ public:
|
||||
void setStandardErrorFile(const QString &fileName, OpenMode mode = Truncate);
|
||||
void setStandardOutputProcess(QProcess *destination);
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
QString nativeArguments() const;
|
||||
void setNativeArguments(const QString &arguments);
|
||||
struct CreateProcessArguments
|
||||
@ -169,8 +169,8 @@ public:
|
||||
typedef std::function<void(CreateProcessArguments *)> CreateProcessArgumentModifier;
|
||||
CreateProcessArgumentModifier createProcessArgumentsModifier() const;
|
||||
void setCreateProcessArgumentsModifier(CreateProcessArgumentModifier modifier);
|
||||
#endif // Q_OS_WIN || Q_CLANG_QDOC
|
||||
#if defined(Q_OS_UNIX) || defined(Q_CLANG_QDOC)
|
||||
#endif // Q_OS_WIN || Q_QDOC
|
||||
#if defined(Q_OS_UNIX) || defined(Q_QDOC)
|
||||
std::function<void(void)> childProcessModifier() const;
|
||||
void setChildProcessModifier(const std::function<void(void)> &modifier);
|
||||
#endif
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
NativeFormat,
|
||||
IniFormat,
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
Registry32Format,
|
||||
Registry64Format,
|
||||
#endif
|
||||
|
@ -17,13 +17,13 @@
|
||||
#include <QtCore/qnativeinterface.h>
|
||||
#include <QtCore/qcoreapplication.h>
|
||||
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_QDOC)
|
||||
#include <QtCore/qjnitypes.h>
|
||||
#if QT_CONFIG(future) && !defined(QT_NO_QOBJECT)
|
||||
#include <QtCore/qfuture.h>
|
||||
#include <QtCore/qvariant.h>
|
||||
#endif
|
||||
#endif // #if defined(Q_OS_ANDROID) || defined(Q_CLANG_QDOC)
|
||||
#endif // #if defined(Q_OS_ANDROID) || defined(Q_QDOC)
|
||||
|
||||
#if defined(Q_OS_ANDROID)
|
||||
class _jobject;
|
||||
@ -38,11 +38,11 @@ Q_DECLARE_JNI_TYPE(Context, "Landroid/content/Context;")
|
||||
|
||||
namespace QNativeInterface
|
||||
{
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_QDOC)
|
||||
struct Q_CORE_EXPORT QAndroidApplication
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QAndroidApplication, 1, QCoreApplication)
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
static jobject context();
|
||||
#else
|
||||
static QtJniTypes::Context context();
|
||||
|
@ -136,7 +136,7 @@ public:
|
||||
#endif
|
||||
|
||||
template <typename... Args>
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
@ -150,7 +150,7 @@ public:
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
@ -161,7 +161,7 @@ public:
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
@ -172,7 +172,7 @@ public:
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
@ -183,7 +183,7 @@ public:
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
@ -196,7 +196,7 @@ public:
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
|
@ -310,7 +310,7 @@ To convertImplicit(const From& from)
|
||||
|
||||
class Q_CORE_EXPORT QMetaType {
|
||||
public:
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
// The code that actually gets compiled.
|
||||
enum Type {
|
||||
// these are merged with QVariant
|
||||
@ -719,7 +719,7 @@ public:
|
||||
|
||||
static bool hasRegisteredMutableViewFunction(QMetaType fromType, QMetaType toType);
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template<typename, bool> friend struct QtPrivate::SequentialValueTypeIsMetaType;
|
||||
template<typename, bool> friend struct QtPrivate::AssociativeValueTypeIsMetaType;
|
||||
template<typename, bool> friend struct QtPrivate::IsMetaTypePair;
|
||||
|
@ -101,7 +101,7 @@ public:
|
||||
virtual bool event(QEvent *event);
|
||||
virtual bool eventFilter(QObject *watched, QEvent *event);
|
||||
|
||||
#if defined(QT_NO_TRANSLATION) || defined(Q_CLANG_QDOC)
|
||||
#if defined(QT_NO_TRANSLATION) || defined(Q_QDOC)
|
||||
static QString tr(const char *sourceText, const char * = nullptr, int = -1)
|
||||
{ return QString::fromUtf8(sourceText); }
|
||||
#endif // QT_NO_TRANSLATION
|
||||
@ -188,7 +188,7 @@ public:
|
||||
inline QMetaObject::Connection connect(const QObject *sender, const char *signal,
|
||||
const char *member, Qt::ConnectionType type = Qt::AutoConnection) const;
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template<typename PointerToMemberFunction>
|
||||
static QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type = Qt::AutoConnection);
|
||||
template<typename PointerToMemberFunction, typename Functor>
|
||||
@ -311,7 +311,7 @@ public:
|
||||
typename SignalType::ReturnType>(std::move(slot)),
|
||||
type, types, &SignalType::Object::staticMetaObject);
|
||||
}
|
||||
#endif //Q_CLANG_QDOC
|
||||
#endif //Q_QDOC
|
||||
|
||||
static bool disconnect(const QObject *sender, const char *signal,
|
||||
const QObject *receiver, const char *member);
|
||||
@ -324,7 +324,7 @@ public:
|
||||
{ return disconnect(this, nullptr, receiver, member); }
|
||||
static bool disconnect(const QMetaObject::Connection &);
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template<typename PointerToMemberFunction>
|
||||
static bool disconnect(const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method);
|
||||
#else
|
||||
@ -357,7 +357,7 @@ public:
|
||||
return disconnectImpl(sender, reinterpret_cast<void **>(&signal), receiver, zero,
|
||||
&SignalType::Object::staticMetaObject);
|
||||
}
|
||||
#endif //Q_CLANG_QDOC
|
||||
#endif //Q_QDOC
|
||||
|
||||
void dumpObjectTree() const;
|
||||
void dumpObjectInfo() const;
|
||||
@ -466,7 +466,7 @@ qobject_iid_cast(const QObject *object)
|
||||
return qobject_iid_cast<std::remove_cv_t<T>>(o);
|
||||
}
|
||||
|
||||
#if defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_QDOC)
|
||||
# define Q_DECLARE_INTERFACE(IFace, IId)
|
||||
#elif !defined(Q_MOC_RUN)
|
||||
# define Q_DECLARE_INTERFACE(IFace, IId) \
|
||||
|
@ -233,7 +233,7 @@ struct Q_CORE_EXPORT QMetaObject
|
||||
{ return const_cast<QObject *>(cast(const_cast<const QObject *>(obj))); }
|
||||
const QObject *cast(const QObject *obj) const;
|
||||
|
||||
#if !defined(QT_NO_TRANSLATION) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_TRANSLATION) || defined(Q_QDOC)
|
||||
QString tr(const char *s, const char *c, int n = -1) const;
|
||||
#endif // QT_NO_TRANSLATION
|
||||
|
||||
@ -355,7 +355,7 @@ struct Q_CORE_EXPORT QMetaObject
|
||||
#endif // Qt < 7.0
|
||||
|
||||
template <typename... Args> static
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
@ -369,7 +369,7 @@ struct Q_CORE_EXPORT QMetaObject
|
||||
}
|
||||
|
||||
template <typename... Args> static
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
@ -381,7 +381,7 @@ struct Q_CORE_EXPORT QMetaObject
|
||||
}
|
||||
|
||||
template <typename... Args> static
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
@ -393,7 +393,7 @@ struct Q_CORE_EXPORT QMetaObject
|
||||
}
|
||||
|
||||
template <typename... Args> static
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
bool
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<bool, Args...>
|
||||
@ -404,7 +404,7 @@ struct Q_CORE_EXPORT QMetaObject
|
||||
return invokeMethod(obj, member, Qt::AutoConnection, r, std::forward<Args>(arguments)...);
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template<typename Functor, typename FunctorReturnType>
|
||||
static bool invokeMethod(QObject *context, Functor function, Qt::ConnectionType type = Qt::AutoConnection, FunctorReturnType *ret = nullptr);
|
||||
template<typename Functor, typename FunctorReturnType>
|
||||
@ -499,7 +499,7 @@ struct Q_CORE_EXPORT QMetaObject
|
||||
#endif
|
||||
|
||||
template <typename... Args>
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QObject *
|
||||
#else
|
||||
QtPrivate::Invoke::IfNotOldStyleArgs<QObject *, Args...>
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include <QtCore/qpropertyprivate.h>
|
||||
|
||||
#if __has_include(<source_location>) && __cplusplus >= 202002L && !defined(Q_CLANG_QDOC)
|
||||
#if __has_include(<source_location>) && __cplusplus >= 202002L && !defined(Q_QDOC)
|
||||
#include <source_location>
|
||||
#if defined(__cpp_lib_source_location)
|
||||
#define QT_SOURCE_LOCATION_NAMESPACE std
|
||||
@ -22,7 +22,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if __has_include(<experimental/source_location>) && !defined(Q_CLANG_QDOC)
|
||||
#if __has_include(<experimental/source_location>) && !defined(Q_QDOC)
|
||||
#include <experimental/source_location>
|
||||
#if !defined(QT_PROPERTY_COLLECT_BINDING_LOCATION)
|
||||
#if defined(__cpp_lib_experimental_source_location)
|
||||
@ -334,7 +334,7 @@ public:
|
||||
explicit QProperty(const QPropertyBinding<T> &binding)
|
||||
: QProperty()
|
||||
{ setBinding(binding); }
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Functor>
|
||||
explicit QProperty(Functor &&f, const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION,
|
||||
typename std::enable_if_t<std::is_invocable_r_v<T, Functor&>> * = nullptr)
|
||||
@ -417,7 +417,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Functor>
|
||||
QPropertyBinding<T> setBinding(Functor &&f,
|
||||
const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION,
|
||||
@ -759,7 +759,7 @@ public:
|
||||
#endif
|
||||
return QPropertyBinding<T>();
|
||||
}
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Functor>
|
||||
QPropertyBinding<T> setBinding(Functor &&f,
|
||||
const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION,
|
||||
@ -861,7 +861,7 @@ public:
|
||||
return QBindable<T>(aliasedProperty(), iface).setBinding(newBinding);
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Functor>
|
||||
QPropertyBinding<T> setBinding(Functor &&f,
|
||||
const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION,
|
||||
@ -951,7 +951,7 @@ public:
|
||||
explicit QObjectBindableProperty(const QPropertyBinding<T> &binding)
|
||||
: QObjectBindableProperty()
|
||||
{ setBinding(binding); }
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Functor>
|
||||
explicit QObjectBindableProperty(Functor &&f, const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION,
|
||||
typename std::enable_if_t<std::is_invocable_r_v<T, Functor&>> * = nullptr)
|
||||
@ -1044,7 +1044,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Functor>
|
||||
QPropertyBinding<T> setBinding(Functor &&f,
|
||||
const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION,
|
||||
|
@ -570,7 +570,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename Functor>
|
||||
QPropertyBinding<T> setBinding(Functor &&f,
|
||||
const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION,
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
static void singleShot(int msec, const QObject *receiver, const char *member);
|
||||
static void singleShot(int msec, Qt::TimerType timerType, const QObject *receiver, const char *member);
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template<typename PointerToMemberFunction>
|
||||
static void singleShot(int msec, const QObject *receiver, PointerToMemberFunction method);
|
||||
template<typename PointerToMemberFunction>
|
||||
|
@ -89,7 +89,7 @@ QT_BEGIN_NAMESPACE
|
||||
# define QT_TR_FUNCTIONS
|
||||
#endif
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
#define QT_TR_FUNCTIONS
|
||||
#endif
|
||||
|
||||
|
@ -429,7 +429,7 @@ public:
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
static inline auto fromValue(const T &value)
|
||||
noexcept(std::is_nothrow_copy_constructible_v<T> && Private::CanUseInternalSpace<T>)
|
||||
-> std::enable_if_t<std::is_copy_constructible_v<T> && std::is_destructible_v<T>, QVariant>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include "QtCore/qobject.h"
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -15,7 +15,7 @@ struct Q_CORE_EXPORT QFactoryInterface
|
||||
virtual QStringList keys() const = 0;
|
||||
};
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
Q_DECLARE_INTERFACE(QFactoryInterface, "org.qt-project.Qt.QFactoryInterface")
|
||||
#endif
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <QtCore/qstring.h>
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
#ifndef GUID_DEFINED
|
||||
#define GUID_DEFINED
|
||||
typedef struct _GUID
|
||||
@ -19,7 +19,7 @@ typedef struct _GUID
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_DARWIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
|
||||
Q_FORWARD_DECLARE_CF_TYPE(CFUUID);
|
||||
Q_FORWARD_DECLARE_OBJC_CLASS(NSUUID);
|
||||
#endif
|
||||
@ -101,7 +101,7 @@ public:
|
||||
bool operator<(const QUuid &other) const noexcept;
|
||||
bool operator>(const QUuid &other) const noexcept;
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
// On Windows we have a type GUID that is used by the platform API, so we
|
||||
// provide convenience operators to cast from and to this type.
|
||||
constexpr QUuid(const GUID &guid) noexcept
|
||||
@ -151,7 +151,7 @@ public:
|
||||
QUuid::Variant variant() const noexcept;
|
||||
QUuid::Version version() const noexcept;
|
||||
|
||||
#if defined(Q_OS_DARWIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
|
||||
static QUuid fromCFUUID(CFUUIDRef uuid);
|
||||
CFUUIDRef toCFUUID() const Q_DECL_CF_RETURNS_RETAINED;
|
||||
static QUuid fromNSUUID(const NSUUID *uuid);
|
||||
|
@ -404,7 +404,7 @@ typename std::enable_if_t<std::is_enum<T>::value, QDataStream &>
|
||||
operator>>(QDataStream &s, T &t)
|
||||
{ return s >> reinterpret_cast<typename std::underlying_type<T>::type &>(t); }
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
|
||||
template<typename T>
|
||||
inline QDataStreamIfHasIStreamOperatorsContainer<QList<T>, T> operator>>(QDataStream &s, QList<T> &v)
|
||||
@ -537,7 +537,7 @@ QDataStream &operator>>(QDataStream& s, std::pair<T1, T2> &p);
|
||||
template <class T1, class T2>
|
||||
QDataStream &operator<<(QDataStream& s, const std::pair<T1, T2> &p);
|
||||
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
inline QDataStream &operator>>(QDataStream &s, QKeyCombination &combination)
|
||||
{
|
||||
|
@ -251,7 +251,7 @@ QVariant QJsonDocument::toVariant() const
|
||||
|
||||
\sa fromJson(), JsonFormat
|
||||
*/
|
||||
#if !defined(QT_JSON_READONLY) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_JSON_READONLY) || defined(Q_QDOC)
|
||||
QByteArray QJsonDocument::toJson(JsonFormat format) const
|
||||
{
|
||||
QByteArray json;
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
|
||||
static QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error = nullptr);
|
||||
|
||||
#if !defined(QT_JSON_READONLY) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_JSON_READONLY) || defined(Q_QDOC)
|
||||
QByteArray toJson(JsonFormat format = Indented) const;
|
||||
#endif
|
||||
|
||||
|
@ -163,7 +163,7 @@ public:
|
||||
constexpr QAnyStringView(const Char *f, const Char *l)
|
||||
: QAnyStringView(f, l - f) {}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename Char, size_t N>
|
||||
constexpr QAnyStringView(const Char (&array)[N]) noexcept;
|
||||
|
||||
|
@ -173,7 +173,7 @@ public:
|
||||
void truncate(qsizetype pos);
|
||||
void chop(qsizetype n);
|
||||
|
||||
#if !defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_QDOC)
|
||||
[[nodiscard]] QByteArray toLower() const &
|
||||
{ return toLower_helper(*this); }
|
||||
[[nodiscard]] QByteArray toLower() &&
|
||||
|
@ -19,7 +19,7 @@ typedef QListIterator<QByteArray> QByteArrayListIterator;
|
||||
typedef QMutableListIterator<QByteArray> QMutableByteArrayListIterator;
|
||||
#endif
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
|
||||
namespace QtPrivate {
|
||||
#if QT_CORE_REMOVED_SINCE(6, 3) && QT_POINTER_SIZE != 4
|
||||
@ -29,13 +29,13 @@ namespace QtPrivate {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
class QByteArrayList : public QList<QByteArray>
|
||||
#else
|
||||
template <> struct QListSpecialMethods<QByteArray> : QListSpecialMethodsBase<QByteArray>
|
||||
#endif
|
||||
{
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
protected:
|
||||
~QListSpecialMethods() = default;
|
||||
#endif
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
constexpr Q_IMPLICIT QChar(SpecialCharacter s) noexcept : ucs(char16_t(s)) {}
|
||||
constexpr Q_IMPLICIT QChar(QLatin1Char ch) noexcept : ucs(ch.unicode()) {}
|
||||
constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {}
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
constexpr Q_IMPLICIT QChar(wchar_t ch) noexcept : ucs(char16_t(ch)) {}
|
||||
#endif
|
||||
|
||||
|
@ -51,7 +51,7 @@ namespace QtPrivate {
|
||||
template <bool...B> class BoolList;
|
||||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_CLANG_QDOC)
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_QDOC)
|
||||
# define Q_L1S_VIEW_IS_PRIMARY
|
||||
class QLatin1StringView
|
||||
#else
|
||||
@ -443,7 +443,7 @@ public:
|
||||
QString(QChar c);
|
||||
QString(qsizetype size, QChar c);
|
||||
inline QString(QLatin1StringView latin1);
|
||||
#if defined(__cpp_char8_t) || defined(Q_CLANG_QDOC)
|
||||
#if defined(__cpp_char8_t) || defined(Q_QDOC)
|
||||
Q_WEAK_OVERLOAD
|
||||
inline QString(const char8_t *str)
|
||||
: QString(fromUtf8(str))
|
||||
@ -536,7 +536,7 @@ private:
|
||||
public:
|
||||
template <typename...Args>
|
||||
[[nodiscard]]
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QString
|
||||
#else
|
||||
typename std::enable_if<
|
||||
@ -646,7 +646,7 @@ public:
|
||||
[[nodiscard]] QString leftJustified(qsizetype width, QChar fill = u' ', bool trunc = false) const;
|
||||
[[nodiscard]] QString rightJustified(qsizetype width, QChar fill = u' ', bool trunc = false) const;
|
||||
|
||||
#if !defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_QDOC)
|
||||
[[nodiscard]] QString toLower() const &
|
||||
{ return toLower_helper(*this); }
|
||||
[[nodiscard]] QString toLower() &&
|
||||
@ -772,7 +772,7 @@ public:
|
||||
|
||||
const ushort *utf16() const; // ### Qt 7 char16_t
|
||||
|
||||
#if !defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_QDOC)
|
||||
[[nodiscard]] QByteArray toLatin1() const &
|
||||
{ return toLatin1_helper(*this); }
|
||||
[[nodiscard]] QByteArray toLatin1() &&
|
||||
@ -807,7 +807,7 @@ public:
|
||||
{
|
||||
return fromUtf8(QByteArrayView(utf8, !utf8 || size < 0 ? qstrlen(utf8) : size));
|
||||
}
|
||||
#if defined(__cpp_char8_t) || defined(Q_CLANG_QDOC)
|
||||
#if defined(__cpp_char8_t) || defined(Q_QDOC)
|
||||
Q_WEAK_OVERLOAD
|
||||
static inline QString fromUtf8(const char8_t *str)
|
||||
{ return fromUtf8(reinterpret_cast<const char *>(str)); }
|
||||
|
@ -26,7 +26,7 @@ QT_END_NO_CHAR8_T_NAMESPACE
|
||||
|
||||
class QByteArray;
|
||||
class QByteArrayView;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_CLANG_QDOC)
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_QDOC)
|
||||
class QLatin1StringView;
|
||||
using QLatin1String = QLatin1StringView;
|
||||
#else
|
||||
@ -40,7 +40,7 @@ class QChar;
|
||||
class QRegularExpression;
|
||||
class QRegularExpressionMatch;
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
// ### Qt 7: remove the non-char8_t version of QUtf8StringView
|
||||
QT_BEGIN_NO_CHAR8_T_NAMESPACE
|
||||
using QUtf8StringView = QBasicUtf8StringView<false>;
|
||||
@ -49,7 +49,7 @@ QT_END_NO_CHAR8_T_NAMESPACE
|
||||
QT_BEGIN_HAS_CHAR8_T_NAMESPACE
|
||||
using QUtf8StringView = QBasicUtf8StringView<true>;
|
||||
QT_END_HAS_CHAR8_T_NAMESPACE
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -150,7 +150,7 @@ public:
|
||||
constexpr QStringView(const Char *f, const Char *l)
|
||||
: QStringView(f, l - f) {}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename Char, size_t N>
|
||||
constexpr QStringView(const Char (&array)[N]) noexcept;
|
||||
|
||||
@ -163,7 +163,7 @@ public:
|
||||
: QStringView(str, str ? lengthHelperPointer(str) : 0) {}
|
||||
#endif
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QStringView(const QString &str) noexcept;
|
||||
#else
|
||||
template <typename String, if_compatible_qstring_like<String> = true>
|
||||
|
@ -83,7 +83,7 @@ struct wrap_char { using type = char; };
|
||||
|
||||
} // namespace QtPrivate
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
#define QBasicUtf8StringView QUtf8StringView
|
||||
#else
|
||||
template <bool UseChar8T>
|
||||
@ -91,7 +91,7 @@ template <bool UseChar8T>
|
||||
class QBasicUtf8StringView
|
||||
{
|
||||
public:
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
using storage_type = typename std::conditional<UseChar8T,
|
||||
QtPrivate::hide_char8_t,
|
||||
QtPrivate::wrap_char
|
||||
@ -162,7 +162,7 @@ public:
|
||||
constexpr QBasicUtf8StringView(const Char *f, const Char *l)
|
||||
: QBasicUtf8StringView(f, l - f) {}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template <typename Char, size_t N>
|
||||
constexpr QBasicUtf8StringView(const Char (&array)[N]) noexcept;
|
||||
|
||||
@ -175,7 +175,7 @@ public:
|
||||
str ? std::char_traits<std::remove_cv_t<std::remove_pointer_t<Pointer>>>::length(str) : 0) {}
|
||||
#endif
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QBasicUtf8StringView(const QByteArray &str) noexcept;
|
||||
#else
|
||||
template <typename String, if_compatible_qstring_like<String> = true>
|
||||
@ -200,7 +200,7 @@ public:
|
||||
|
||||
[[nodiscard]] constexpr qsizetype size() const noexcept { return m_size; }
|
||||
[[nodiscard]] const_pointer data() const noexcept { return reinterpret_cast<const_pointer>(m_data); }
|
||||
#if defined(__cpp_char8_t) || defined(Q_CLANG_QDOC)
|
||||
#if defined(__cpp_char8_t) || defined(Q_QDOC)
|
||||
[[nodiscard]] const char8_t *utf8() const noexcept { return reinterpret_cast<const char8_t*>(m_data); }
|
||||
#endif
|
||||
|
||||
@ -321,12 +321,12 @@ private:
|
||||
qsizetype m_size;
|
||||
};
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
#undef QBasicUtf8StringView
|
||||
#else
|
||||
template <bool UseChar8T>
|
||||
Q_DECLARE_TYPEINFO_BODY(QBasicUtf8StringView<UseChar8T>, Q_PRIMITIVE_TYPE);
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
template <typename QStringLike, std::enable_if_t<std::is_same_v<QStringLike, QByteArray>, bool> = true>
|
||||
[[nodiscard]] inline q_no_char8_t::QUtf8StringView qToUtf8StringViewIgnoringNull(const QStringLike &s) noexcept
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#if !defined(QT_VSNPRINTF) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_VSNPRINTF) || defined(Q_QDOC)
|
||||
|
||||
/*!
|
||||
\relates QByteArray
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
T loadRelaxed() const;
|
||||
T loadAcquire() const;
|
||||
void storeRelaxed(T newValue);
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "qexception.h"
|
||||
#include "QtCore/qshareddata.h"
|
||||
|
||||
#if !defined(QT_NO_EXCEPTIONS) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_EXCEPTIONS) || defined(Q_QDOC)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
@ -180,7 +180,7 @@ QUnhandledException *QUnhandledException::clone() const
|
||||
return new QUnhandledException(*this);
|
||||
}
|
||||
|
||||
#if !defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_QDOC)
|
||||
|
||||
namespace QtPrivate {
|
||||
|
||||
@ -224,7 +224,7 @@ void ExceptionStore::rethrowException() const
|
||||
|
||||
} // namespace QtPrivate
|
||||
|
||||
#endif //Q_CLANG_QDOC
|
||||
#endif //Q_QDOC
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -16,7 +16,7 @@ QT_REQUIRE_CONFIG(future);
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
#if !defined(QT_NO_EXCEPTIONS) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_EXCEPTIONS) || defined(Q_QDOC)
|
||||
|
||||
class Q_CORE_EXPORT QException : public std::exception
|
||||
{
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_QDOC)
|
||||
~QFuture() { }
|
||||
QFuture(const QFuture<T> &) { }
|
||||
QFuture<T> & operator=(const QFuture<T> &) { }
|
||||
@ -155,7 +155,7 @@ QT_WARNING_POP
|
||||
template<class Function, typename = std::enable_if_t<std::is_invocable_r_v<T, Function>>>
|
||||
QFuture<T> onCanceled(QObject *context, Function &&handler);
|
||||
|
||||
#if !defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_QDOC)
|
||||
template<class U = T, typename = std::enable_if_t<QtPrivate::isQFutureV<U>>>
|
||||
auto unwrap();
|
||||
#else
|
||||
@ -445,7 +445,7 @@ struct MetaTypeQFutureHelper<QFuture<T>>
|
||||
|
||||
namespace QtFuture {
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
|
||||
template<typename OutputSequence, typename InputIt,
|
||||
typename ValueType = typename std::iterator_traits<InputIt>::value_type,
|
||||
@ -520,7 +520,7 @@ QFuture<QtFuture::WhenAnyResult<T>> whenAny(InputIt first, InputIt last);
|
||||
template<typename... Futures>
|
||||
QFuture<std::variant<std::decay_t<Futures>...>> whenAny(Futures &&... futures);
|
||||
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
} // namespace QtFuture
|
||||
|
||||
|
@ -960,7 +960,7 @@ static QFuture<std::decay_t<T>> makeReadyFuture(T &&value)
|
||||
return promise.future();
|
||||
}
|
||||
|
||||
#if defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_QDOC)
|
||||
static QFuture<void> makeReadyFuture()
|
||||
#else
|
||||
template<typename T = void>
|
||||
|
@ -17,7 +17,7 @@ class tst_QMutex;
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
#if QT_CONFIG(thread) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(thread) || defined(Q_QDOC)
|
||||
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN) // these platforms use futex
|
||||
# define QT_MUTEX_LOCK_NOEXCEPT noexcept
|
||||
@ -289,7 +289,7 @@ private:
|
||||
bool m_isLocked = false;
|
||||
};
|
||||
|
||||
#else // !QT_CONFIG(thread) && !Q_CLANG_QDOC
|
||||
#else // !QT_CONFIG(thread) && !Q_QDOC
|
||||
|
||||
class QMutex
|
||||
{
|
||||
@ -339,7 +339,7 @@ private:
|
||||
|
||||
typedef QMutex QBasicMutex;
|
||||
|
||||
#endif // !QT_CONFIG(thread) && !Q_CLANG_QDOC
|
||||
#endif // !QT_CONFIG(thread) && !Q_QDOC
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -79,7 +79,7 @@ public:
|
||||
d.swap(other.d);
|
||||
}
|
||||
|
||||
#if defined(Q_CLANG_QDOC) // documentation-only simplified signatures
|
||||
#if defined(Q_QDOC) // documentation-only simplified signatures
|
||||
bool addResult(const T &result, int index = -1) { }
|
||||
bool addResult(T &&result, int index = -1) { }
|
||||
#endif
|
||||
|
@ -69,7 +69,7 @@ public:
|
||||
bool event(QEvent *event) override;
|
||||
int loopLevel() const;
|
||||
|
||||
#if QT_CONFIG(cxx11_future) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(cxx11_future) || defined(Q_QDOC)
|
||||
template <typename Function, typename... Args>
|
||||
[[nodiscard]] static QThread *create(Function &&f, Args &&... args);
|
||||
#endif
|
||||
|
@ -28,7 +28,7 @@ template <typename T> class QStack;
|
||||
template <typename T, qsizetype Prealloc = 256> class QVarLengthArray;
|
||||
template <typename T> class QList;
|
||||
class QString;
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template<typename T> using QVector = QList<T>;
|
||||
using QStringList = QList<QString>;
|
||||
class QByteArray;
|
||||
|
@ -63,7 +63,7 @@ public:
|
||||
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QContiguousCache)
|
||||
void swap(QContiguousCache &other) noexcept { qt_ptr_swap(d, other.d); }
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename U = T>
|
||||
QTypeTraits::compare_eq_result<U> operator==(const QContiguousCache<T> &other) const
|
||||
{
|
||||
@ -85,7 +85,7 @@ public:
|
||||
#else
|
||||
bool operator==(const QContiguousCache &other) const;
|
||||
bool operator!=(const QContiguousCache &other) const;
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
inline qsizetype capacity() const {return d->alloc; }
|
||||
inline qsizetype count() const { return d->count; }
|
||||
|
@ -1440,7 +1440,7 @@ size_t qHash(double key, size_t seed) noexcept
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(Q_OS_DARWIN) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_OS_DARWIN) || defined(Q_QDOC)
|
||||
/*! \relates QHash
|
||||
\since 5.3
|
||||
|
||||
|
@ -891,7 +891,7 @@ public:
|
||||
#endif
|
||||
void swap(QHash &other) noexcept { qt_ptr_swap(d, other.d); }
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename AKey = Key, typename AT = T>
|
||||
QTypeTraits::compare_eq_result_container<QHash, AKey, AT> operator==(const QHash &other) const noexcept
|
||||
{
|
||||
@ -914,7 +914,7 @@ public:
|
||||
#else
|
||||
bool operator==(const QHash &other) const;
|
||||
bool operator!=(const QHash &other) const;
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
inline qsizetype size() const noexcept { return d ? qsizetype(d->size) : 0; }
|
||||
inline bool isEmpty() const noexcept { return !d || d->size == 0; }
|
||||
@ -1438,7 +1438,7 @@ public:
|
||||
std::swap(m_size, other.m_size);
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename AKey = Key, typename AT = T>
|
||||
QTypeTraits::compare_eq_result_container<QMultiHash, AKey, AT> operator==(const QMultiHash &other) const noexcept
|
||||
{
|
||||
@ -1479,7 +1479,7 @@ public:
|
||||
#else
|
||||
bool operator==(const QMultiHash &other) const;
|
||||
bool operator!=(const QMultiHash &other) const;
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
inline qsizetype size() const noexcept { return m_size; }
|
||||
|
||||
|
@ -120,7 +120,7 @@ Q_DECL_CONST_FUNCTION inline size_t qHash(float key, size_t seed = 0) noexcept
|
||||
return QHashPrivate::hash(k, seed);
|
||||
}
|
||||
Q_CORE_EXPORT Q_DECL_CONST_FUNCTION size_t qHash(double key, size_t seed = 0) noexcept;
|
||||
#if !defined(Q_OS_DARWIN) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_OS_DARWIN) || defined(Q_QDOC)
|
||||
Q_CORE_EXPORT Q_DECL_CONST_FUNCTION size_t qHash(long double key, size_t seed = 0) noexcept;
|
||||
#endif
|
||||
Q_DECL_CONST_FUNCTION constexpr inline size_t qHash(wchar_t key, size_t seed = 0) noexcept
|
||||
|
@ -317,7 +317,7 @@ public:
|
||||
|
||||
void swap(QList &other) noexcept { d.swap(other.d); }
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename U = T>
|
||||
QTypeTraits::compare_eq_result_container<QList, U> operator==(const QList &other) const
|
||||
{
|
||||
@ -373,7 +373,7 @@ public:
|
||||
bool operator>(const QList &other) const;
|
||||
bool operator<=(const QList &other) const;
|
||||
bool operator>=(const QList &other) const;
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
qsizetype size() const noexcept { return d->size; }
|
||||
qsizetype count() const noexcept { return size(); }
|
||||
|
@ -240,7 +240,7 @@ public:
|
||||
return {};
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename AKey = Key, typename AT = T> friend
|
||||
QTypeTraits::compare_eq_result_container<QMap, AKey, AT> operator==(const QMap &lhs, const QMap &rhs)
|
||||
{
|
||||
@ -261,7 +261,7 @@ public:
|
||||
#else
|
||||
friend bool operator==(const QMap &lhs, const QMap &rhs);
|
||||
friend bool operator!=(const QMap &lhs, const QMap &rhs);
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
size_type size() const { return d ? size_type(d->m.size()) : size_type(0); }
|
||||
|
||||
@ -885,7 +885,7 @@ public:
|
||||
return {};
|
||||
}
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename AKey = Key, typename AT = T> friend
|
||||
QTypeTraits::compare_eq_result_container<QMultiMap, AKey, AT> operator==(const QMultiMap &lhs, const QMultiMap &rhs)
|
||||
{
|
||||
@ -906,7 +906,7 @@ public:
|
||||
#else
|
||||
friend bool operator==(const QMultiMap &lhs, const QMultiMap &rhs);
|
||||
friend bool operator!=(const QMultiMap &lhs, const QMultiMap &rhs);
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
size_type size() const { return d ? size_type(d->m.size()) : size_type(0); }
|
||||
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
|
||||
inline void swap(QSet<T> &other) noexcept { q_hash.swap(other.q_hash); }
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
template <typename U = T>
|
||||
QTypeTraits::compare_eq_result_container<QSet, U> operator==(const QSet<T> &other) const
|
||||
{ return q_hash == other.q_hash; }
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
|
||||
void swap(QDBusPendingCall &other) noexcept { d.swap(other.d); }
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
// pretend that they aren't here
|
||||
bool isFinished() const;
|
||||
void waitForFinished();
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
return qdbus_cast<ResultType>(argumentAt(Index));
|
||||
}
|
||||
|
||||
#if defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_QDOC)
|
||||
bool isFinished() const;
|
||||
void waitForFinished();
|
||||
QVariant argumentAt(int index) const;
|
||||
|
@ -573,7 +573,7 @@ protected:
|
||||
int m_lastColumn;
|
||||
};
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
#define QAccessibleInterface_iid "org.qt-project.Qt.QAccessibleInterface"
|
||||
Q_DECLARE_INTERFACE(QAccessibleInterface, QAccessibleInterface_iid)
|
||||
#endif
|
||||
|
@ -15,7 +15,7 @@
|
||||
//
|
||||
|
||||
// Dummy declarations for generating docs on non-Windows platforms
|
||||
#if !defined(Q_OS_WIN) && defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_OS_WIN) && defined(Q_QDOC)
|
||||
typedef struct _FORMATETC {} FORMATETC;
|
||||
typedef struct _STGMEDIUM {} STGMEDIUM;
|
||||
typedef void *IDataObject;
|
||||
|
@ -74,7 +74,7 @@ public:
|
||||
QList<QObject *> associatedObjects() const;
|
||||
|
||||
#if QT_DEPRECATED_SINCE(6,0)
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QWidget *parentWidget() const;
|
||||
QList<QWidget*> associatedWidgets() const;
|
||||
QList<QGraphicsWidget*> associatedGraphicsWidgets() const;
|
||||
@ -178,7 +178,7 @@ public:
|
||||
void setMenuRole(MenuRole menuRole);
|
||||
MenuRole menuRole() const;
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QMenu *menu() const;
|
||||
void setMenu(QMenu *menu);
|
||||
#else
|
||||
|
@ -335,7 +335,7 @@ private:
|
||||
|
||||
namespace QNativeInterface::Private {
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
|
||||
class QWindowsMime;
|
||||
|
||||
|
@ -28,7 +28,7 @@ QT_BEGIN_NAMESPACE
|
||||
namespace QNativeInterface
|
||||
{
|
||||
|
||||
#if QT_CONFIG(xcb) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(xcb) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QX11Application
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QX11Application, 1, QGuiApplication)
|
||||
|
@ -67,7 +67,7 @@ QKeyMapperPrivate *qt_keymapper_private(); // from qkeymapper.cpp
|
||||
|
||||
namespace QNativeInterface::Private {
|
||||
|
||||
#if QT_CONFIG(evdev) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(evdev) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QEvdevKeyMapper
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QEvdevKeyMapper, 1, QKeyMapper)
|
||||
|
@ -24,7 +24,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_MACOS) || defined(Q_QDOC)
|
||||
Q_CONSTINIT static bool qt_sequence_no_mnemonics = true;
|
||||
struct MacSpecialKey {
|
||||
int key;
|
||||
|
@ -17,12 +17,12 @@ class QKeySequence;
|
||||
/*****************************************************************************
|
||||
QKeySequence stream functions
|
||||
*****************************************************************************/
|
||||
#if !defined(QT_NO_DATASTREAM) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_DATASTREAM) || defined(Q_QDOC)
|
||||
Q_GUI_EXPORT QDataStream &operator<<(QDataStream &in, const QKeySequence &ks);
|
||||
Q_GUI_EXPORT QDataStream &operator>>(QDataStream &out, QKeySequence &ks);
|
||||
#endif
|
||||
|
||||
#if defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_QDOC)
|
||||
void qt_set_sequence_auto_mnemonic(bool b);
|
||||
#endif
|
||||
|
||||
@ -186,7 +186,7 @@ public:
|
||||
|
||||
Q_DECLARE_SHARED(QKeySequence)
|
||||
|
||||
#if !defined(QT_NO_DEBUG_STREAM) || defined(Q_CLANG_QDOC)
|
||||
#if !defined(QT_NO_DEBUG_STREAM) || defined(Q_QDOC)
|
||||
Q_GUI_EXPORT QDebug operator<<(QDebug, const QKeySequence &);
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QNativeInterface {
|
||||
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QAndroidOffscreenSurface
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QAndroidOffscreenSurface, 1, QOffscreenSurface)
|
||||
|
@ -34,7 +34,7 @@ typedef void *EGLDisplay;
|
||||
typedef void *EGLConfig;
|
||||
#endif
|
||||
|
||||
#if !defined(Q_OS_MACOS) && defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_OS_MACOS) && defined(Q_QDOC)
|
||||
typedef void *NSOpenGLContext;
|
||||
#endif
|
||||
|
||||
@ -42,7 +42,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QNativeInterface {
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_MACOS) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QCocoaGLContext
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QCocoaGLContext, 1, QOpenGLContext)
|
||||
@ -51,7 +51,7 @@ struct Q_GUI_EXPORT QCocoaGLContext
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QWGLContext
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QWGLContext, 1, QOpenGLContext)
|
||||
@ -61,7 +61,7 @@ struct Q_GUI_EXPORT QWGLContext
|
||||
};
|
||||
#endif
|
||||
|
||||
#if QT_CONFIG(xcb_glx_plugin) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(xcb_glx_plugin) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QGLXContext
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QGLXContext, 1, QOpenGLContext)
|
||||
@ -71,7 +71,7 @@ struct Q_GUI_EXPORT QGLXContext
|
||||
};
|
||||
#endif
|
||||
|
||||
#if QT_CONFIG(egl) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(egl) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QEGLContext
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QEGLContext, 1, QOpenGLContext)
|
||||
|
@ -569,7 +569,7 @@ void QPlatformIntegration::setApplicationIcon(const QIcon &icon) const
|
||||
Q_UNUSED(icon);
|
||||
}
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
|
||||
/*!
|
||||
Factory function for QPlatformVulkanInstance. The \a instance parameter is a
|
||||
|
@ -192,7 +192,7 @@ public:
|
||||
virtual void beep() const;
|
||||
virtual void quit() const;
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
virtual QPlatformVulkanInstance *createPlatformVulkanInstance(QVulkanInstance *instance) const;
|
||||
#endif
|
||||
|
||||
|
@ -23,7 +23,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
// ----------------- QNativeInterface -----------------
|
||||
|
||||
#if !defined(Q_OS_MACOS) && defined(Q_CLANG_QDOC)
|
||||
#if !defined(Q_OS_MACOS) && defined(Q_QDOC)
|
||||
typedef void NSMenu;
|
||||
#else
|
||||
QT_END_NAMESPACE
|
||||
@ -33,7 +33,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QNativeInterface::Private {
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_MACOS) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QCocoaMenu
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QCocoaMenu)
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
|
||||
namespace QNativeInterface::Private {
|
||||
|
||||
#if QT_CONFIG(xcb) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(xcb) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QXcbScreen
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QXcbScreen, 1, QScreen)
|
||||
@ -46,7 +46,7 @@ struct Q_GUI_EXPORT QXcbScreen
|
||||
};
|
||||
#endif
|
||||
|
||||
#if QT_CONFIG(vsp2) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vsp2) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QVsp2Screen
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QVsp2Screen, 1, QScreen)
|
||||
@ -59,7 +59,7 @@ struct Q_GUI_EXPORT QVsp2Screen
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_WEBOS) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WEBOS) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QWebOSScreen
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QWebOSScreen, 1, QScreen)
|
||||
@ -72,7 +72,7 @@ struct Q_GUI_EXPORT QWebOSScreen
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_WIN32) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN32) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QWindowsScreen
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QWindowsScreen, 1, QScreen)
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
|
||||
namespace QNativeInterface::Private {
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_MACOS) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QCocoaWindow
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QCocoaWindow, 1, QWindow)
|
||||
@ -44,7 +44,7 @@ struct Q_GUI_EXPORT QCocoaWindow
|
||||
};
|
||||
#endif
|
||||
|
||||
#if QT_CONFIG(xcb) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(xcb) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QXcbWindow
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QXcbWindow, 1, QWindow)
|
||||
@ -76,7 +76,7 @@ struct Q_GUI_EXPORT QXcbWindow
|
||||
};
|
||||
#endif // xcb
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_QDOC)
|
||||
struct Q_GUI_EXPORT QWindowsWindow
|
||||
{
|
||||
QT_DECLARE_NATIVE_INTERFACE(QWindowsWindow, 1, QWindow)
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
const char *member = nullptr, const char *ambiguousMember = nullptr,
|
||||
Qt::ShortcutContext context = Qt::WindowShortcut);
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template<typename Functor>
|
||||
QShortcut(const QKeySequence &key, QObject *parent,
|
||||
Functor functor,
|
||||
@ -177,7 +177,7 @@ public:
|
||||
QString whatsThis() const;
|
||||
|
||||
#if QT_DEPRECATED_SINCE(6,0)
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
QWidget *parentWidget() const;
|
||||
#else
|
||||
template<typename T = QWidget*>
|
||||
|
@ -3071,7 +3071,7 @@ QDebug operator<<(QDebug debug, const QWindow *window)
|
||||
}
|
||||
#endif // !QT_NO_DEBUG_STREAM
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
|
||||
/*!
|
||||
Associates this window with the specified Vulkan \a instance.
|
||||
|
@ -55,7 +55,7 @@ class QWindowContainer;
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
class QDebug;
|
||||
#endif
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
class QVulkanInstance;
|
||||
#endif
|
||||
|
||||
@ -248,7 +248,7 @@ public:
|
||||
|
||||
static QWindow *fromWinId(WId id);
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
void setVulkanInstance(QVulkanInstance *instance);
|
||||
QVulkanInstance *vulkanInstance() const;
|
||||
#endif
|
||||
|
@ -191,7 +191,7 @@ struct QOpenGLFunctionsPrivate;
|
||||
|
||||
#undef glTexLevelParameteriv
|
||||
|
||||
#if defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_QDOC)
|
||||
#undef GLbitfield
|
||||
typedef unsigned int GLbitfield;
|
||||
#undef GLchar
|
||||
|
@ -636,7 +636,7 @@ bool QRegion::intersects(const QRegion ®ion) const
|
||||
*/
|
||||
|
||||
|
||||
#if !defined (Q_OS_UNIX) && !defined (Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if !defined (Q_OS_UNIX) && !defined (Q_OS_WIN) || defined(Q_QDOC)
|
||||
/*
|
||||
\overload
|
||||
\since 4.4
|
||||
|
@ -19,7 +19,7 @@
|
||||
#pragma qt_sync_stop_processing
|
||||
#endif
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
#define zero $0
|
||||
#define AT $1
|
||||
#define v0 $2
|
||||
|
@ -107,7 +107,7 @@ public:
|
||||
virtual void drawObject(QPainter *painter, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format) = 0;
|
||||
};
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
Q_DECLARE_INTERFACE(QTextObjectInterface, "org.qt-project.Qt.QTextObjectInterface")
|
||||
#endif
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <QtGui/qtguiglobal.h>
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
|
||||
#include <qvulkaninstance.h>
|
||||
|
||||
@ -56,7 +56,7 @@ QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_CONFIG(vulkan)
|
||||
|
||||
#if defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_QDOC)
|
||||
/*
|
||||
The following include file did not exist for clang-qdoc running
|
||||
in macOS, but the classes are documented in qvulkanfunctions.cpp.
|
||||
@ -70,7 +70,7 @@ QT_END_NAMESPACE
|
||||
|
||||
#include <QtGui/qtguiglobal.h>
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
|
||||
#ifndef VK_NO_PROTOTYPES
|
||||
#define VK_NO_PROTOTYPES
|
||||
@ -113,8 +113,8 @@ private:
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#endif // QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
#endif // QVULKANFUNCTIONS_H;
|
||||
#endif // Q_CLANG_QDOC
|
||||
#endif // Q_QDOC
|
||||
|
||||
#endif // QPLATFORMVULKANINSTANCE_H
|
||||
|
@ -11,12 +11,12 @@
|
||||
#pragma qt_sync_skip_header_check
|
||||
#endif
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
|
||||
#ifndef VK_NO_PROTOTYPES
|
||||
#define VK_NO_PROTOTYPES
|
||||
#endif
|
||||
#if !defined(Q_CLANG_QDOC) && __has_include(<vulkan/vulkan.h>)
|
||||
#if !defined(Q_QDOC) && __has_include(<vulkan/vulkan.h>)
|
||||
#include <vulkan/vulkan.h>
|
||||
#else
|
||||
// QT_CONFIG(vulkan) implies vulkan.h being available at Qt build time, but it
|
||||
@ -45,7 +45,7 @@ typedef int VkDebugReportObjectTypeEXT;
|
||||
// QVulkanInstance itself is only applicable if vulkan.h is available, or if
|
||||
// it's qdoc. An application that is built on a vulkan.h-less system against a
|
||||
// Vulkan-enabled Qt gets the dummy typedefs but not QVulkan*.
|
||||
#if __has_include(<vulkan/vulkan.h>) || defined(Q_CLANG_QDOC)
|
||||
#if __has_include(<vulkan/vulkan.h>) || defined(Q_QDOC)
|
||||
|
||||
#include <QtCore/qbytearraylist.h>
|
||||
#include <QtCore/qdebug.h>
|
||||
@ -219,8 +219,8 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(QVulkanInstance::DebugMessageSeverityFlags)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // __has_include(<vulkan/vulkan.h>) || defined(Q_CLANG_QDOC)
|
||||
#endif // __has_include(<vulkan/vulkan.h>) || defined(Q_QDOC)
|
||||
|
||||
#endif // QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#endif // QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
|
||||
#endif // QVULKANINSTANCE_H
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <QtGui/private/qtguiglobal_p.h>
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
|
||||
#include "qvulkaninstance.h"
|
||||
#include <private/qvulkanfunctions_p.h>
|
||||
|
@ -11,7 +11,7 @@
|
||||
#pragma qt_sync_skip_header_check
|
||||
#endif
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
|
||||
#include <QtGui/qvulkaninstance.h>
|
||||
#include <QtGui/qwindow.h>
|
||||
@ -19,7 +19,7 @@
|
||||
#include <QtGui/qmatrix4x4.h>
|
||||
#include <QtCore/qset.h>
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
typedef void* VkQueue;
|
||||
typedef void* VkCommandPool;
|
||||
typedef void* VkRenderPass;
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <QtGui/private/qtguiglobal_p.h>
|
||||
|
||||
#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
|
||||
|
||||
#include "qvulkanwindow.h"
|
||||
#include <QtCore/QHash>
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <QtCore/qshareddata.h>
|
||||
|
||||
#ifndef Q_CLANG_QDOC
|
||||
#ifndef Q_QDOC
|
||||
QT_REQUIRE_CONFIG(http);
|
||||
#endif
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "qplatformdefs.h"
|
||||
#include "qnetworkcookie.h"
|
||||
#include "qsslconfiguration.h"
|
||||
#if QT_CONFIG(http) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(http) || defined(Q_QDOC)
|
||||
#include "qhttp2configuration.h"
|
||||
#include "private/http2protocol_p.h"
|
||||
#endif
|
||||
@ -852,7 +852,7 @@ void QNetworkRequest::setPeerVerifyName(const QString &peerName)
|
||||
d->peerVerifyName = peerName;
|
||||
}
|
||||
|
||||
#if QT_CONFIG(http) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(http) || defined(Q_QDOC)
|
||||
/*!
|
||||
\since 5.14
|
||||
|
||||
@ -938,9 +938,9 @@ void QNetworkRequest::setDecompressedSafetyCheckThreshold(qint64 threshold)
|
||||
{
|
||||
d->decompressedSafetyCheckThreshold = threshold;
|
||||
}
|
||||
#endif // QT_CONFIG(http) || defined(Q_CLANG_QDOC)
|
||||
#endif // QT_CONFIG(http) || defined(Q_QDOC)
|
||||
|
||||
#if QT_CONFIG(http) || defined(Q_CLANG_QDOC) || defined (Q_OS_WASM)
|
||||
#if QT_CONFIG(http) || defined(Q_QDOC) || defined (Q_OS_WASM)
|
||||
/*!
|
||||
\since 5.15
|
||||
|
||||
@ -974,7 +974,7 @@ void QNetworkRequest::setTransferTimeout(int timeout)
|
||||
{
|
||||
d->transferTimeout = timeout;
|
||||
}
|
||||
#endif // QT_CONFIG(http) || defined(Q_CLANG_QDOC) || defined (Q_OS_WASM)
|
||||
#endif // QT_CONFIG(http) || defined(Q_QDOC) || defined (Q_OS_WASM)
|
||||
|
||||
static QByteArray headerName(QNetworkRequest::KnownHeaders header)
|
||||
{
|
||||
|
@ -143,18 +143,18 @@ public:
|
||||
|
||||
QString peerVerifyName() const;
|
||||
void setPeerVerifyName(const QString &peerName);
|
||||
#if QT_CONFIG(http) || defined(Q_CLANG_QDOC)
|
||||
#if QT_CONFIG(http) || defined(Q_QDOC)
|
||||
QHttp2Configuration http2Configuration() const;
|
||||
void setHttp2Configuration(const QHttp2Configuration &configuration);
|
||||
|
||||
qint64 decompressedSafetyCheckThreshold() const;
|
||||
void setDecompressedSafetyCheckThreshold(qint64 threshold);
|
||||
#endif // QT_CONFIG(http) || defined(Q_CLANG_QDOC)
|
||||
#endif // QT_CONFIG(http) || defined(Q_QDOC)
|
||||
|
||||
#if QT_CONFIG(http) || defined(Q_CLANG_QDOC) || defined (Q_OS_WASM)
|
||||
#if QT_CONFIG(http) || defined(Q_QDOC) || defined (Q_OS_WASM)
|
||||
int transferTimeout() const;
|
||||
void setTransferTimeout(int timeout = DefaultTransferTimeoutConstant);
|
||||
#endif // QT_CONFIG(http) || defined(Q_CLANG_QDOC) || defined (Q_OS_WASM)
|
||||
#endif // QT_CONFIG(http) || defined(Q_QDOC) || defined (Q_OS_WASM)
|
||||
private:
|
||||
QSharedDataPointer<QNetworkRequestPrivate> d;
|
||||
friend class QNetworkRequestPrivate;
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
static QString localHostName();
|
||||
static QString localDomainName();
|
||||
|
||||
#ifdef Q_CLANG_QDOC
|
||||
#ifdef Q_QDOC
|
||||
template<typename Functor>
|
||||
static int lookupHost(const QString &name, Functor functor);
|
||||
template<typename Functor>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user