qt5base-lts/tests/auto/other
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
..
gestures Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
languagechange CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
macgui Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
macnativeevents CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
macplist CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
networkselftest CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qabstractitemmodelutils DynamicTreeModel test helper: port away from Q_FOREACH 2023-08-08 17:44:56 +00:00
qaccessibility Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qaccessibilitylinux tst_QAccessibilityLinux: port away from Q_FOREACH 2023-08-09 23:57:21 +02:00
qaccessibilitymac CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qcomplextext CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qfocusevent CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qnetworkaccessmanager_and_qprogressdialog CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qobjectrace CMake: remove check for cxx11_future 2023-08-02 12:36:18 -07:00
qprocess_and_guieventloop CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qsharedpointer_and_qwidget CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
qvariant_common Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sessionmanagement_macos Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
toolsupport CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
xkbkeyboard CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00