mirror of
https://github.com/boostorg/inspect.git
synced 2026-01-27 19:02:14 +00:00
37 lines
919 B
C++
37 lines
919 B
C++
// long_name_check implementation ------------------------------------------//
|
|
|
|
// Copyright Beman Dawes 2002.
|
|
// Use, modification, and distribution is subject to the Boost Software
|
|
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
#include "long_name_check.hpp"
|
|
|
|
namespace boost
|
|
{
|
|
namespace inspect
|
|
{
|
|
long_name_check::long_name_check() : m_long_name_errors(0) {}
|
|
|
|
void long_name_check::inspect(
|
|
const string & library_name,
|
|
const path & full_path )
|
|
{
|
|
string leaf( full_path.leaf() );
|
|
|
|
if ( leaf.size() > 31 )
|
|
{
|
|
++m_long_name_errors;
|
|
error( library_name, full_path, "filename > 31 chars" );
|
|
}
|
|
}
|
|
|
|
long_name_check::~long_name_check()
|
|
{
|
|
std::cout << " " << m_long_name_errors << " " << desc() << '\n';
|
|
}
|
|
|
|
|
|
} // namespace inspect
|
|
} // namespace boost
|