LifeV
copyright_check.cpp
Go to the documentation of this file.
1
// copyright_check implementation ------------------------------------------------//
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
#
include
"copyright_check.hpp"
9
10
namespace
boost
11
{
12
namespace
inspect
13
{
14
copyright_check
::
copyright_check
() :
m_files_with_errors
(0)
15
{
16
}
17
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
22
{
23
if
( contents.find (
"Copyright"
) == string::npos
24
&& contents.find (
"copyright"
) == string::npos )
25
{
26
++
m_files_with_errors
;
27
error ( library_name, full_path, desc() );
28
}
29
}
30
}
// namespace inspect
31
}
// namespace boost
boost
Definition:
copyright_check.cpp:10
boost::inspect::copyright_check
Definition:
copyright_check.hpp:18
boost::inspect::copyright_check::m_files_with_errors
long m_files_with_errors
Definition:
copyright_check.hpp:20
boost::inspect::copyright_check::inspect
virtual void inspect(const std::string &library_name, const path &full_path, const std::string &contents)
Definition:
copyright_check.cpp:18
boost::inspect::copyright_check::copyright_check
copyright_check()
Definition:
copyright_check.cpp:14
boost::inspect
Definition:
copyright_check.cpp:12
lifev-release-doc
tools
inspect
copyright_check.cpp
Generated on Wed Mar 7 2018 19:41:11 for LifeV by
1.8.13