Enable __PRETTY_FUNCTION__ on Clang, but disable top-level warning

This commit is contained in:
Peter Dimov
2022-02-03 21:22:45 +02:00
parent 844d8c2245
commit 1a80da6298

View File

@ -147,12 +147,12 @@ inline char const* srcloc_strip_top_level( char const* fn )
# define BOOST_CURRENT_LOCATION ::boost::source_location(__FILE__, __LINE__, "")
#elif defined(__GNUC__)
#elif defined(__GNUC__) || defined(__clang__)
# define BOOST_CURRENT_LOCATION ::boost::source_location(__FILE__, __LINE__, ::boost::detail::srcloc_strip_top_level(__PRETTY_FUNCTION__))
# if defined(__clang__)
//# pragma clang diagnostic ignored "-W"
# pragma clang diagnostic ignored "-Wpredefined-identifier-outside-function"
# endif
#else