diff --git a/doc/macro_reference.qbk b/doc/macro_reference.qbk index ac46a412..0843da53 100644 --- a/doc/macro_reference.qbk +++ b/doc/macro_reference.qbk @@ -835,6 +835,9 @@ PPPPP is the compiler build number. Defined if the compiler is an Intel compiler, takes the same value as the compiler version macro. ]] +[[`BOOST_CLANG`][``][ +Defined to 1 if the compiler is the Clang compiler. +]] [[`BOOST_WINDOWS`][``][ Defined if the Windows platfrom API is available. ]] diff --git a/include/boost/config/compiler/clang.hpp b/include/boost/config/compiler/clang.hpp index 53339b4c..e5a682b2 100644 --- a/include/boost/config/compiler/clang.hpp +++ b/include/boost/config/compiler/clang.hpp @@ -69,3 +69,7 @@ #ifndef BOOST_COMPILER # define BOOST_COMPILER "Clang version " __clang_version__ #endif + +// Macro used to identify the Clang compiler. +#define BOOST_CLANG 1 +