]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/inspect/tab_check.cpp
1 // tab_check implementation ------------------------------------------------//
3 // Copyright Beman Dawes 2002.
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 #include "tab_check.hpp"
15 tab_check::tab_check() : m_files_with_errors(0)
17 register_signature( ".c" );
18 register_signature( ".cpp" );
19 register_signature( ".cxx" );
20 register_signature( ".h" );
21 register_signature( ".hpp" );
22 register_signature( ".hxx" );
23 register_signature( ".ipp" );
24 register_signature( "Jamfile" );
25 register_signature( ".py" );
28 void tab_check::inspect(
29 const string
& library_name
,
30 const path
& full_path
, // example: c:/foo/boost/filesystem/path.hpp
31 const string
& contents
) // contents of file to be inspected
33 if (contents
.find( "boostinspect:" "notab" ) != string::npos
) return;
35 if ( contents
.find( '\t' ) != string::npos
)
37 ++m_files_with_errors
;
38 error( library_name
, full_path
, name() );
41 } // namespace inspect