LifeV
minmax_check.hpp
Go to the documentation of this file.
1
// minmax_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
#
ifndef
BOOST_MINMAX_CHECK_HPP
10
#
define
BOOST_MINMAX_CHECK_HPP
11
12
#
include
"inspector.hpp"
13
14
namespace
boost
15
{
16
namespace
inspect
17
{
18
class
minmax_check
:
public
inspector
19
{
20
long
m_errors
;
21
22
public
:
23
24
minmax_check
();
25
virtual
const
char
*
name
()
const
26
{
27
return
"minmax-check"
;
28
}
29
virtual
const
char
*
desc
()
const
30
{
31
return
"uses of min and max that have not been protected from the min/max macros"
;
32
}
33
34
virtual
void
inspect
(
35
const
std::string& library_name,
36
const
path& full_path,
37
const
std::string& contents);
38
39
virtual
~
minmax_check
()
40
{
41
std::cout <<
" "
<< m_errors <<
" violations of the Boost min/max guidelines\n"
;
42
}
43
};
44
}
45
}
46
47
#
endif
// BOOST_MINMAX_CHECK_HPP
boost
Definition:
copyright_check.cpp:10
boost::inspect::minmax_check::minmax_check
minmax_check()
Definition:
minmax_check.cpp:28
boost::inspect::minmax_check::inspect
virtual void inspect(const std::string &library_name, const path &full_path, const std::string &contents)
Definition:
minmax_check.cpp:44
boost::inspect::inspector
Definition:
inspector.hpp:26
boost::inspect::minmax_check::~minmax_check
virtual ~minmax_check()
Definition:
minmax_check.hpp:39
boost::inspect::minmax_check::desc
virtual const char * desc() const
Definition:
minmax_check.hpp:29
boost::inspect::minmax_check::m_errors
long m_errors
Definition:
minmax_check.hpp:20
boost::inspect
Definition:
copyright_check.cpp:12
boost::inspect::minmax_check
Definition:
minmax_check.hpp:18
boost::inspect::minmax_check::name
virtual const char * name() const
Definition:
minmax_check.hpp:25
lifev-release-doc
tools
inspect
minmax_check.hpp
Generated on Wed Mar 7 2018 19:43:06 for LifeV by
1.8.13