diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-08-07 17:59:46 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-08-19 05:19:42 +0000 |
commit | 11d69325605071a32d10ed4392c67e9a07445ada (patch) | |
tree | 5027d993690bbd165bd4a90bc6c2789b596fe6d0 /src/plugins/platforms/ios | |
parent | 1a3f573bd9fd7463e1def4c1fe655bcf0e2e6baa (diff) |
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>
Diffstat (limited to 'src/plugins/platforms/ios')
-rw-r--r-- | src/plugins/platforms/ios/CMakeLists.txt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/platforms/ios/CMakeLists.txt b/src/plugins/platforms/ios/CMakeLists.txt index 1085d41aa8..1c99103a49 100644 --- a/src/plugins/platforms/ios/CMakeLists.txt +++ b/src/plugins/platforms/ios/CMakeLists.txt @@ -33,8 +33,6 @@ qt_internal_add_plugin(QIOSIntegrationPlugin qiosintegration.mm # undef QT_NO_FOREACH qiosplatformaccessibility.mm # undef QT_NO_FOREACH qiosscreen.mm # undef QT_NO_FOREACH - DEFINES - QT_NO_FOREACH LIBRARIES ${FWAudioToolbox} ${FWFoundation} |