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:
Gennaro Prota 2006-08-07 18:44:51 +00:00
parent f0f918a5d6
commit 7b4b57b724
7 changed files with 7 additions and 7 deletions

View File

@ -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 )

View File

@ -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

View File

@ -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 ) )
{

View File

@ -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() );

View File

@ -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;

View File

@ -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 )
{

View File

@ -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;