LifeV
crlf_check.hpp
Go to the documentation of this file.
1 // crfl_check header --------------------------------------------------------//
2 
3 // Copyright Beman Dawes 2002.
4 // Copyright Rene Rivera 2004.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 
9 // Contributed by Joerg Walter
10 
11 #ifndef BOOST_CRLF_CHECK_HPP
12 #define BOOST_CRLF_CHECK_HPP
13 
14 #include "inspector.hpp"
15 
16 namespace boost
17 {
18 namespace inspect
19 {
21 {
23 public:
24 
25  crlf_check();
26  virtual const char* name() const
27  {
28  return "crlf-check";
29  }
30  virtual const char* desc() const
31  {
32  return "invalid (cr only) line-ending";
33  }
34 
35  virtual void inspect (
36  const std::string& library_name,
37  const path& full_path,
38  const std::string& contents );
39 
40  virtual ~crlf_check()
41  {
42  std::cout << " " << m_files_with_errors << " files with invalid line endings\n";
43  }
44 };
45 }
46 }
47 
48 #endif // BOOST_CRLF_CHECK_HPP
virtual const char * name() const
Definition: crlf_check.hpp:26
virtual const char * desc() const
Definition: crlf_check.hpp:30
virtual void inspect(const std::string &library_name, const path &full_path, const std::string &contents)
Definition: crlf_check.cpp:20