1 // assert_macro_check header --------------------------------------------------------//
3 // Copyright Eric Niebler 2010.
4 // Based on the apple_macro_check checker by Marshall Clow
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 #ifndef BOOST_ASSERT_MACRO_CHECK_HPP
10 #define BOOST_ASSERT_MACRO_CHECK_HPP
12 #include "inspector.hpp"
19 class assert_macro_check : public inspector
21 long m_files_with_errors;
22 bool m_from_boost_root;
26 virtual const char * name() const { return "*ASSERT-MACROS*"; }
27 virtual const char * desc() const { return "presence of C-style assert macro in file (use BOOST_ASSERT instead)"; }
30 const std::string & library_name,
31 const path & full_path,
32 const std::string & contents );
34 virtual ~assert_macro_check()
35 { std::cout << " " << m_files_with_errors << " files with a C-style assert macro" << line_break(); }
40 #endif // BOOST_ASSERT_MACRO_CHECK_HPP