clang: Use __has_feature() to detect C++11 features
authorBradley T. Hughes <bradley.hughes@nokia.com>
Fri, 11 May 2012 09:24:07 +0000 (11:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 May 2012 06:10:29 +0000 (08:10 +0200)
commitfe5d5fdaf1d9b7d108727d290e24a6b0f00139c6
tree30c41648302604bbf4d0029ae40a134592ef1e75
parent2b735ac8e6b36c66444986a381cc56cd65a2bf7c
clang: Use __has_feature() to detect C++11 features

Apple's clang version is often reported as the next official clang
version, but Apple clang does not support all the features that the
final official clang does. Instead of using version based feature
detection, use the __has_feature() built-in instead, so that we
correctly #define the various Q_COMPILER_* macros.

Task-number: QTBUG-25554
Change-Id: I2195401dbf6cd8574c30aa1bd6f7cf1cf537dae7
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/global/qcompilerdetection.h