Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79554 - branches/release/tools/bcp
From: john_at_[hidden]
Date: 2012-07-16 04:21:22


Author: johnmaddock
Date: 2012-07-16 04:21:20 EDT (Mon, 16 Jul 2012)
New Revision: 79554
URL: http://svn.boost.org/trac/boost/changeset/79554

Log:
Merge bcp fixes from Trunk.
Properties modified:
   branches/release/tools/bcp/ (props changed)
Text files modified:
   branches/release/tools/bcp/copy_path.cpp | 14 +++++++++-----
   branches/release/tools/bcp/fileview.cpp | 2 +-
   branches/release/tools/bcp/licence_info.cpp | 2 +-
   branches/release/tools/bcp/main.cpp | 2 +-
   branches/release/tools/bcp/output_licence_info.cpp | 2 ++
   branches/release/tools/bcp/scan_cvs_path.cpp | 2 +-
   branches/release/tools/bcp/scan_licence.cpp | 4 ++--
   7 files changed, 17 insertions(+), 11 deletions(-)

Modified: branches/release/tools/bcp/copy_path.cpp
==============================================================================
--- branches/release/tools/bcp/copy_path.cpp (original)
+++ branches/release/tools/bcp/copy_path.cpp 2012-07-16 04:21:20 EDT (Mon, 16 Jul 2012)
@@ -134,7 +134,7 @@
          "(?|"
             "(namespace\\s+)boost(_\\w+)?(?:(\\s*::\\s*)phoenix)?"
          "|"
- "(namespace\\s+)(adstl|phoenix|rapidxml)\\>"
+ "(namespace\\s+(?:detail::)?)(adstl|phoenix|rapidxml)\\>"
          "|"
             "()\\<boost((?:_(?!intrusive_tags)\\w+)?\\s*(?:::))(?:(\\s*)phoenix)?"
          "|"
@@ -154,11 +154,15 @@
          "|"
             "(BOOST_CLASS_REQUIRE4?[^;]*)boost((?:_\\w+)?\\s*,)"
          "|"
+ "(::tr1::|TR1_DECL\\s+)boost(_\\w+\\s*)" // math tr1
+ "|"
+ "(\\(\\s*)boost(\\s*\\))\\s*(\\(\\s*)phoenix(\\s*\\))"
+ "|"
             "(\\(\\s*)boost(\\s*\\))"
          ")"
       );
 
- regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), namespace_matcher, "$1" + m_namespace_name + "$2(?3$3" + m_namespace_name + "phoenix)", boost::regex_constants::format_all);
+ regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), namespace_matcher, "$1" + m_namespace_name + "$2(?3$3" + m_namespace_name + "phoenix?4$4)", boost::regex_constants::format_all);
       std::swap(v1, v2);
       v2.clear();
 
@@ -191,11 +195,11 @@
             "\\s*\\{.*"
             "\\})([^\\{\\};]*)\\z"
             */
- "namespace\\s+" + m_namespace_name +
- "\\s*\\{"
+ "(namespace)(\\s+)(" + m_namespace_name + ")"
+ "(adstl|phoenix|rapidxml)?(\\s*\\{)"
             );
          regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), namespace_alias,
- "namespace " + m_namespace_name + "{} namespace boost = " + m_namespace_name + "; namespace " + m_namespace_name + "{");
+ "$1 $3$4 {} $1 (?4$4:boost) = $3$4; $1$2$3$4$5", boost::regex_constants::format_all);
          std::swap(v1, v2);
          v2.clear();
       }

Modified: branches/release/tools/bcp/fileview.cpp
==============================================================================
--- branches/release/tools/bcp/fileview.cpp (original)
+++ branches/release/tools/bcp/fileview.cpp 2012-07-16 04:21:20 EDT (Mon, 16 Jul 2012)
@@ -38,7 +38,7 @@
 {
 }
 
-fileview::fileview(const fileview& that)
+fileview::fileview(const fileview& )
 {
 }
 

Modified: branches/release/tools/bcp/licence_info.cpp
==============================================================================
--- branches/release/tools/bcp/licence_info.cpp (original)
+++ branches/release/tools/bcp/licence_info.cpp 2012-07-16 04:21:20 EDT (Mon, 16 Jul 2012)
@@ -705,7 +705,7 @@
        )
       ,
    };
- return std::pair<const license_info*, int>(licenses, sizeof(licenses)/sizeof(licenses[0]));
+ return std::pair<const license_info*, int>(licenses, static_cast<int>(sizeof(licenses)/sizeof(licenses[0])));
 }
 
 std::string format_authors_name(const std::string& name)

Modified: branches/release/tools/bcp/main.cpp
==============================================================================
--- branches/release/tools/bcp/main.cpp (original)
+++ branches/release/tools/bcp/main.cpp 2012-07-16 04:21:20 EDT (Mon, 16 Jul 2012)
@@ -47,7 +47,7 @@
       "output-path: the path to which files will be copied\n";
 }
 
-bool filesystem_name_check( const std::string & name )
+bool filesystem_name_check( const std::string & )
 {
    return true;
 }

Modified: branches/release/tools/bcp/output_licence_info.cpp
==============================================================================
--- branches/release/tools/bcp/output_licence_info.cpp (original)
+++ branches/release/tools/bcp/output_licence_info.cpp 2012-07-16 04:21:20 EDT (Mon, 16 Jul 2012)
@@ -28,6 +28,8 @@
    const fs::path& file;
    split_path(const fs::path& r, const fs::path& f)
       : root(r), file(f){}
+private:
+ split_path& operator=(const split_path&);
 };
 
 std::ostream& operator << (std::ostream& os, const split_path& p)

Modified: branches/release/tools/bcp/scan_cvs_path.cpp
==============================================================================
--- branches/release/tools/bcp/scan_cvs_path.cpp (original)
+++ branches/release/tools/bcp/scan_cvs_path.cpp 2012-07-16 04:21:20 EDT (Mon, 16 Jul 2012)
@@ -31,7 +31,7 @@
    static const boost::regex dir_expression("^(?:A\\s+)?D/([^/\\n]+)/");
    static const int file_subs[] = {1,2,};
 
- for(int entry = 0; entry < sizeof(file_list)/sizeof(file_list[0]); ++entry)
+ for(std::size_t entry = 0; entry < sizeof(file_list)/sizeof(file_list[0]); ++entry)
    {
       fs::path entries(m_boost_path / p / file_list[entry]);
       if(fs::exists(entries))

Modified: branches/release/tools/bcp/scan_licence.cpp
==============================================================================
--- branches/release/tools/bcp/scan_licence.cpp (original)
+++ branches/release/tools/bcp/scan_licence.cpp 2012-07-16 04:21:20 EDT (Mon, 16 Jul 2012)
@@ -27,8 +27,8 @@
 {
   char last_char = '\0';
   while (start != v.begin() && context_lines >= 0) {
- if (*start == '\r' || *start == '\n'
- && (last_char == *start || (last_char != '\r' && last_char != '\n')))
+ if ((*start == '\r') || (*start == '\n')
+ && ((last_char == *start) || ((last_char != '\r') && (last_char != '\n'))))
         --context_lines;
 
     last_char = *start;


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