qt5base-lts/tests/auto/corelib
Marc Mutz 38e90ad2b3 qcompilerdetection.h: add Q_COMPILER_UNIFORM_INIT
Up to now, the feature classe Uniform Initialization was subsumed by the
Q_COMPILER_INITIALIZER_LISTS flag together with support for
std::initializer_list.

This caused at least two problems:
1. On QNX, the standard libray does not ship <initializer_list>, even
   though the compiler (a GCC 4.6, IIRC) supports it. But since there
   was only one Q_COMPILER flag for both, support for the compiler-only
   part of the feature had to be disabled, too.
2. MSVC 2013 supports initializer lists, but has a bug that renders full
   uniform initialization support, as required for QUuid, useless.

By splitting the feature into two, we can separate them better, and do
so in QUuid, which is the only class that currently takes advantage of
uniform initialization (to provide constexpr constructors).

Since Q_COMPILER_INITIALIZER_LISTS worked as a flag for uniform
initialization so far, with the two known exceptions above,
UNIFORM_INIT is defined whenever INITIALIZER_LIST is, except that
I don't revert UNIFORM_INIT on QNX as I do for INITIALIZER_LISTS
and that I expect the MSVC 2013 features to set INITIALIZER_LIST,
but not UNIFORM_INIT.

Task-number: QTBUG-34705

Change-Id: I81916e950a0f3aab3de7977e0326d2de3d31b14c
Reviewed-by: Yuchen Deng <loaden@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-11-15 06:30:53 +01:00
..
animation don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
codecs Allow non-character codes in utf8 strings 2013-10-17 09:50:58 +02:00
global tst_QFlags: make constExpr() check compile on clang trunk 2013-11-07 03:06:29 +01:00
io Revert "Add tracing to logging framework" 2013-11-07 11:29:30 +01:00
itemmodels exclude gui-needing tests from -no-gui build 2013-10-18 20:05:27 +02:00
json Allow non-character codes in utf8 strings 2013-10-17 09:50:58 +02:00
kernel QVariant: Convert automatically from enum types to integral types. 2013-11-08 16:45:26 +01:00
mimetypes Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
plugin qcompilerdetection.h: add Q_COMPILER_UNIFORM_INIT 2013-11-15 06:30:53 +01:00
statemachine don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
thread tst_QReadWriteLock: replace a volatile bool with an atomic int 2013-09-23 02:47:49 +02:00
tools remove qt_windows.h include from qwineventnotifier.h 2013-10-29 19:59:17 +01:00
xml Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00