Last change
on this file since 35 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
1.0 KB
|
Line | |
---|
1 | // copyright_check header --------------------------------------------------// |
---|
2 | |
---|
3 | // Copyright Beman Dawes 2002, 2003. |
---|
4 | // Copyright Rene Rivera 2004. |
---|
5 | // |
---|
6 | // Distributed under the Boost Software License, Version 1.0. |
---|
7 | // (See accompanying file LICENSE_1_0.txt or copy at |
---|
8 | // http://www.boost.org/LICENSE_1_0.txt) |
---|
9 | |
---|
10 | #ifndef BOOST_COPYRIGHT_CHECK_HPP |
---|
11 | #define BOOST_COPYRIGHT_CHECK_HPP |
---|
12 | |
---|
13 | #include "inspector.hpp" |
---|
14 | |
---|
15 | namespace boost |
---|
16 | { |
---|
17 | namespace inspect |
---|
18 | { |
---|
19 | class copyright_check : public source_inspector |
---|
20 | { |
---|
21 | long m_files_with_errors; |
---|
22 | public: |
---|
23 | |
---|
24 | copyright_check(); |
---|
25 | virtual const char * name() const { return "*C*"; } |
---|
26 | virtual const char * desc() const { return "missing copyright notice"; } |
---|
27 | |
---|
28 | virtual void inspect( |
---|
29 | const std::string & library_name, |
---|
30 | const path & full_path, |
---|
31 | const std::string & contents ); |
---|
32 | |
---|
33 | virtual ~copyright_check() |
---|
34 | { std::cout << " " << m_files_with_errors << " files " << desc() << '\n'; } |
---|
35 | }; |
---|
36 | } |
---|
37 | } |
---|
38 | |
---|
39 | #endif // BOOST_COPYRIGHT_CHECK_HPP |
---|
Note: See
TracBrowser
for help on using the repository browser.