Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81564 - trunk/tools/inspect
From: marshall_at_[hidden]
Date: 2012-11-26 12:50:29


Author: marshall
Date: 2012-11-26 12:50:29 EST (Mon, 26 Nov 2012)
New Revision: 81564
URL: http://svn.boost.org/trac/boost/changeset/81564

Log:
Fix bug in inspect tool where it wouldn't look in test/example directories for deprecated macros
Text files modified:
   trunk/tools/inspect/deprecated_macro_check.cpp | 13 ++-----------
   1 files changed, 2 insertions(+), 11 deletions(-)

Modified: trunk/tools/inspect/deprecated_macro_check.cpp
==============================================================================
--- trunk/tools/inspect/deprecated_macro_check.cpp (original)
+++ trunk/tools/inspect/deprecated_macro_check.cpp 2012-11-26 12:50:29 EST (Mon, 26 Nov 2012)
@@ -1,4 +1,5 @@
-// assert_macro_check implementation ------------------------------------------------//
+// deprecated macro check implementation ---------------------------------------------//
+// Protect against ourself: boostinspect:ndprecated_macros
 
 // Copyright Eric Niebler 2010.
 // Based on the assert_macro_check checker by Marshall Clow
@@ -101,16 +102,6 @@
       if (contents.find( "boostinspect:" "ndprecated_macros" ) != string::npos)
         return;
 
- // Check files iff (a) they are in the boost directory, or (b) they
- // are in the src directory under libs.
- if (m_from_boost_root) {
- path relative( relative_to( full_path, fs::initial_path() ) );
- path::const_iterator pbeg = relative.begin(), pend = relative.end();
- if (pbeg != std::find(pbeg, pend, "boost") &&
- !(pbeg == std::find(pbeg, pend, "libs") && pend != std::find(pbeg, pend, "src")))
- return;
- }
-
       const char **ptr;
       long errors = 0;
       for ( ptr = boost150macros; *ptr != NULL; ++ptr )


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk