• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  apple_macro_check header  --------------------------------------------------------//
2 
3 //  Copyright Marshall Clow 2007.
4 //  Based on the tab-check checker by Beman Dawes
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)
8 
9 #ifndef BOOST_APPLE_MACRO_CHECK_HPP
10 #define BOOST_APPLE_MACRO_CHECK_HPP
11 
12 #include "inspector.hpp"
13 
14 
15 namespace boost
16 {
17   namespace inspect
18   {
19     class apple_macro_check : public inspector
20     {
21       long m_files_with_errors;
22     public:
23 
24       apple_macro_check();
name() const25       virtual const char * name() const { return "*APPLE-MACROS*"; }
desc() const26       virtual const char * desc() const { return "calls to Apple's debugging macros in file"; }
27 
28       virtual void inspect(
29         const std::string & library_name,
30         const path & full_path,
31         const std::string & contents );
32 
~apple_macro_check()33       virtual ~apple_macro_check()
34         { std::cout << "  " << m_files_with_errors << " files with Apple macros" << line_break(); }
35     };
36   }
37 }
38 
39 #endif // BOOST_APPLE_MACRO_CHECK_HPP
40