qt5base-lts/tests/auto/tools
Lars Knoll fa93f1aeb0 Fix compile time type normalization code
Use a simpler constexpr to generate type name on gcc This
works around an ICE on gcc in release mode when compiling
with PCH enabled. As the type we're getting from Q_FUNC_INFO is
already in a somewhat normalized form, this requires significanlty
less processing and esp. not a recursive constexpr method which
I suspect triggers the ICE.

Fix integer type conversions to also properly normalize long long
values (to q(u)longlong. Make sure the mapping also works on
MSVC, where long long types get mapped to __int64. Also, normalize
unsigned short and unsigned char to ushort and uchar, respectively, to
follow the convention set by uint and ulong.

Add some test cases to verify the mappings.

Change-Id: I3dec5764450bf22ab6f066597803c3f46c2cd5ac
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-10-14 21:37:39 +02:00
..
moc Fix compile time type normalization code 2020-10-14 21:37:39 +02:00
qdbuscpp2xml Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qdbusxml2cpp CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmake CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmakelib Use QMetaType instead of integer based type ids 2020-09-23 19:30:28 +02:00
rcc CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
uic CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
.prev_CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
CMakeLists.txt cmake support for tst_moc 2020-08-10 12:59:46 +02:00
tools.pro