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>
This commit is contained in:
Alexey Edelev 2022-06-10 17:50:41 +02:00
parent 5fce82bc6c
commit 36ea34c714
17 changed files with 69 additions and 0 deletions

View File

@ -4,6 +4,10 @@
#ifndef QTCONCURRENT_FILTER_H #ifndef QTCONCURRENT_FILTER_H
#define QTCONCURRENT_FILTER_H #define QTCONCURRENT_FILTER_H
#if 0
#pragma qt_class(QtConcurrentFilter)
#endif
#include <QtConcurrent/qtconcurrent_global.h> #include <QtConcurrent/qtconcurrent_global.h>
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC) #if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)

View File

@ -4,6 +4,10 @@
#ifndef QTCONCURRENT_MAP_H #ifndef QTCONCURRENT_MAP_H
#define QTCONCURRENT_MAP_H #define QTCONCURRENT_MAP_H
#if 0
#pragma qt_class(QtConcurrentMap)
#endif
#include <QtConcurrent/qtconcurrent_global.h> #include <QtConcurrent/qtconcurrent_global.h>
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC) #if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)

View File

@ -4,6 +4,10 @@
#ifndef QTCONCURRENT_RUN_H #ifndef QTCONCURRENT_RUN_H
#define QTCONCURRENT_RUN_H #define QTCONCURRENT_RUN_H
#if 0
#pragma qt_class(QtConcurrentRun)
#endif
#include <QtConcurrent/qtconcurrentcompilertest.h> #include <QtConcurrent/qtconcurrentcompilertest.h>
#if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC) #if !defined(QT_NO_CONCURRENT) || defined(Q_CLANG_QDOC)

View File

@ -5,6 +5,10 @@
#ifndef QENDIAN_H #ifndef QENDIAN_H
#define QENDIAN_H #define QENDIAN_H
#if 0
#pragma qt_class(QtEndian)
#endif
#include <QtCore/qfloat16.h> #include <QtCore/qfloat16.h>
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>

View File

@ -5,6 +5,11 @@
#ifndef QGLOBAL_H #ifndef QGLOBAL_H
#define QGLOBAL_H #define QGLOBAL_H
#if 0
#pragma qt_class(QtGlobal)
#pragma qt_class(QIntegerForSize)
#endif
#ifdef __cplusplus #ifdef __cplusplus
# include <type_traits> # include <type_traits>
# include <cstddef> # include <cstddef>

View File

@ -5,6 +5,10 @@
#ifndef QNAMESPACE_H #ifndef QNAMESPACE_H
#define QNAMESPACE_H #define QNAMESPACE_H
#if 0
#pragma qt_class(Qt)
#endif
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
#include <QtCore/qtmetamacros.h> #include <QtCore/qtmetamacros.h>

View File

@ -4,6 +4,10 @@
#ifndef QNUMERIC_H #ifndef QNUMERIC_H
#define QNUMERIC_H #define QNUMERIC_H
#if 0
#pragma qt_class(QtNumeric)
#endif
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
#include <cmath> #include <cmath>
#include <limits> #include <limits>

View File

@ -5,6 +5,10 @@
#ifndef QDEBUG_H #ifndef QDEBUG_H
#define QDEBUG_H #define QDEBUG_H
#if 0
#pragma qt_class(QtDebug)
#endif
#include <QtCore/qcontainerfwd.h> #include <QtCore/qcontainerfwd.h>
#include <QtCore/qtextstream.h> #include <QtCore/qtextstream.h>
#include <QtCore/qstring.h> #include <QtCore/qstring.h>

View File

@ -5,6 +5,10 @@
#ifndef QPLUGIN_H #ifndef QPLUGIN_H
#define QPLUGIN_H #define QPLUGIN_H
#if 0
#pragma qt_class(QtPlugin)
#endif
#include <QtCore/qobject.h> #include <QtCore/qobject.h>
#include <QtCore/qpointer.h> #include <QtCore/qpointer.h>
#include <QtCore/qjsonobject.h> #include <QtCore/qjsonobject.h>

View File

@ -3,6 +3,10 @@
#ifndef QUTF8STRINGVIEW_H #ifndef QUTF8STRINGVIEW_H
#define QUTF8STRINGVIEW_H #define QUTF8STRINGVIEW_H
#if 0
#pragma qt_class(QUtf8StringView)
#endif
#include <QtCore/qstringalgorithms.h> #include <QtCore/qstringalgorithms.h>
#include <QtCore/qstringfwd.h> #include <QtCore/qstringfwd.h>
#include <QtCore/qarraydata.h> // for QContainerImplHelper #include <QtCore/qarraydata.h> // for QContainerImplHelper

View File

@ -4,6 +4,10 @@
#ifndef QALGORITHMS_H #ifndef QALGORITHMS_H
#define QALGORITHMS_H #define QALGORITHMS_H
#if 0
#pragma qt_class(QtAlgorithms)
#endif
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
#if __has_include(<bit>) && __cplusplus > 201703L #if __has_include(<bit>) && __cplusplus > 201703L

View File

@ -6,6 +6,10 @@
#ifndef QCONTAINERFWD_H #ifndef QCONTAINERFWD_H
#define QCONTAINERFWD_H #define QCONTAINERFWD_H
#if 0
#pragma qt_class(QtContainerFwd)
#endif
// std headers can unfortunately not be forward declared // std headers can unfortunately not be forward declared
#include <utility> #include <utility>

View File

@ -4,6 +4,10 @@
#ifndef QEVENT_H #ifndef QEVENT_H
#define QEVENT_H #define QEVENT_H
#if 0
#pragma qt_class(QtEvents)
#endif
#include <QtGui/qtguiglobal.h> #include <QtGui/qtguiglobal.h>
#include <QtCore/qcoreevent.h> #include <QtCore/qcoreevent.h>

View File

@ -4,6 +4,10 @@
#ifndef QPASSWORDDIGESTOR_H #ifndef QPASSWORDDIGESTOR_H
#define QPASSWORDDIGESTOR_H #define QPASSWORDDIGESTOR_H
#if 0
#pragma qt_class(QPasswordDigestor)
#endif
#include <QtNetwork/qtnetworkglobal.h> #include <QtNetwork/qtnetworkglobal.h>
#include <QtCore/QByteArray> #include <QtCore/QByteArray>
#include <QtCore/QCryptographicHash> #include <QtCore/QCryptographicHash>

View File

@ -5,6 +5,10 @@
#ifndef QSSL_H #ifndef QSSL_H
#define QSSL_H #define QSSL_H
#if 0
#pragma qt_class(QSsl)
#endif
#include <QtNetwork/qtnetworkglobal.h> #include <QtNetwork/qtnetworkglobal.h>
#include <QtCore/QFlags> #include <QtCore/QFlags>

View File

@ -4,6 +4,10 @@
#ifndef QTSQLGLOBAL_H #ifndef QTSQLGLOBAL_H
#define QTSQLGLOBAL_H #define QTSQLGLOBAL_H
#if 0
#pragma qt_class(QSql)
#endif
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
#include <QtSql/qtsql-config.h> #include <QtSql/qtsql-config.h>
#include <QtSql/qtsqlexports.h> #include <QtSql/qtsqlexports.h>

View File

@ -5,6 +5,10 @@
#ifndef QTEST_H #ifndef QTEST_H
#define QTEST_H #define QTEST_H
#if 0
#pragma qt_class(QTest)
#endif
#include <QtTest/qttestglobal.h> #include <QtTest/qttestglobal.h>
#include <QtTest/qtestcase.h> #include <QtTest/qtestcase.h>
#include <QtTest/qtestdata.h> #include <QtTest/qtestdata.h>