Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qtpreprocessorsupport.h
Go to the documentation of this file.
1
// Copyright (C) 2022 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QTPREPROCESSORSUPPORT_H
6
#
define
QTPREPROCESSORSUPPORT_H
7
8
#
if
0
9
#
pragma
qt_class
(
QtPreprocessorSupport
)
10
#
pragma
qt_sync_stop_processing
11
#
endif
12
13
/* These two macros makes it possible to turn the builtin line expander into a
14
* string literal. */
15
#
define
QT_STRINGIFY2
(
x
)
#
x
16
#
define
QT_STRINGIFY
(
x
)
QT_STRINGIFY2
(
x
)
17
18
/*
19
Avoid "unused parameter" warnings
20
*/
21
#
define
Q_UNUSED
(
x
)
(
void
)
x
;
22
23
#
if
!
defined
(
Q_UNIMPLEMENTED
)
24
#
define
Q_UNIMPLEMENTED
(
)
qWarning
(
"Unimplemented code."
)
25
#
endif
26
27
#
define
QT_VA_ARGS_CHOOSE
(
_1
,
_2
,
_3
,
_4
,
_5
,
_6
,
_7
,
_8
,
_9
,
N
,
...
)
N
28
#
define
QT_VA_ARGS_EXPAND
(
...
)
__VA_ARGS__
// Needed for MSVC
29
#
define
QT_VA_ARGS_COUNT
(
...
)
QT_VA_ARGS_EXPAND
(
QT_VA_ARGS_CHOOSE
(
__VA_ARGS__
,
9
,
8
,
7
,
6
,
5
,
4
,
3
,
2
,
1
,
0
)
)
30
#
define
QT_OVERLOADED_MACRO_EXPAND
(
MACRO
,
ARGC
)
MACRO
##
_
##
ARGC
31
#
define
QT_OVERLOADED_MACRO_IMP
(
MACRO
,
ARGC
)
QT_OVERLOADED_MACRO_EXPAND
(
MACRO
,
ARGC
)
32
#
define
QT_OVERLOADED_MACRO
(
MACRO
,
...
)
QT_VA_ARGS_EXPAND
(
QT_OVERLOADED_MACRO_IMP
(
MACRO
,
QT_VA_ARGS_COUNT
(
__VA_ARGS__
)
)
(
__VA_ARGS__
)
)
33
34
#
endif
// QTPREPROCESSORSUPPORT_H
QFile
Definition
qfile.h:71
QList
Definition
qlist.h:82
QT_FORWARD_DECLARE_CLASS
QT_FORWARD_DECLARE_CLASS(QTextStream)
QtPrivate::asString
const QString & asString(const QString &s)
Definition
qstring.h:1713
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
isPow2OrZero
static bool isPow2OrZero(quint32 value)
Definition
provider.cpp:283
arrayLength
static int arrayLength(const QString &rawType)
Definition
provider.cpp:52
backendType
static Tracepoint::Field::Type backendType(QString rawType)
Definition
provider.cpp:102
TYPEDATA_ENTRY
#define TYPEDATA_ENTRY(type, backendType)
Definition
provider.cpp:99
decayArrayToPointer
static QString decayArrayToPointer(QString type)
Definition
provider.cpp:82
pow2Log2
static quint32 pow2Log2(quint32 v)
Definition
provider.cpp:288
minumumValueSize
static int minumumValueSize(int min, int max)
Definition
provider.cpp:267
removeBraces
static QString removeBraces(QString type)
Definition
provider.cpp:92
sequenceLength
static QString sequenceLength(const QString &rawType)
Definition
provider.cpp:66
parseTracepoint
static Tracepoint parseTracepoint(const Provider &provider, const QString &name, const QStringList &args, const QString &fileName, const int lineNumber)
Definition
provider.cpp:186
parseProvider
Provider parseProvider(const QString &filename)
Definition
provider.cpp:292
qPrintable
#define qPrintable(string)
Definition
qstring.h:1718
QStringLiteral
#define QStringLiteral(str)
Definition
qstring.h:1865
QT_STRINGIFY2
#define QT_STRINGIFY2(x)
Definition
qtpreprocessorsupport.h:15
QT_STRINGIFY
#define QT_STRINGIFY(x)
Definition
qtpreprocessorsupport.h:16
QT_OVERLOADED_MACRO_IMP
#define QT_OVERLOADED_MACRO_IMP(MACRO, ARGC)
Definition
qtpreprocessorsupport.h:31
QT_VA_ARGS_CHOOSE
#define QT_VA_ARGS_CHOOSE(_1, _2, _3, _4, _5, _6, _7, _8, _9, N,...)
Definition
qtpreprocessorsupport.h:27
QT_OVERLOADED_MACRO_EXPAND
#define QT_OVERLOADED_MACRO_EXPAND(MACRO, ARGC)
Definition
qtpreprocessorsupport.h:30
QT_VA_ARGS_EXPAND
#define QT_VA_ARGS_EXPAND(...)
Definition
qtpreprocessorsupport.h:28
QT_VA_ARGS_COUNT
#define QT_VA_ARGS_COUNT(...)
Definition
qtpreprocessorsupport.h:29
Provider
Definition
provider.h:82
TraceEnum::EnumValue
Definition
provider.h:57
TraceEnum::EnumValue::value
int value
Definition
provider.h:59
TraceEnum::EnumValue::range
int range
Definition
provider.h:60
TraceEnum
Definition
provider.h:55
TraceEnum::valueSize
int valueSize
Definition
provider.h:63
TraceFlags::FlagValue
Definition
provider.h:68
TraceFlags::FlagValue::value
int value
Definition
provider.h:70
TraceFlags
Definition
provider.h:66
qtbase
src
corelib
global
qtpreprocessorsupport.h
Generated on
for Qt by
1.18.0