Fix QMetaType::typeName returning wrong result for clang-cl

Pick-to: 6.2 6.3
Change-Id: I94fa1d56d98b8caae514b37fbf6432985195d827
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Alexander Neumann 2022-02-20 10:12:43 +01:00 committed by Thiago Macieira
parent 2d935dc7f9
commit d49f5752a5
1 changed files with 4 additions and 2 deletions

View File

@ -2185,7 +2185,9 @@ constexpr auto typenameHelper()
#ifdef QT_NAMESPACE
QT_STRINGIFY(QT_NAMESPACE) "::"
#endif
#ifdef Q_CC_MSVC
#if defined(Q_CC_MSVC) && defined(Q_CC_CLANG)
"auto __cdecl QtPrivate::typenameHelper(void) [T = "
#elif defined(Q_CC_MSVC)
"auto __cdecl QtPrivate::typenameHelper<"
#elif defined(Q_CC_CLANG)
"auto QtPrivate::typenameHelper() [T = "
@ -2195,7 +2197,7 @@ constexpr auto typenameHelper()
"constexpr auto QtPrivate::typenameHelper() [with T = "
#endif
) - 1;
#ifdef Q_CC_MSVC
#if defined(Q_CC_MSVC) && !defined(Q_CC_CLANG)
constexpr int suffix = sizeof(">(void)");
#else
constexpr int suffix = sizeof("]");