qt5base-lts/tests/auto/corelib/global
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
..
q20 CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
q_func_info CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qcompare Add QStrongOrdering and QWeakOrdering 2023-07-25 12:31:04 +02:00
qflags CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qfloat16 CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qgetputenv CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qglobal Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qglobalstatic CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qhooks CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qkeycombination CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qlogging Fix assert in qCleanupFuncInfo when using QDebug from a lambda with auto 2023-07-11 02:37:58 +02:00
qnativeinterface CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qnumeric CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qoperatingsystemversion CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qrandomgenerator CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qtendian CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qxp CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt Short live q20::to_address! 2023-03-31 13:10:12 +01:00