From 182d743d15810d2a8393ed7fa5d565cf3a394694 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 3 Oct 2017 23:39:34 +0300 Subject: Adapt to modularization of libbutl --- build2/b.cxx | 4 ++-- build2/cc/compile.hxx | 2 +- build2/cc/guess.cxx | 2 +- build2/cc/lexer.hxx | 4 ++-- build2/cc/link.cxx | 4 ++-- build2/config/module.hxx | 2 +- build2/context.cxx | 2 +- build2/depdb.cxx | 2 +- build2/diagnostics.cxx | 2 +- build2/diagnostics.hxx | 2 +- build2/dist/operation.cxx | 2 +- build2/filesystem.hxx | 6 ++--- build2/functions-filesystem.cxx | 2 +- build2/functions-regex.cxx | 2 +- build2/install/rule.cxx | 2 +- build2/lexer.hxx | 2 +- build2/operation.hxx | 2 +- build2/parser.cxx | 2 +- build2/rule-map.hxx | 2 +- build2/scope.hxx | 2 +- build2/search.cxx | 2 +- build2/target-key.hxx | 2 +- build2/target.cxx | 2 +- build2/target.hxx | 2 +- build2/target.txx | 2 +- build2/test/script/builtin.cxx | 8 +++---- build2/test/script/runner.cxx | 4 ++-- build2/types.hxx | 44 ++++++++++++++++++------------------- build2/utility.hxx | 4 ++-- build2/variable.hxx | 4 ++-- build2/version/init.cxx | 4 ++-- old-tests/depdb/driver.cxx | 2 +- tests/test/script/runner/driver.cxx | 8 +++---- 33 files changed, 69 insertions(+), 69 deletions(-) diff --git a/build2/b.cxx b/build2/b.cxx index 746d5fd..94c6279 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -15,8 +15,8 @@ #include #include // cout -#include -#include // stderr_fd(), fdterm() +#include +#include // stderr_fd(), fdterm() #include #include diff --git a/build2/cc/compile.hxx b/build2/cc/compile.hxx index e744f53..9d85763 100644 --- a/build2/cc/compile.hxx +++ b/build2/cc/compile.hxx @@ -5,7 +5,7 @@ #ifndef BUILD2_CC_COMPILE_HXX #define BUILD2_CC_COMPILE_HXX -#include +#include #include #include diff --git a/build2/cc/guess.cxx b/build2/cc/guess.cxx index 0e157a5..da5be97 100644 --- a/build2/cc/guess.cxx +++ b/build2/cc/guess.cxx @@ -959,7 +959,7 @@ namespace build2 // Now we need to map x86, x64, and ARM to the target triplets. The // problem is, there aren't any established ones so we got to invent // them ourselves. Based on the discussion in - // , we need something in the + // , we need something in the // CPU-VENDOR-OS-ABI form. // // The CPU part is fairly straightforward with x86 mapped to 'i386' (or diff --git a/build2/cc/lexer.hxx b/build2/cc/lexer.hxx index 9dab12b..2adf48c 100644 --- a/build2/cc/lexer.hxx +++ b/build2/cc/lexer.hxx @@ -5,8 +5,8 @@ #ifndef BUILD2_CC_LEXER_HXX #define BUILD2_CC_LEXER_HXX -#include -#include +#include +#include #include #include diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index 2f2ff76..4ab2873 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -7,8 +7,8 @@ #include #include // exit() -#include -#include // file_exists() +#include +#include // file_exists() #include #include diff --git a/build2/config/module.hxx b/build2/config/module.hxx index 1f48181..fa29b62 100644 --- a/build2/config/module.hxx +++ b/build2/config/module.hxx @@ -7,7 +7,7 @@ #include -#include +#include #include #include diff --git a/build2/context.cxx b/build2/context.cxx index f7f2448..32af1c2 100644 --- a/build2/context.cxx +++ b/build2/context.cxx @@ -247,7 +247,7 @@ namespace build2 operation_table.insert ("uninstall"); // Create global scope. Note that the empty path is a prefix for any other - // path. See the comment in for details. + // path. See the comment in for details. // auto make_global_scope = [&sm] () -> scope& { diff --git a/build2/depdb.cxx b/build2/depdb.cxx index c74536c..ee96efa 100644 --- a/build2/depdb.cxx +++ b/build2/depdb.cxx @@ -4,7 +4,7 @@ #include -#include // file_mtime() +#include // file_mtime() using namespace std; using namespace butl; diff --git a/build2/diagnostics.cxx b/build2/diagnostics.cxx index 7b5663a..b1f2796 100644 --- a/build2/diagnostics.cxx +++ b/build2/diagnostics.cxx @@ -6,7 +6,7 @@ #include // strchr() -#include +#include using namespace std; diff --git a/build2/diagnostics.hxx b/build2/diagnostics.hxx index 40ddd0c..dc96352 100644 --- a/build2/diagnostics.hxx +++ b/build2/diagnostics.hxx @@ -5,7 +5,7 @@ #ifndef BUILD2_DIAGNOSTICS_HXX #define BUILD2_DIAGNOSTICS_HXX -#include +#include #include #include diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx index 01339b4..f42217e 100644 --- a/build2/dist/operation.cxx +++ b/build2/dist/operation.cxx @@ -4,7 +4,7 @@ #include -#include // path_match() +#include // path_match() #include #include diff --git a/build2/filesystem.hxx b/build2/filesystem.hxx index 4ef4caf..8d1a7f0 100644 --- a/build2/filesystem.hxx +++ b/build2/filesystem.hxx @@ -5,12 +5,12 @@ #ifndef BUILD2_FILESYSTEM_HXX #define BUILD2_FILESYSTEM_HXX -#include +#include #include #include -// Higher-level filesystem utilities built on top of . +// Higher-level filesystem utilities built on top of . // namespace build2 { @@ -19,7 +19,7 @@ namespace build2 // The dual interface wrapper for the {mk,rm}{file,dir}() functions // below that allows you to use it as a true/false return or a more - // detailed enum from + // detailed enum from // template struct fs_status diff --git a/build2/functions-filesystem.cxx b/build2/functions-filesystem.cxx index d9e74b7..84b414e 100644 --- a/build2/functions-filesystem.cxx +++ b/build2/functions-filesystem.cxx @@ -2,7 +2,7 @@ // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file -#include +#include #include #include diff --git a/build2/functions-regex.cxx b/build2/functions-regex.cxx index 3185b85..da5cad9 100644 --- a/build2/functions-regex.cxx +++ b/build2/functions-regex.cxx @@ -4,7 +4,7 @@ #include -#include +#include #include #include diff --git a/build2/install/rule.cxx b/build2/install/rule.cxx index 928384a..f764363 100644 --- a/build2/install/rule.cxx +++ b/build2/install/rule.cxx @@ -4,7 +4,7 @@ #include -#include // dir_exists(), file_exists() +#include // dir_exists(), file_exists() #include #include diff --git a/build2/lexer.hxx b/build2/lexer.hxx index e91e730..d88d5ba 100644 --- a/build2/lexer.hxx +++ b/build2/lexer.hxx @@ -7,7 +7,7 @@ #include -#include +#include #include #include diff --git a/build2/operation.hxx b/build2/operation.hxx index 06a6781..24340dd 100644 --- a/build2/operation.hxx +++ b/build2/operation.hxx @@ -5,7 +5,7 @@ #ifndef BUILD2_OPERATION_HXX #define BUILD2_OPERATION_HXX -#include +#include #include #include diff --git a/build2/parser.cxx b/build2/parser.cxx index 5188b39..fb47ff6 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -6,7 +6,7 @@ #include // cout -#include // path_search(), path_match() +#include // path_search(), path_match() #include #include diff --git a/build2/rule-map.hxx b/build2/rule-map.hxx index 4afe3d4..f63d4b9 100644 --- a/build2/rule-map.hxx +++ b/build2/rule-map.hxx @@ -7,7 +7,7 @@ #include -#include +#include #include #include diff --git a/build2/scope.hxx b/build2/scope.hxx index 028dbce..ad1b295 100644 --- a/build2/scope.hxx +++ b/build2/scope.hxx @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/build2/search.cxx b/build2/search.cxx index 66f13a9..892141a 100644 --- a/build2/search.cxx +++ b/build2/search.cxx @@ -4,7 +4,7 @@ #include -#include // file_mtime() +#include // file_mtime() #include #include diff --git a/build2/target-key.hxx b/build2/target-key.hxx index 0c93580..b7335eb 100644 --- a/build2/target-key.hxx +++ b/build2/target-key.hxx @@ -7,7 +7,7 @@ #include -#include // compare_c_string +#include // compare_c_string #include #include diff --git a/build2/target.cxx b/build2/target.cxx index 7ff995d..d3af0c5 100644 --- a/build2/target.cxx +++ b/build2/target.cxx @@ -4,7 +4,7 @@ #include -#include // file_mtime() +#include // file_mtime() #include #include diff --git a/build2/target.hxx b/build2/target.hxx index 62e7779..ddff33b 100644 --- a/build2/target.hxx +++ b/build2/target.hxx @@ -9,7 +9,7 @@ #include // aligned_storage #include -#include // map_iterator_adapter +#include // map_iterator_adapter #include #include diff --git a/build2/target.txx b/build2/target.txx index d2afd59..a91166c 100644 --- a/build2/target.txx +++ b/build2/target.txx @@ -2,7 +2,7 @@ // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file -#include // dir_iterator +#include // dir_iterator #include #include diff --git a/build2/test/script/builtin.cxx b/build2/test/script/builtin.cxx index ca47ad2..80954a1 100644 --- a/build2/test/script/builtin.cxx +++ b/build2/test/script/builtin.cxx @@ -8,10 +8,10 @@ #include #include -#include -#include // use default operator<< implementation -#include // fdopen_mode, fdstream_mode -#include // mkdir_status +#include +#include // use default operator<< implementation +#include // fdopen_mode, fdstream_mode +#include // mkdir_status #include diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx index a4ead93..1c1a15c 100644 --- a/build2/test/script/runner.cxx +++ b/build2/test/script/runner.cxx @@ -7,8 +7,8 @@ #include #include // streamsize -#include -#include // fdopen_mode, fdnull(), fddup() +#include +#include // fdopen_mode, fdnull(), fddup() #include #include diff --git a/build2/types.hxx b/build2/types.hxx index 374a3eb..f65d054 100644 --- a/build2/types.hxx +++ b/build2/types.hxx @@ -33,17 +33,17 @@ #include // logic_error, invalid_argument, runtime_error #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace build2 { @@ -74,8 +74,8 @@ namespace build2 using std::array; using std::vector; - using butl::vector_view; // - using butl::small_vector; // + using butl::vector_view; // + using butl::small_vector; // using strings = vector; using cstrings = vector; @@ -143,16 +143,16 @@ namespace build2 using std::system_error; using io_error = std::ios_base::failure; - // + // // using butl::optional; using butl::nullopt; - // + // // using butl::const_ptr; - // + // // using butl::path; using butl::dir_path; @@ -182,7 +182,7 @@ namespace build2 using paths = std::vector; using dir_paths = std::vector; - // + // // using butl::system_clock; using butl::timestamp; @@ -192,12 +192,12 @@ namespace build2 using butl::timestamp_nonexistent; using butl::operator<<; - // + // // using butl::sha256; - // - // + // + // // using butl::process; using butl::process_path; @@ -207,11 +207,11 @@ namespace build2 using butl::ifdstream; using butl::ofdstream; - // + // // using butl::target_triplet; - // + // // using butl::standard_version; using butl::standard_version_constraint; diff --git a/build2/utility.hxx b/build2/utility.hxx index 57d5f71..389d6cc 100644 --- a/build2/utility.hxx +++ b/build2/utility.hxx @@ -16,7 +16,7 @@ #include -#include // combine_hash(), reverse_iterate(), case*(), +#include // combine_hash(), reverse_iterate(), case*(), // etc #include @@ -53,7 +53,7 @@ namespace build2 using std::stoul; using std::stoull; - // + // // using butl::reverse_iterate; using butl::compare_c_string; diff --git a/build2/variable.hxx b/build2/variable.hxx index 5ef67fd..9f7a82c 100644 --- a/build2/variable.hxx +++ b/build2/variable.hxx @@ -10,8 +10,8 @@ #include // aligned_storage #include -#include -#include // map_key +#include +#include // map_key #include #include diff --git a/build2/version/init.cxx b/build2/version/init.cxx index c6acf88..7d08642 100644 --- a/build2/version/init.cxx +++ b/build2/version/init.cxx @@ -4,8 +4,8 @@ #include -#include -#include +#include +#include #include #include diff --git a/old-tests/depdb/driver.cxx b/old-tests/depdb/driver.cxx index 2439b60..b2b74a8 100644 --- a/old-tests/depdb/driver.cxx +++ b/old-tests/depdb/driver.cxx @@ -4,7 +4,7 @@ #include -#include +#include #include #include diff --git a/tests/test/script/runner/driver.cxx b/tests/test/script/runner/driver.cxx index 43bb66b..c22e7e7 100644 --- a/tests/test/script/runner/driver.cxx +++ b/tests/test/script/runner/driver.cxx @@ -11,10 +11,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include using namespace std; using namespace butl; -- cgit v1.1