Wrap unimplemented clang feature in __has_feature
So that when they are actually implemented in future version, the proper defines get defined. Change-Id: I5cc3e3ef64b06facc27e6d697700dcb7a96300d5 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
parent
8eb2546bf2
commit
0bca94cf38
@ -797,15 +797,24 @@ namespace QT_NAMESPACE {}
|
||||
# define Q_COMPILER_RANGE_FOR
|
||||
# define Q_COMPILER_UNICODE_STRINGS
|
||||
# endif
|
||||
# if 0 /*) not implemented in clang */
|
||||
# define Q_COMPILER_ATOMICS
|
||||
/* not implemented in clang yet */
|
||||
# if __has_feature(cxx_constexpr)
|
||||
# define Q_COMPILER_CONSTEXPR
|
||||
# define Q_COMPILER_INITIALIZER_LISTS
|
||||
# endif
|
||||
# if __has_feature(cxx_lambdas)
|
||||
# define Q_COMPILER_LAMBDA
|
||||
# endif
|
||||
# if __has_feature(cxx_generalized_initializers)
|
||||
# define Q_COMPILER_INITIALIZER_LISTS
|
||||
# endif
|
||||
# if __has_feature(cxx_unrestricted_unions)
|
||||
# define Q_COMPILER_UNRESTRICTED_UNIONS
|
||||
# endif
|
||||
# if 0
|
||||
# define Q_COMPILER_ATOMICS
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#endif // Q_CC_CLANG
|
||||
|
||||
#ifndef Q_PACKED
|
||||
# define Q_PACKED
|
||||
|
Loading…
Reference in New Issue
Block a user