summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2022-06-10 17:50:41 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2022-06-22 03:03:31 +0200
commit36ea34c7140a134b05d4cc8fcb5e17802ef77755 (patch)
tree33e25f599ea7b476dbd63eade57a4ff99cb3f899
parent5fce82bc6cb1e118fb26cf9b61f2c07c007ec8b9 (diff)
Add the qt_class pragma to file listed in sync.profile classnames map
This makes header files self-contained and reduces the number of 'sources of truth' for syncqt procedure. Change-Id: I7f5865abc69934603139d23e1b5452da46ccb110 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/concurrent/qtconcurrentfilter.h4
-rw-r--r--src/concurrent/qtconcurrentmap.h4
-rw-r--r--src/concurrent/qtconcurrentrun.h4
-rw-r--r--src/corelib/global/qendian.h4
-rw-r--r--src/corelib/global/qglobal.h5
-rw-r--r--src/corelib/global/qnamespace.h4
-rw-r--r--src/corelib/global/qnumeric.h4
-rw-r--r--src/corelib/io/qdebug.h4
-rw-r--r--src/corelib/plugin/qplugin.h4
-rw-r--r--src/corelib/text/qutf8stringview.h4
-rw-r--r--src/corelib/tools/qalgorithms.h4
-rw-r--r--src/corelib/tools/qcontainerfwd.h4
-rw-r--r--src/gui/kernel/qevent.h4
-rw-r--r--src/network/ssl/qpassworddigestor.h4
-rw-r--r--src/network/ssl/qssl.h4
-rw-r--r--src/sql/kernel/qtsqlglobal.h4
-rw-r--r--src/testlib/qtest.h4
17 files changed, 69 insertions, 0 deletions
diff --git a/src/concurrent/qtconcurrentfilter.h b/src/concurrent/qtconcurrentfilter.h
index e35c445b94..0f014713d9 100644
--- a/src/concurrent/qtconcurrentfilter.h
+++ b/src/concurrent/qtconcurrentfilter.h
@@ -4,6 +4,10 @@
#ifndef QTCONCURRENT_FILTER_H
#define QTCONCURRENT_FILTER_H
+#if 0
+#pragma qt_class(QtConcurrentFilter)
+#endif
+
#include <QtConcurrent/qtconcurrent_global.h>
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
diff --git a/src/concurrent/qtconcurrentmap.h b/src/concurrent/qtconcurrentmap.h
index 2d829daca4..ffdc4c9004 100644
--- a/src/concurrent/qtconcurrentmap.h
+++ b/src/concurrent/qtconcurrentmap.h
@@ -4,6 +4,10 @@
#ifndef QTCONCURRENT_MAP_H
#define QTCONCURRENT_MAP_H
+#if 0
+#pragma qt_class(QtConcurrentMap)
+#endif
+
#include <QtConcurrent/qtconcurrent_global.h>
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
diff --git a/src/concurrent/qtconcurrentrun.h b/src/concurrent/qtconcurrentrun.h
index fdcebe0bde..e5c7503b68 100644
--- a/src/concurrent/qtconcurrentrun.h
+++ b/src/concurrent/qtconcurrentrun.h
@@ -4,6 +4,10 @@
#ifndef QTCONCURRENT_RUN_H
#define QTCONCURRENT_RUN_H
+#if 0
+#pragma qt_class(QtConcurrentRun)
+#endif
+
#include <QtConcurrent/qtconcurrentcompilertest.h>
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)
diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h
index 98fab8f05b..2289717b7f 100644
--- a/src/corelib/global/qendian.h
+++ b/src/corelib/global/qendian.h
@@ -5,6 +5,10 @@
#ifndef QENDIAN_H
#define QENDIAN_H
+#if 0
+#pragma qt_class(QtEndian)
+#endif
+
#include <QtCore/qfloat16.h>
#include <QtCore/qglobal.h>
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 4b85b4af7d..559dab889f 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -5,6 +5,11 @@
#ifndef QGLOBAL_H
#define QGLOBAL_H
+#if 0
+#pragma qt_class(QtGlobal)
+#pragma qt_class(QIntegerForSize)
+#endif
+
#ifdef __cplusplus
# include <type_traits>
# include <cstddef>
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index 5ec3b4a4f3..dd70e91a8f 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -5,6 +5,10 @@
#ifndef QNAMESPACE_H
#define QNAMESPACE_H
+#if 0
+#pragma qt_class(Qt)
+#endif
+
#include <QtCore/qglobal.h>
#include <QtCore/qtmetamacros.h>
diff --git a/src/corelib/global/qnumeric.h b/src/corelib/global/qnumeric.h
index d3a74a33e5..b10936b38f 100644
--- a/src/corelib/global/qnumeric.h
+++ b/src/corelib/global/qnumeric.h
@@ -4,6 +4,10 @@
#ifndef QNUMERIC_H
#define QNUMERIC_H
+#if 0
+#pragma qt_class(QtNumeric)
+#endif
+
#include <QtCore/qglobal.h>
#include <cmath>
#include <limits>
diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h
index 6ba464840f..b1f425e616 100644
--- a/src/corelib/io/qdebug.h
+++ b/src/corelib/io/qdebug.h
@@ -5,6 +5,10 @@
#ifndef QDEBUG_H
#define QDEBUG_H
+#if 0
+#pragma qt_class(QtDebug)
+#endif
+
#include <QtCore/qcontainerfwd.h>
#include <QtCore/qtextstream.h>
#include <QtCore/qstring.h>
diff --git a/src/corelib/plugin/qplugin.h b/src/corelib/plugin/qplugin.h
index 5ac3ed9241..61dff6ab53 100644
--- a/src/corelib/plugin/qplugin.h
+++ b/src/corelib/plugin/qplugin.h
@@ -5,6 +5,10 @@
#ifndef QPLUGIN_H
#define QPLUGIN_H
+#if 0
+#pragma qt_class(QtPlugin)
+#endif
+
#include <QtCore/qobject.h>
#include <QtCore/qpointer.h>
#include <QtCore/qjsonobject.h>
diff --git a/src/corelib/text/qutf8stringview.h b/src/corelib/text/qutf8stringview.h
index 2dbd9bb217..232b6f43f7 100644
--- a/src/corelib/text/qutf8stringview.h
+++ b/src/corelib/text/qutf8stringview.h
@@ -3,6 +3,10 @@
#ifndef QUTF8STRINGVIEW_H
#define QUTF8STRINGVIEW_H
+#if 0
+#pragma qt_class(QUtf8StringView)
+#endif
+
#include <QtCore/qstringalgorithms.h>
#include <QtCore/qstringfwd.h>
#include <QtCore/qarraydata.h> // for QContainerImplHelper
diff --git a/src/corelib/tools/qalgorithms.h b/src/corelib/tools/qalgorithms.h
index f72cd669cb..94aa2da012 100644
--- a/src/corelib/tools/qalgorithms.h
+++ b/src/corelib/tools/qalgorithms.h
@@ -4,6 +4,10 @@
#ifndef QALGORITHMS_H
#define QALGORITHMS_H
+#if 0
+#pragma qt_class(QtAlgorithms)
+#endif
+
#include <QtCore/qglobal.h>
#if __has_include(<bit>) && __cplusplus > 201703L
diff --git a/src/corelib/tools/qcontainerfwd.h b/src/corelib/tools/qcontainerfwd.h
index c5e1ba2b62..1f0d36428a 100644
--- a/src/corelib/tools/qcontainerfwd.h
+++ b/src/corelib/tools/qcontainerfwd.h
@@ -6,6 +6,10 @@
#ifndef QCONTAINERFWD_H
#define QCONTAINERFWD_H
+#if 0
+#pragma qt_class(QtContainerFwd)
+#endif
+
// std headers can unfortunately not be forward declared
#include <utility>
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index 0cd58fa91f..983cc6a9da 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -4,6 +4,10 @@
#ifndef QEVENT_H
#define QEVENT_H
+#if 0
+#pragma qt_class(QtEvents)
+#endif
+
#include <QtGui/qtguiglobal.h>
#include <QtCore/qcoreevent.h>
diff --git a/src/network/ssl/qpassworddigestor.h b/src/network/ssl/qpassworddigestor.h
index b7d7d98aaa..279450178b 100644
--- a/src/network/ssl/qpassworddigestor.h
+++ b/src/network/ssl/qpassworddigestor.h
@@ -4,6 +4,10 @@
#ifndef QPASSWORDDIGESTOR_H
#define QPASSWORDDIGESTOR_H
+#if 0
+#pragma qt_class(QPasswordDigestor)
+#endif
+
#include <QtNetwork/qtnetworkglobal.h>
#include <QtCore/QByteArray>
#include <QtCore/QCryptographicHash>
diff --git a/src/network/ssl/qssl.h b/src/network/ssl/qssl.h
index f29f769a4a..3d01168172 100644
--- a/src/network/ssl/qssl.h
+++ b/src/network/ssl/qssl.h
@@ -5,6 +5,10 @@
#ifndef QSSL_H
#define QSSL_H
+#if 0
+#pragma qt_class(QSsl)
+#endif
+
#include <QtNetwork/qtnetworkglobal.h>
#include <QtCore/QFlags>
diff --git a/src/sql/kernel/qtsqlglobal.h b/src/sql/kernel/qtsqlglobal.h
index c92c4c7730..977d97abbf 100644
--- a/src/sql/kernel/qtsqlglobal.h
+++ b/src/sql/kernel/qtsqlglobal.h
@@ -4,6 +4,10 @@
#ifndef QTSQLGLOBAL_H
#define QTSQLGLOBAL_H
+#if 0
+#pragma qt_class(QSql)
+#endif
+
#include <QtCore/qglobal.h>
#include <QtSql/qtsql-config.h>
#include <QtSql/qtsqlexports.h>
diff --git a/src/testlib/qtest.h b/src/testlib/qtest.h
index e185e81eb8..f4f0ff5dfd 100644
--- a/src/testlib/qtest.h
+++ b/src/testlib/qtest.h
@@ -5,6 +5,10 @@
#ifndef QTEST_H
#define QTEST_H
+#if 0
+#pragma qt_class(QTest)
+#endif
+
#include <QtTest/qttestglobal.h>
#include <QtTest/qtestcase.h>
#include <QtTest/qtestdata.h>