2011-12-15 03:48:37 +00:00
|
|
|
/*
|
2014-01-16 15:50:19 -06:00
|
|
|
Copyright Rene Rivera 2008-2014
|
2011-12-15 03:48:37 +00:00
|
|
|
Distributed under 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)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BOOST_PREDEF_COMPILER_CLANG_H
|
|
|
|
#define BOOST_PREDEF_COMPILER_CLANG_H
|
|
|
|
|
|
|
|
#include <boost/predef/version_number.h>
|
|
|
|
#include <boost/predef/make.h>
|
|
|
|
|
|
|
|
/*`
|
2012-07-15 03:37:23 +00:00
|
|
|
[heading `BOOST_COMP_CLANG`]
|
2011-12-15 03:48:37 +00:00
|
|
|
|
|
|
|
[@http://en.wikipedia.org/wiki/Clang Clang] compiler.
|
|
|
|
Version number available as major, minor, and patch.
|
2012-07-15 03:37:23 +00:00
|
|
|
|
|
|
|
[table
|
|
|
|
[[__predef_symbol__] [__predef_version__]]
|
|
|
|
|
2013-01-10 23:23:37 -06:00
|
|
|
[[`__clang__`] [__predef_detection__]]
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2013-01-10 23:23:37 -06:00
|
|
|
[[`__clang_major__`, `__clang_minor__`, `__clang_patchlevel__`] [V.R.P]]
|
2012-07-15 03:37:23 +00:00
|
|
|
]
|
2011-12-15 03:48:37 +00:00
|
|
|
*/
|
|
|
|
|
2013-01-18 21:25:30 -06:00
|
|
|
#define BOOST_COMP_CLANG BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
2011-12-15 03:48:37 +00:00
|
|
|
|
|
|
|
#if defined(__clang__)
|
2014-01-16 15:50:19 -06:00
|
|
|
# define BOOST_COMP_CLANG_DETECTION BOOST_VERSION_NUMBER(__clang_major__,__clang_minor__,__clang_patchlevel__)
|
2011-12-15 03:48:37 +00:00
|
|
|
#endif
|
|
|
|
|
2014-01-16 15:50:19 -06:00
|
|
|
#ifdef BOOST_COMP_CLANG_DETECTION
|
|
|
|
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
|
|
|
# define BOOST_COMP_CLANG_EMULATED BOOST_COMP_CLANG_DETECTION
|
|
|
|
# else
|
|
|
|
# undef BOOST_COMP_CLANG
|
|
|
|
# define BOOST_COMP_CLANG BOOST_COMP_CLANG_DETECTION
|
|
|
|
# endif
|
2013-01-18 21:25:30 -06:00
|
|
|
# define BOOST_COMP_CLANG_AVAILABLE
|
2014-01-16 15:50:19 -06:00
|
|
|
# include <boost/predef/detail/comp_detected.h>
|
2013-01-18 21:25:30 -06:00
|
|
|
#endif
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_COMP_CLANG_NAME "Clang"
|
|
|
|
|
2015-06-29 18:49:33 -05:00
|
|
|
#endif
|
|
|
|
|
2011-12-15 03:48:37 +00:00
|
|
|
#include <boost/predef/detail/test.h>
|
2012-07-15 03:37:23 +00:00
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_CLANG,BOOST_COMP_CLANG_NAME)
|
|
|
|
|
2014-01-16 15:50:19 -06:00
|
|
|
#ifdef BOOST_COMP_CLANG_EMULATED
|
|
|
|
#include <boost/predef/detail/test.h>
|
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_CLANG_EMULATED,BOOST_COMP_CLANG_NAME)
|
|
|
|
#endif
|