qt5base-lts/tests/auto/gui
Thiago Macieira 14d1108d35 Deprecate Q_ASSUME()
We've known for a long time that this is producing worse code with GCC
because of how we implemented in Q_ASSUME_IMPL(). So bite the bullet and
actually deprecate the macro, replacing all extant Q_ASSUME() with
Q_ASSERT().

The replacement is in C++23. Backporting the support onto Q_ASSUME_IMPL
was previously rejected by reviewers.

[ChangeLog][Deprecation Notice] The Q_ASSUME() macro is deprecated. This
macro has different side-effects depending on the compiler used (GCC
compared to Clang and MSVC), and there are certain conditions under
which GCC is known to produce worse code than if the macro was absent.
To give a hint to the compiler for optimizations, use the C++23
[[assume]] attribute.

Change-Id: I80612a7d275c41f1baf0fffd177a3a4ad819fb2d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-08-14 17:36:37 -07:00
..
image tst_QImageReader: it's a rotate^Wadjacent_find! 2023-08-10 06:44:59 +02:00
itemmodels tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
kernel Deprecate Q_ASSUME() 2023-08-14 17:36:37 -07:00
math3d CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
painting CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
platform CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopengl CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopenglconfig CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qvulkan CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
rhi CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
text tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
util Fix digit grouping: m_grouping_top doesn't mean what I thought it did 2023-08-08 19:44:56 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00