Kitware / KWStyle

Kitware Style Checker
Other
53 stars 30 forks source link

COMP: Ignore clang predefined-identifier-outside-function warning #112

Closed thewtex closed 5 months ago

thewtex commented 5 months ago

Silence:

In file included from /home/matt/src/KWStyle/Utilities/boost/smart_ptr/detail/shared_count.hpp:31:
/home/matt/src/KWStyle/Utilities/boost/throw_exception.hpp:233:105: warning: predefined identifier is only valid inside function [-Wpredefined-identifier-outside-function]
template<class E> BOOST_NORETURN void throw_with_location( E && e, boost::source_location const & loc = BOOST_CURRENT_LOCATION )
                                                                                                        ^
/home/matt/src/KWStyle/Utilities/boost/assert/source_location.hpp:104:79: note: expanded from macro 'BOOST_CURRENT_LOCATION'
                                                                              ^
/home/matt/src/KWStyle/Utilities/boost/current_function.hpp:37:33: note: expanded from macro 'BOOST_CURRENT_FUNCTION'

That is being thrown following: https://github.com/Kitware/KWStyle/pull/111