2
0
mirror of https://github.com/boostorg/inspect.git synced 2026-01-30 20:02:13 +00:00
Files
inspect/tab_check.cpp
Beman Dawes 381fff697f add .ipp as file type
[SVN r19495]
2003-08-09 16:55:13 +00:00

42 lines
1.2 KiB
C++

// tab_check implementation ------------------------------------------------//
// (C) Copyright Beman Dawes 2002. Permission to copy,
// use, modify, sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided "as is"
// without express or implied warranty, and with no claim as to its
// suitability for any purpose.
#include "tab_check.hpp"
namespace boost
{
namespace inspect
{
tab_check::tab_check() : m_files_with_errors(0)
{
register_signature( ".c" );
register_signature( ".cpp" );
register_signature( ".cxx" );
register_signature( ".h" );
register_signature( ".hpp" );
register_signature( ".hxx" );
register_signature( ".ipp" );
register_signature( "Jamfile" );
}
void tab_check::inspect(
const string & library_name,
const path & full_path, // example: c:/foo/boost/filesystem/path.hpp
const string & contents ) // contents of file to be inspected
{
if ( contents.find( '\t' ) != string::npos )
{
++m_files_with_errors;
error( library_name, full_path, desc() );
}
}
} // namespace inspect
} // namespace boost