qt5base-lts/tests/auto/corelib
Volker Hilsheimer 601dbd6499 Add variadic template overloads for QJniObject/Environment methods
This allows the compiler to deduce the template arguments based on the
provided method parameters, which we can then pass to the methodSignature
and fieldSignature helpers to generate the signature string completely at
compile time.

Since we can't partially specialize template member functions, replace
the specializations for void methods with compile-time-if branches in
the general templates.

This variadic template now prevents implicit conversion from the
LiteralStorage types to const char* signatures, so catch the case where
such a type ends up in the parameter list.

Due to overload resolution rules for constructors, we need to explicitly
disable the constructor if any of the arguments is a string literal type,
as we have to keep the old C-style variadic function working for such
calls.

Add variations that use the variadic templates to the unit tests.

Change-Id: I8734664b38bae932369462330a9a03302254c33c
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-05-13 18:13:49 +02:00
..
animation tst_qanimationgroup: fix memleaks 2022-01-05 08:22:00 +01:00
global Remove remnants of the old Intel C++ compiler 2022-05-11 12:50:08 -07:00
io Don't declare type 'id' in the global namespace in a public header 2022-04-27 00:16:26 +02:00
itemmodels QAbstractProxyModel: do not access invalid indexes 2022-04-13 18:08:38 +02:00
kernel Add variadic template overloads for QJniObject/Environment methods 2022-05-13 18:13:49 +02:00
mimetypes Update shared-mime-info to the 2.2 release 2022-05-11 11:36:49 +02:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin Android: activate tst_QPluginLoader 2022-03-30 19:05:59 +02:00
serialization QTextStream: complete char16_t support 2022-05-04 07:09:22 +02:00
text Remove remnants of the old Intel C++ compiler 2022-05-11 12:50:08 -07:00
thread Add support for unwrapping QFuture<QFuture<T>> 2022-04-21 20:25:13 +00:00
time Replace remaining uses of deprecated _qs with _s 2022-05-02 12:23:44 +02:00
tools QVarLengthArray: add missing (size, value) ctor 2022-04-13 08:10:47 +02:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00