llvm.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. Copyright Rene Rivera 2008-2015
  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)
  6. */
  7. #ifndef BOOST_PREDEF_COMPILER_LLVM_H
  8. #define BOOST_PREDEF_COMPILER_LLVM_H
  9. /* Other compilers that emulate this one need to be detected first. */
  10. #include <boost/predef/compiler/clang.h>
  11. #include <boost/predef/version_number.h>
  12. #include <boost/predef/make.h>
  13. /*`
  14. [heading `BOOST_COMP_LLVM`]
  15. [@http://en.wikipedia.org/wiki/LLVM LLVM] compiler.
  16. [table
  17. [[__predef_symbol__] [__predef_version__]]
  18. [[`__llvm__`] [__predef_detection__]]
  19. ]
  20. */
  21. #define BOOST_COMP_LLVM BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if defined(__llvm__)
  23. # define BOOST_COMP_LLVM_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  24. #endif
  25. #ifdef BOOST_COMP_LLVM_DETECTION
  26. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  27. # define BOOST_COMP_LLVM_EMULATED BOOST_COMP_LLVM_DETECTION
  28. # else
  29. # undef BOOST_COMP_LLVM
  30. # define BOOST_COMP_LLVM BOOST_COMP_LLVM_DETECTION
  31. # endif
  32. # define BOOST_COMP_LLVM_AVAILABLE
  33. # include <boost/predef/detail/comp_detected.h>
  34. #endif
  35. #define BOOST_COMP_LLVM_NAME "LLVM"
  36. #endif
  37. #include <boost/predef/detail/test.h>
  38. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM,BOOST_COMP_LLVM_NAME)
  39. #ifdef BOOST_COMP_LLVM_EMULATED
  40. #include <boost/predef/detail/test.h>
  41. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM_EMULATED,BOOST_COMP_LLVM_NAME)
  42. #endif