qt5base-lts/tests/auto/corelib/kernel
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
..
qcoreapplication Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qdeadlinetimer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qelapsedtimer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qeventdispatcher CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qeventloop Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qmath CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmetacontainer tst_qmetacontainer: Remove non-existing typeflags.bin from build system 2020-09-25 08:50:11 +02:00
qmetaenum CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmetamethod CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmetaobject Fix compile time type normalization code 2020-10-14 21:37:39 +02:00
qmetaobjectbuilder Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qmetaproperty CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmetatype Fix compile time type normalization code 2020-10-14 21:37:39 +02:00
qmimedata CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qobject Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qpointer Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qproperty Handle notifier list modification during iteration 2020-10-12 13:01:29 +02:00
qsharedmemory CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsignalblocker CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsignalmapper CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsocketnotifier CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsystemsemaphore CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtimer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtranslator CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qvariant Allow getting a const pointer out of a variant containing pointer 2020-10-08 18:13:34 +02:00
qwineventnotifier CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
.prev_CMakeLists.txt Add a QMetaSequence interface 2020-09-01 13:35:39 +02:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
kernel.pro CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00