1 //  tab_check header  --------------------------------------------------------//
2 
3 //  Copyright Beman Dawes 2002.
4 //  Distributed under the Boost Software License, Version 1.0.
5 //  (See accompanying file LICENSE_1_0.txt or copy at
6 //  http://www.boost.org/LICENSE_1_0.txt)
7 
8 #ifndef BOOST_TAB_CHECK_HPP
9 #define BOOST_TAB_CHECK_HPP
10 
11 #include "inspector.hpp"
12 
13 namespace boost
14 {
15   namespace inspect
16   {
17     class tab_check : public inspector
18     {
19       long m_files_with_errors;
20     public:
21 
22       tab_check();
name() const23       virtual const char * name() const { return "*Tabs*"; }
desc() const24       virtual const char * desc() const { return "tabs in file"; }
25 
26       virtual void inspect(
27         const std::string & library_name,
28         const path & full_path,
29         const std::string & contents );
30 
~tab_check()31       virtual ~tab_check()
32         { std::cout << "  " << m_files_with_errors << " files with tabs" << line_break(); }
33     };
34   }
35 }
36 
37 #endif // BOOST_TAB_CHECK_HPP
38