YouCompleteMe/cpp/BoostParts/boost/config/compiler/clang.hpp

145 lines
3.5 KiB
C++
Raw Normal View History

2012-05-10 00:45:30 -04: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.
2012-07-21 14:37:40 -04:00
#if !__has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS)
2012-05-10 00:45:30 -04:00
# define BOOST_NO_EXCEPTIONS
#endif
2012-07-21 14:37:40 -04:00
#if !__has_feature(cxx_rtti) && !defined(BOOST_NO_RTTI)
2012-05-10 00:45:30 -04:00
# define BOOST_NO_RTTI
#endif
2012-07-21 14:37:40 -04:00
#if !__has_feature(cxx_rtti) && !defined(BOOST_NO_TYPEID)
# define BOOST_NO_TYPEID
#endif
2012-05-10 00:45:30 -04:00
#if defined(__int64)
# define BOOST_HAS_MS_INT64
#endif
#define BOOST_HAS_NRVO
// Clang supports "long long" in all compilation modes.
2012-07-21 14:37:40 -04:00
#define BOOST_HAS_LONG_LONG
2012-05-10 00:45:30 -04:00
2013-02-13 23:03:52 -05:00
//
// Dynamic shared object (DSO) and dynamic-link library (DLL) support
//
#if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
# define BOOST_SYMBOL_EXPORT __attribute__((__visibility__("default")))
# define BOOST_SYMBOL_IMPORT
# define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default")))
#endif
2012-05-10 00:45:30 -04:00
#if !__has_feature(cxx_auto_type)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_AUTO_DECLARATIONS
# define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
2012-05-10 00:45:30 -04:00
#endif
#if !(defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_CHAR16_T
# define BOOST_NO_CXX11_CHAR32_T
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_constexpr)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_CONSTEXPR
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_decltype)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_DECLTYPE
2012-05-10 00:45:30 -04:00
#endif
2012-07-21 14:37:40 -04:00
#if !__has_feature(cxx_decltype_incomplete_return_types)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_DECLTYPE_N3276
2012-07-21 14:37:40 -04:00
#endif
2012-05-10 00:45:30 -04:00
#if !__has_feature(cxx_defaulted_functions)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_deleted_functions)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_DELETED_FUNCTIONS
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_explicit_conversions)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_default_function_template_args)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_generalized_initializers)
2012-07-21 14:37:40 -04:00
# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_lambdas)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_LAMBDAS
2012-05-10 00:45:30 -04:00
#endif
2012-07-21 14:37:40 -04:00
#if !__has_feature(cxx_local_type_template_args)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
2012-07-21 14:37:40 -04:00
#endif
2012-05-10 00:45:30 -04:00
#if !__has_feature(cxx_noexcept)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_NOEXCEPT
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_nullptr)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_NULLPTR
#endif
#if !__has_feature(cxx_range_for)
# define BOOST_NO_CXX11_RANGE_BASED_FOR
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_raw_string_literals)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_RAW_LITERALS
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_generalized_initializers)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_rvalue_references)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_RVALUE_REFERENCES
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_strong_enums)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_SCOPED_ENUMS
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_static_assert)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_STATIC_ASSERT
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_alias_templates)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_TEMPLATE_ALIASES
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_unicode_literals)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_UNICODE_LITERALS
2012-05-10 00:45:30 -04:00
#endif
#if !__has_feature(cxx_variadic_templates)
2013-01-13 17:38:19 -05:00
# define BOOST_NO_CXX11_VARIADIC_TEMPLATES
2012-05-10 00:45:30 -04:00
#endif
// Clang always supports variadic macros
// Clang always supports extern templates
#ifndef BOOST_COMPILER
# define BOOST_COMPILER "Clang version " __clang_version__
#endif
// Macro used to identify the Clang compiler.
#define BOOST_CLANG 1