mirror of
https://github.com/boostorg/inspect.git
synced 2025-05-11 13:23:59 +00:00
Inspect Tool Update:
be sure that the "exclusion tags" do not appear verbatim in our source, or they will exclude ourselves :-) [SVN r34845]
This commit is contained in:
parent
f0f918a5d6
commit
7b4b57b724
@ -20,7 +20,7 @@ namespace boost
|
||||
const path & full_path, // example: c:/foo/boost/filesystem/path.hpp
|
||||
const string & contents ) // contents of file to be inspected
|
||||
{
|
||||
if (contents.find( "boostinspect:nocopyright" ) != string::npos) return;
|
||||
if (contents.find( "boostinspect:" "nocopyright" ) != string::npos) return;
|
||||
|
||||
if ( contents.find( "Copyright" ) == string::npos
|
||||
&& contents.find( "copyright" ) == string::npos )
|
||||
|
@ -22,7 +22,7 @@ namespace boost
|
||||
const path & full_path, // example: c:/foo/boost/filesystem/path.hpp
|
||||
const string & contents ) // contents of file to be inspected
|
||||
{
|
||||
if (contents.find( "boostinspect:nocrlf" ) != string::npos) return;
|
||||
if (contents.find( "boostinspect:" "nocrlf" ) != string::npos) return;
|
||||
|
||||
bool failed = false;
|
||||
// The understanding on line endings, as I remember it, was that
|
||||
|
@ -34,7 +34,7 @@ namespace boost
|
||||
const path & full_path, // example: c:/foo/boost/filesystem/path.hpp
|
||||
const string & contents ) // contents of file to be inspected
|
||||
{
|
||||
if (contents.find( "boostinspect:nolicense" ) != string::npos) return;
|
||||
if (contents.find( "boostinspect:" "nolicense" ) != string::npos) return;
|
||||
|
||||
if ( !boost::regex_search( contents, license_regex ) )
|
||||
{
|
||||
|
@ -52,7 +52,7 @@ namespace boost
|
||||
const path & full_path, // example: c:/foo/boost/filesystem/path.hpp
|
||||
const string & contents ) // contents of file to be inspected
|
||||
{
|
||||
if (contents.find( "boostinspect:nolink" ) != string::npos) return;
|
||||
if (contents.find( "boostinspect:" "nolink" ) != string::npos) return;
|
||||
|
||||
string::const_iterator start( contents.begin() );
|
||||
string::const_iterator end( contents.end() );
|
||||
|
@ -58,7 +58,7 @@ namespace boost
|
||||
const path & full_path, // example: c:/foo/boost/filesystem/path.hpp
|
||||
const string & contents) // contents of file to be inspected
|
||||
{
|
||||
if (contents.find( "boostinspect:nominmax" ) != string::npos) return;
|
||||
if (contents.find( "boostinspect:" "nominmax" ) != string::npos) return;
|
||||
|
||||
boost::sregex_iterator cur(contents.begin(), contents.end(), minmax_regex), end;
|
||||
|
||||
|
@ -29,7 +29,7 @@ namespace boost
|
||||
const path & full_path, // example: c:/foo/boost/filesystem/path.hpp
|
||||
const string & contents ) // contents of file to be inspected
|
||||
{
|
||||
if (contents.find( "boostinspect:notab" ) != string::npos) return;
|
||||
if (contents.find( "boostinspect:" "notab" ) != string::npos) return;
|
||||
|
||||
if ( contents.find( '\t' ) != string::npos )
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ namespace boost
|
||||
const path & full_path, // example: c:/foo/boost/filesystem/path.hpp
|
||||
const string & contents ) // contents of file to be inspected
|
||||
{
|
||||
if (contents.find( "boostinspect:nounnamed" ) != string::npos) return;
|
||||
if (contents.find( "boostinspect:" "nounnamed" ) != string::npos) return;
|
||||
|
||||
|
||||
boost::sregex_iterator cur(contents.begin(), contents.end(), unnamed_namespace_regex), end;
|
||||
|
Loading…
x
Reference in New Issue
Block a user