QtCore: includemocs

This leaves moc_qnamespace.cpp in mocs_compilation.cpp.

Including moc files directly into their classes' TU tends to improve
codegen and enables extended compiler warnings, e.g. about unused
private functions or fields.

Pick-to: 6.3 6.2 5.15
Change-Id: Ifdff378c74828e12ec770cb2f453dab3a880e2a5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Marc Mutz 2022-01-25 21:20:56 +01:00
parent 97b465455b
commit 8224fd45d0
2 changed files with 6 additions and 0 deletions

View File

@ -529,3 +529,5 @@ QDebug operator<<(QDebug debug, const QMimeType &mime)
#endif
QT_END_NAMESPACE
#include "moc_qmimetype.cpp"

View File

@ -1633,3 +1633,7 @@ QStringList QCalendar::availableCalendars()
}
QT_END_NAMESPACE
#ifndef QT_BOOTSTRAPPED
#include "moc_qcalendar.cpp"
#endif