]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/inspect/copyright_check.cpp
1 // copyright_check implementation ------------------------------------------------//
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)
8 #include "copyright_check.hpp"
14 copyright_check::copyright_check() : m_files_with_errors(0)
18 void copyright_check::inspect(
19 const string
& library_name
,
20 const path
& full_path
, // example: c:/foo/boost/filesystem/path.hpp
21 const string
& contents
) // contents of file to be inspected
23 if (contents
.find( "boostinspect:" "nocopyright" ) != string::npos
) return;
25 if ( contents
.find( "Copyright" ) == string::npos
26 && contents
.find( "copyright" ) == string::npos
)
28 ++m_files_with_errors
;
29 error( library_name
, full_path
, name() );
32 } // namespace inspect