qt5base-lts/tests/auto/corelib/kernel
Marc Mutz e5acaa12e3 QObject: treat T* -> bool conversions as narrowing
Following wg21.link/LWG3228, it was found that a proper variant fix
requires that T* -> bool conversions be treated as narrowing
conversions in subclause wg21.link/dcl.init.lst. wg21.link/P1957R2 was
accepted in Prague 2020 as a DR and retroactively applies to older C++
standards.

Since we hard-code the algorithm of [dcl.init.lst], we can and must
add this manually.

[ChangeLog][QtCore][QObject] For the purposes of
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT, pointer
(incl. pointer-to-member) to bool conversions are now considered
narrowing. This matches the resolution of a defect report in C++
itself.

Change-Id: Ifa9a3724c9c8ccd3dd6614928dbbe37477591dc1
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
2020-02-26 07:48:47 +00:00
..
qcoreapplication Port from QAtomic::load() to loadRelaxed() 2019-06-20 20:48:59 +02:00
qdeadlinetimer Don't wrap feature detection macros with QT_HAS_FOO() variants 2019-12-10 00:48:07 +01:00
qelapsedtimer Flatten version-specific blacklisting on macOS to all macOS versions 2020-01-22 17:58:31 +01:00
qeventdispatcher Detect double timer during single timeout in registerTimer test, and skip 2020-02-22 02:52:36 +01:00
qeventloop unblacklist passing tests 2019-07-08 11:01:42 +00:00
qmath Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
qmetaenum QMetaEnum: fix UB 2018-10-17 08:48:13 +00:00
qmetamethod Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qmetaobject Refactor memory allocation for arguments of QMetaCallEvents 2019-08-10 22:04:11 +02:00
qmetaobjectbuilder Qt6: Fix uninitialized meta objects on Windows 2019-07-16 18:34:41 -07:00
qmetaproperty Remove QLatin1Literal usages 2019-06-10 16:50:31 +00:00
qmetatype Introduce QT_NO_LINKED_LIST and mark QtBase (almost) free of it 2019-07-12 14:26:30 +02:00
qmimedata Updated license headers 2016-01-21 18:55:18 +00:00
qobject QObject: treat T* -> bool conversions as narrowing 2020-02-26 07:48:47 +00:00
qpointer Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
qsharedmemory Convert uses of QTime as a timer to QElapsedTimer 2019-06-14 10:42:33 +02:00
qsignalblocker Remove handling of missing Q_COMPILER_RVALUE_REFS 2019-05-01 20:24:45 +00:00
qsignalmapper Updated license headers 2016-01-21 18:55:18 +00:00
qsocketnotifier Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
qsystemsemaphore tst_qsystemsemaphore: Use qt_test_helper functionality 2018-07-31 05:27:08 +00:00
qtimer Don't wrap feature detection macros with QT_HAS_FOO() variants 2019-12-10 00:48:07 +01:00
qtranslator Port from QAtomic::load() to loadRelaxed() 2019-06-20 20:48:59 +02:00
qvariant QSequentialIterableImpl: support append 2020-01-15 10:09:00 +01:00
qwineventnotifier Merge remote-tracking branch 'origin/5.11' into dev 2018-03-28 08:12:21 +02:00
kernel.pro Make tests compile for Android 2018-06-25 08:01:19 +00:00