Files
boost_config/include/boost/config/compiler/clang.hpp
T

86 lines
2.0 KiB
C++
Raw Normal View History

2010-04-27 19:45:08 +00:00
// (C) Copyright Douglas Gregor 2010
//
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org for most recent version.
// Clang compiler setup.
#if __has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS)
2010-04-27 19:45:08 +00:00
#else
# define BOOST_NO_EXCEPTIONS
#endif
#if !__has_feature(cxx_rtti)
2010-04-27 19:45:08 +00:00
# define BOOST_NO_RTTI
#endif
#if defined(__int64)
# define BOOST_HAS_MS_INT64
#endif
2010-05-15 18:47:13 +00:00
#define BOOST_HAS_NRVO
2010-04-27 19:45:08 +00:00
// Clang supports "long long" in all compilation modes.
2010-04-27 19:45:08 +00:00
#define BOOST_NO_AUTO_DECLARATIONS
#define BOOST_NO_AUTO_MULTIDECLARATIONS
#define BOOST_NO_CHAR16_T
#define BOOST_NO_CHAR32_T
#define BOOST_NO_CONSTEXPR
#if !__has_feature(cxx_decltype)
# define BOOST_NO_DECLTYPE
#endif
2011-06-01 14:51:03 +00:00
#define BOOST_NO_DECLTYPE_N3276
2010-04-27 19:45:08 +00:00
#define BOOST_NO_DEFAULTED_FUNCTIONS
#if !__has_feature(cxx_deleted_functions)
# define BOOST_NO_DELETED_FUNCTIONS
#endif
2010-04-27 19:45:08 +00:00
#define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
#if !__has_feature(cxx_default_function_template_args)
#define BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
#endif
2010-04-27 19:45:08 +00:00
#define BOOST_NO_INITIALIZER_LISTS
#define BOOST_NO_LAMBDAS
#define BOOST_NO_NOEXCEPT
2010-04-27 19:45:08 +00:00
#define BOOST_NO_NULLPTR
#define BOOST_NO_RAW_LITERALS
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
#if !__has_feature(cxx_rvalue_references)
# define BOOST_NO_RVALUE_REFERENCES
#endif
#if !__has_feature(cxx_strong_enums)
# define BOOST_NO_SCOPED_ENUMS
#endif
#if !__has_feature(cxx_static_assert)
# define BOOST_NO_STATIC_ASSERT
#endif
2010-04-27 19:45:08 +00:00
#define BOOST_NO_TEMPLATE_ALIASES
#define BOOST_NO_UNICODE_LITERALS
#if !__has_feature(cxx_variadic_templates)
# define BOOST_NO_VARIADIC_TEMPLATES
#endif
// Clang always supports variadic macros
// Clang always supports extern templates
2010-04-27 19:45:08 +00:00
#ifndef BOOST_COMPILER
2010-04-30 03:00:31 +00:00
# define BOOST_COMPILER "Clang version " __clang_version__
2010-04-27 19:45:08 +00:00
#endif
// Macro used to identify the Clang compiler.
#define BOOST_CLANG 1