mirror of
https://github.com/boostorg/assert.git
synced 2025-07-30 20:37:16 +02:00
Cast to char const* to placate clang-tidy (refs #18)
This commit is contained in:
@ -84,6 +84,12 @@ template<class E, class T> std::basic_ostream<E, T> & operator<<( std::basic_ost
|
|||||||
|
|
||||||
# define BOOST_CURRENT_LOCATION ::boost::source_location()
|
# define BOOST_CURRENT_LOCATION ::boost::source_location()
|
||||||
|
|
||||||
|
#elif defined(__clang_analyzer__)
|
||||||
|
|
||||||
|
// Cast to char const* to placate clang-tidy
|
||||||
|
// https://bugs.llvm.org/show_bug.cgi?id=28480
|
||||||
|
# define BOOST_CURRENT_LOCATION ::boost::source_location(__FILE__, __LINE__, static_cast<char const*>(BOOST_CURRENT_FUNCTION))
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# define BOOST_CURRENT_LOCATION ::boost::source_location(__FILE__, __LINE__, BOOST_CURRENT_FUNCTION)
|
# define BOOST_CURRENT_LOCATION ::boost::source_location(__FILE__, __LINE__, BOOST_CURRENT_FUNCTION)
|
||||||
|
Reference in New Issue
Block a user