qt5base-lts/tests/auto/corelib/io
Marc Mutz 11d6932560 Mark all of Qt as free of Q_FOREACH, except where it isn't
The density of Q_FOREACH uses in this and some other modules is still
extremely high, too high for anyone to tackle in a short amount of
time. Even if they're not concentrated in just a few TUs, we need to
make progress on a global QT_NO_FOREACH default, so grab the nettle
and stick to our strategy:

Mark the whole of Qt with QT_NO_FOREACH, to prevent new uses from
creeping in, and whitelist the affected TUs by #undef'ing
QT_NO_FOREACH locally, at the top of each file. For TUs that are part
of a larger executable, this requires these files to be compiled
separately, so add them to NO_PCH_SOURCES (which implies
NO_UNITY_BUILD_SOURCES, too).

In tst_qglobal.cpp and tst_qcollections.cpp change the comment on the
#undef QT_NO_FOREACH to indicate that these actually test the macro.

Task-number: QTBUG-115839
Change-Id: Iecc444eb7d43d7e4d037f6e155abe0e14a00a5d6
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-08-19 05:19:42 +00:00
..
largefile CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qabstractfileengine Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qbuffer CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qdataurl CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qdebug cmake: Enable Objective-C++ language for standalone test projects 2023-08-01 20:42:30 +02:00
qdir Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qdiriterator Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qfile Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qfileinfo Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qfileselector Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qfilesystementry CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qfilesystemmetadata CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qfilesystemwatcher Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qiodevice CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qipaddress CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qlockfile Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qloggingcategory CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qloggingregistry CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qnodebug CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qprocess QProcess/Unix: add a simple way to reset the UID and GID for the child 2023-07-08 15:03:23 -07:00
qprocess-noapplication CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qprocessenvironment CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qresourceengine CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qsavefile CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qsettings Add a special testcase for IndexedDB settings only 2023-08-16 17:17:13 +02:00
qstandardpaths Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qstorageinfo Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qtemporarydir Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qtemporaryfile Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qurl CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qurlinternal CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qurlquery CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qurluts46 CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qzip CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt Move QZipReader/Writer from QtGui to QtCore 2023-04-26 12:01:05 +02:00