Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Rene Rivera 2008-2015
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_COMPILER_LLVM_H
0009 #define BOOST_PREDEF_COMPILER_LLVM_H
0010 
0011 /* Other compilers that emulate this one need to be detected first. */
0012 
0013 #include <boost/predef/compiler/clang.h>
0014 
0015 #include <boost/predef/version_number.h>
0016 #include <boost/predef/make.h>
0017 
0018 /* tag::reference[]
0019 = `BOOST_COMP_LLVM`
0020 
0021 http://en.wikipedia.org/wiki/LLVM[LLVM] compiler.
0022 
0023 [options="header"]
0024 |===
0025 | {predef_symbol} | {predef_version}
0026 
0027 | `+__llvm__+` | {predef_detection}
0028 |===
0029 */ // end::reference[]
0030 
0031 #define BOOST_COMP_LLVM BOOST_VERSION_NUMBER_NOT_AVAILABLE
0032 
0033 #if defined(__llvm__)
0034 #   define BOOST_COMP_LLVM_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
0035 #endif
0036 
0037 #ifdef BOOST_COMP_LLVM_DETECTION
0038 #   if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
0039 #       define BOOST_COMP_LLVM_EMULATED BOOST_COMP_LLVM_DETECTION
0040 #   else
0041 #       undef BOOST_COMP_LLVM
0042 #       define BOOST_COMP_LLVM BOOST_COMP_LLVM_DETECTION
0043 #   endif
0044 #   define BOOST_COMP_LLVM_AVAILABLE
0045 #   include <boost/predef/detail/comp_detected.h>
0046 #endif
0047 
0048 #define BOOST_COMP_LLVM_NAME "LLVM"
0049 
0050 #endif
0051 
0052 #include <boost/predef/detail/test.h>
0053 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM,BOOST_COMP_LLVM_NAME)
0054 
0055 #ifdef BOOST_COMP_LLVM_EMULATED
0056 #include <boost/predef/detail/test.h>
0057 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM_EMULATED,BOOST_COMP_LLVM_NAME)
0058 #endif