Skip to content

Commit

Permalink
Add the qt_class pragma to file listed in sync.profile classnames map
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
semlanik committed Jun 22, 2022
1 parent 5fce82b commit 36ea34c
Show file tree
Hide file tree
Showing 17 changed files with 69 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/concurrent/qtconcurrentfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/concurrent/qtconcurrentmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/concurrent/qtconcurrentrun.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/corelib/global/qendian.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
5 changes: 5 additions & 0 deletions src/corelib/global/qglobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions src/corelib/global/qnamespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
4 changes: 4 additions & 0 deletions src/corelib/global/qnumeric.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions src/corelib/io/qdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions src/corelib/plugin/qplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions src/corelib/text/qutf8stringview.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/corelib/tools/qalgorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/corelib/tools/qcontainerfwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
4 changes: 4 additions & 0 deletions src/gui/kernel/qevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions src/network/ssl/qpassworddigestor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions src/network/ssl/qssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#ifndef QSSL_H
#define QSSL_H

#if 0
#pragma qt_class(QSsl)
#endif

#include <QtNetwork/qtnetworkglobal.h>
#include <QtCore/QFlags>

Expand Down
4 changes: 4 additions & 0 deletions src/sql/kernel/qtsqlglobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions src/testlib/qtest.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 36ea34c

Please sign in to comment.