2 Copyright Rene Rivera 2008-2014
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_PREDEF_COMPILER_LLVM_H
9 #define BOOST_PREDEF_COMPILER_LLVM_H
11 /* Other compilers that emulate this one need to be detected first. */
13 #include <boost/predef/compiler/clang.h>
15 #include <boost/predef/version_number.h>
16 #include <boost/predef/make.h>
19 [heading `BOOST_COMP_LLVM`]
21 [@http://en.wikipedia.org/wiki/LLVM LLVM] compiler.
24 [[__predef_symbol__] [__predef_version__]]
26 [[`__llvm__`] [__predef_detection__]]
30 #define BOOST_COMP_LLVM BOOST_VERSION_NUMBER_NOT_AVAILABLE
33 # define BOOST_COMP_LLVM_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
36 #ifdef BOOST_COMP_LLVM_DETECTION
37 # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
38 # define BOOST_COMP_LLVM_EMULATED BOOST_COMP_LLVM_DETECTION
40 # undef BOOST_COMP_LLVM
41 # define BOOST_COMP_LLVM BOOST_COMP_LLVM_DETECTION
43 # define BOOST_COMP_LLVM_AVAILABLE
44 # include <boost/predef/detail/comp_detected.h>
47 #define BOOST_COMP_LLVM_NAME "LLVM"
49 #include <boost/predef/detail/test.h>
50 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM,BOOST_COMP_LLVM_NAME)
52 #ifdef BOOST_COMP_LLVM_EMULATED
53 #include <boost/predef/detail/test.h>
54 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM_EMULATED,BOOST_COMP_LLVM_NAME)