9 #include <boost/regex.hpp> 10 #include <boost/lexical_cast.hpp> 32 register_signature (
".c" );
33 register_signature (
".cpp" );
34 register_signature (
".cxx" );
35 register_signature (
".h" );
36 register_signature (
".hpp" );
37 register_signature (
".hxx" );
38 register_signature (
".inc" );
39 register_signature (
".ipp" );
45 const string& library_name,
46 const path& full_path,
47 const string& contents)
49 boost::sregex_iterator cur (contents.begin(), contents.end(), minmax_regex), end;
51 for ( ; cur != end; ++cur, ++
m_errors )
53 std::string linenbr = std::to_string (
54 std::count ( contents.begin(), (*cur) [0].first,
'\n' ) + 1);
56 error ( library_name, full_path,
"violation of Boost min/max guidelines on line " + linenbr );
boost::regex minmax_regex("\(min|max)\" "\*\", boost::regex::normal)
static const LifeV::UInt elm_nodes_num[]