clang.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. Copyright Redshift Software, Inc. 2008-2013
  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_CLANG_H
  8. #define BOOST_PREDEF_COMPILER_CLANG_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /*`
  12. [heading `BOOST_COMP_CLANG`]
  13. [@http://en.wikipedia.org/wiki/Clang Clang] compiler.
  14. Version number available as major, minor, and patch.
  15. [table
  16. [[__predef_symbol__] [__predef_version__]]
  17. [[`__clang__`] [__predef_detection__]]
  18. [[`__clang_major__`, `__clang_minor__`, `__clang_patchlevel__`] [V.R.P]]
  19. ]
  20. */
  21. #define BOOST_COMP_CLANG BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if defined(__clang__)
  23. # undef BOOST_COMP_CLANG
  24. # define BOOST_COMP_CLANG BOOST_VERSION_NUMBER(__clang_major__,__clang_minor__,__clang_patchlevel__)
  25. #endif
  26. #if BOOST_COMP_CLANG
  27. # define BOOST_COMP_CLANG_AVAILABLE
  28. #endif
  29. #define BOOST_COMP_CLANG_NAME "Clang"
  30. #include <boost/predef/detail/test.h>
  31. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_CLANG,BOOST_COMP_CLANG_NAME)
  32. #endif