From 41273da120ef8e4a2bed7576de0532264b042ee1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 28 Sep 2021 20:36:50 +0300 Subject: Adapt to libbutl headers extension change from .mxx to .hxx --- build2/b.cxx | 8 ++--- libbuild2/adhoc-rule-cxx.cxx | 2 +- libbuild2/adhoc-rule-regex-pattern.cxx | 2 +- libbuild2/build/script/parser.cxx | 2 +- libbuild2/build/script/runner.cxx | 2 +- libbuild2/build/script/script.cxx | 2 +- libbuild2/cc/guess.cxx | 2 +- libbuild2/cc/lexer.hxx | 4 +-- libbuild2/cc/link-rule.cxx | 2 +- libbuild2/config/module.hxx | 2 +- libbuild2/context.cxx | 2 +- libbuild2/diagnostics.cxx | 2 +- libbuild2/diagnostics.hxx | 2 +- libbuild2/dist/operation.cxx | 4 +-- libbuild2/filesystem.hxx | 6 ++-- libbuild2/functions-filesystem.cxx | 2 +- libbuild2/functions-path.cxx | 2 +- libbuild2/functions-process.cxx | 4 +-- libbuild2/functions-regex.cxx | 10 +++--- libbuild2/install/init.cxx | 2 +- libbuild2/install/rule.cxx | 2 +- libbuild2/lexer.hxx | 6 ++-- libbuild2/operation.hxx | 2 +- libbuild2/parser.cxx | 2 +- libbuild2/rule-map.hxx | 2 +- libbuild2/script/run.cxx | 8 ++--- libbuild2/target.hxx | 2 +- libbuild2/target.txx | 2 +- libbuild2/types.hxx | 60 +++++++++++++++++----------------- libbuild2/utility.hxx | 12 +++---- libbuild2/variable.cxx | 2 +- libbuild2/variable.hxx | 4 +-- libbuild2/version/init.cxx | 2 +- libbuild2/version/snapshot-git.cxx | 2 +- libbuild2/version/utility.cxx | 4 +-- old-tests/depdb/driver.cxx | 2 +- tests/test/script/runner/driver.cxx | 8 ++--- 37 files changed, 93 insertions(+), 93 deletions(-) diff --git a/build2/b.cxx b/build2/b.cxx index f0f5a7a..10d4cc5 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -18,10 +18,10 @@ #include // cout #include // terminate(), set_terminate(), terminate_handler -#include -#include // stderr_fd(), fdterm() -#include // backtrace() -#include +#include +#include // stderr_fd(), fdterm() +#include // backtrace() +#include #include #include diff --git a/libbuild2/adhoc-rule-cxx.cxx b/libbuild2/adhoc-rule-cxx.cxx index 83029ca..df6467f 100644 --- a/libbuild2/adhoc-rule-cxx.cxx +++ b/libbuild2/adhoc-rule-cxx.cxx @@ -3,7 +3,7 @@ #include -#include // file_time() +#include // file_time() #include #include diff --git a/libbuild2/adhoc-rule-regex-pattern.cxx b/libbuild2/adhoc-rule-regex-pattern.cxx index 9550527..89a4766 100644 --- a/libbuild2/adhoc-rule-regex-pattern.cxx +++ b/libbuild2/adhoc-rule-regex-pattern.cxx @@ -3,7 +3,7 @@ #include -#include +#include #include diff --git a/libbuild2/build/script/parser.cxx b/libbuild2/build/script/parser.cxx index 43ec0d5..e55eca1 100644 --- a/libbuild2/build/script/parser.cxx +++ b/libbuild2/build/script/parser.cxx @@ -3,7 +3,7 @@ #include -#include +#include #include #include diff --git a/libbuild2/build/script/runner.cxx b/libbuild2/build/script/runner.cxx index 2a59505..51139d4 100644 --- a/libbuild2/build/script/runner.cxx +++ b/libbuild2/build/script/runner.cxx @@ -3,7 +3,7 @@ #include -#include // try_rmdir() +#include // try_rmdir() #include #include diff --git a/libbuild2/build/script/script.cxx b/libbuild2/build/script/script.cxx index 14dd9e1..f4f8da8 100644 --- a/libbuild2/build/script/script.cxx +++ b/libbuild2/build/script/script.cxx @@ -3,7 +3,7 @@ #include -#include +#include #include diff --git a/libbuild2/cc/guess.cxx b/libbuild2/cc/guess.cxx index 298d081..69e8219 100644 --- a/libbuild2/cc/guess.cxx +++ b/libbuild2/cc/guess.cxx @@ -1687,7 +1687,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' diff --git a/libbuild2/cc/lexer.hxx b/libbuild2/cc/lexer.hxx index dc392c6..81e0d97 100644 --- a/libbuild2/cc/lexer.hxx +++ b/libbuild2/cc/lexer.hxx @@ -4,8 +4,8 @@ #ifndef LIBBUILD2_CC_LEXER_HXX #define LIBBUILD2_CC_LEXER_HXX -#include -#include +#include +#include #include #include diff --git a/libbuild2/cc/link-rule.cxx b/libbuild2/cc/link-rule.cxx index d8f22d4..d2ffb04 100644 --- a/libbuild2/cc/link-rule.cxx +++ b/libbuild2/cc/link-rule.cxx @@ -6,7 +6,7 @@ #include // exit() #include // strlen() -#include // file_exists(), path_search() +#include // file_exists(), path_search() #include #include diff --git a/libbuild2/config/module.hxx b/libbuild2/config/module.hxx index 543c486..82b79be 100644 --- a/libbuild2/config/module.hxx +++ b/libbuild2/config/module.hxx @@ -6,7 +6,7 @@ #include // strncmp() -#include +#include #include #include diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx index 924c370..36b70b8 100644 --- a/libbuild2/context.cxx +++ b/libbuild2/context.cxx @@ -29,7 +29,7 @@ using namespace butl; namespace build2 { // 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. // static inline scope& create_global_scope (scope_map& m) diff --git a/libbuild2/diagnostics.cxx b/libbuild2/diagnostics.cxx index ee4651d..4d2d7ce 100644 --- a/libbuild2/diagnostics.cxx +++ b/libbuild2/diagnostics.cxx @@ -5,7 +5,7 @@ #include // strchr() -#include +#include #include #include diff --git a/libbuild2/diagnostics.hxx b/libbuild2/diagnostics.hxx index 1290634..f3d9db4 100644 --- a/libbuild2/diagnostics.hxx +++ b/libbuild2/diagnostics.hxx @@ -4,7 +4,7 @@ #ifndef LIBBUILD2_DIAGNOSTICS_HXX #define LIBBUILD2_DIAGNOSTICS_HXX -#include +#include #include #include diff --git a/libbuild2/dist/operation.cxx b/libbuild2/dist/operation.cxx index edb8162..7a85119 100644 --- a/libbuild2/dist/operation.cxx +++ b/libbuild2/dist/operation.cxx @@ -3,8 +3,8 @@ #include -#include -#include +#include +#include #include #include diff --git a/libbuild2/filesystem.hxx b/libbuild2/filesystem.hxx index 26544bc..ee7ba9a 100644 --- a/libbuild2/filesystem.hxx +++ b/libbuild2/filesystem.hxx @@ -4,7 +4,7 @@ #ifndef LIBBUILD2_FILESYSTEM_HXX #define LIBBUILD2_FILESYSTEM_HXX -#include +#include #include #include @@ -13,7 +13,7 @@ #include -// Higher-level filesystem utilities built on top of . +// Higher-level filesystem utilities built on top of . // // Compared to the libbutl's versions, these handle errors and issue // diagnostics. Some of them also print the corresponding command line @@ -27,7 +27,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/libbuild2/functions-filesystem.cxx b/libbuild2/functions-filesystem.cxx index 696b1cf..ef7bfc5 100644 --- a/libbuild2/functions-filesystem.cxx +++ b/libbuild2/functions-filesystem.cxx @@ -1,7 +1,7 @@ // file : libbuild2/functions-filesystem.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include +#include #include #include diff --git a/libbuild2/functions-path.cxx b/libbuild2/functions-path.cxx index b0acc63..b7c9a8d 100644 --- a/libbuild2/functions-path.cxx +++ b/libbuild2/functions-path.cxx @@ -1,7 +1,7 @@ // file : libbuild2/functions-path.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include +#include #include #include diff --git a/libbuild2/functions-process.cxx b/libbuild2/functions-process.cxx index c18d949..c4e5c24 100644 --- a/libbuild2/functions-process.cxx +++ b/libbuild2/functions-process.cxx @@ -1,8 +1,8 @@ // file : libbuild2/functions-process.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include -#include +#include +#include #include #include diff --git a/libbuild2/functions-regex.cxx b/libbuild2/functions-regex.cxx index 46d71ba..2f0d122 100644 --- a/libbuild2/functions-regex.cxx +++ b/libbuild2/functions-regex.cxx @@ -3,7 +3,7 @@ #include -#include +#include #include #include @@ -612,7 +612,7 @@ namespace build2 // is always untyped, regardless of the argument type. // // Substitution escape sequences are extended with a subset of Perl - // sequences (see libbutl/regex.mxx for details). + // sequences (see libbutl/regex.hxx for details). // // The following flags are supported: // @@ -687,7 +687,7 @@ namespace build2 // value to string prior to matching. // // Substitution escape sequences are extended with a subset of Perl - // sequences (see libbutl/regex.mxx for details). + // sequences (see libbutl/regex.hxx for details). // // The following flags are supported: // @@ -716,7 +716,7 @@ namespace build2 // elements optionally separated with a delimiter. // // Substitution escape sequences are extended with a subset of Perl - // sequences (see libbutl/regex.mxx for details). + // sequences (see libbutl/regex.hxx for details). // // The following flags are supported: // @@ -761,7 +761,7 @@ namespace build2 // of transformed elements, omitting the empty ones. // // Substitution escape sequences are extended with a subset of Perl - // sequences (see libbutl/regex.mxx for details). + // sequences (see libbutl/regex.hxx for details). // // The following flags are supported: // diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx index 6f83015..50c0a05 100644 --- a/libbuild2/install/init.cxx +++ b/libbuild2/install/init.cxx @@ -3,7 +3,7 @@ #include -#include // command_substitute() +#include // command_substitute() #include #include diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx index 5092d42..d678940 100644 --- a/libbuild2/install/rule.cxx +++ b/libbuild2/install/rule.cxx @@ -4,7 +4,7 @@ #include #include // resolve_dir() declaration -#include // dir_exists(), file_exists() +#include // dir_exists(), file_exists() #include #include diff --git a/libbuild2/lexer.hxx b/libbuild2/lexer.hxx index cc42219..148666e 100644 --- a/libbuild2/lexer.hxx +++ b/libbuild2/lexer.hxx @@ -6,9 +6,9 @@ #include -#include -#include -#include +#include +#include +#include #include #include diff --git a/libbuild2/operation.hxx b/libbuild2/operation.hxx index e115ac0..d80a01c 100644 --- a/libbuild2/operation.hxx +++ b/libbuild2/operation.hxx @@ -4,7 +4,7 @@ #ifndef LIBBUILD2_OPERATION_HXX #define LIBBUILD2_OPERATION_HXX -#include +#include #include #include diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index a0d1d7a..75c7e2c 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -6,7 +6,7 @@ #include #include // cout -#include // path_search +#include // path_search #include #include diff --git a/libbuild2/rule-map.hxx b/libbuild2/rule-map.hxx index c4cdb9f..20895f3 100644 --- a/libbuild2/rule-map.hxx +++ b/libbuild2/rule-map.hxx @@ -4,7 +4,7 @@ #ifndef LIBBUILD2_RULE_MAP_HXX #define LIBBUILD2_RULE_MAP_HXX -#include +#include #include #include diff --git a/libbuild2/script/run.cxx b/libbuild2/script/run.cxx index f122ae5..91fc9ac 100644 --- a/libbuild2/script/run.cxx +++ b/libbuild2/script/run.cxx @@ -11,10 +11,10 @@ #include // streamsize -#include -#include -#include // fdopen_mode, fddup() -#include // path_search() +#include +#include +#include // fdopen_mode, fddup() +#include // path_search() #include #include diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index a5940ab..5f0165e 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -8,7 +8,7 @@ #include // aligned_storage #include -#include // map_iterator_adapter +#include // map_iterator_adapter #include #include diff --git a/libbuild2/target.txx b/libbuild2/target.txx index c34adde..5b48ad1 100644 --- a/libbuild2/target.txx +++ b/libbuild2/target.txx @@ -1,7 +1,7 @@ // file : libbuild2/target.txx -*- C++ -*- // license : MIT; see accompanying LICENSE file -#include // dir_iterator +#include // dir_iterator #include #include diff --git a/libbuild2/types.hxx b/libbuild2/types.hxx index e3cacce..99cc0dc 100644 --- a/libbuild2/types.hxx +++ b/libbuild2/types.hxx @@ -44,21 +44,21 @@ #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 +#include +#include +#include +#include +#include +#include +#include +#include #include @@ -102,8 +102,8 @@ namespace build2 using std::multiset; using std::array; using std::vector; - using butl::vector_view; // - using butl::small_vector; // + using butl::vector_view; // + using butl::small_vector; // using std::istream; using std::ostream; @@ -112,7 +112,7 @@ namespace build2 // Regex. // - // Note that includes an ostream insertion operator for + // Note that includes an ostream insertion operator for // regex_error which prints cleaned up message, if any. // using std::regex; @@ -266,17 +266,17 @@ 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 path_traits = path::traits_type; @@ -315,7 +315,7 @@ namespace build2 using paths = std::vector; using dir_paths = std::vector; - // + // // using butl::system_clock; using butl::timestamp; @@ -327,11 +327,11 @@ namespace build2 using butl::to_string; using butl::operator<<; - // + // // using butl::sha256; - // + // using butl::process; using butl::process_env; using butl::process_path; @@ -379,7 +379,7 @@ namespace build2 process_path_ex () = default; }; - // + // // using butl::auto_fd; using butl::fdpipe; @@ -390,21 +390,21 @@ namespace build2 using butl::fdselect_state; using butl::fdselect_set; - // + // // using butl::target_triplet; - // + // // using butl::semantic_version; using butl::parse_semantic_version; - // + // // using butl::standard_version; using butl::standard_version_constraint; - // + // // using butl::project_name; diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index c7ee2f4..f9f1daa 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -15,9 +15,9 @@ #include -#include // combine_hash(), reverse_iterate(), etc -#include -#include +#include // combine_hash(), reverse_iterate(), etc +#include +#include #include #include @@ -54,7 +54,7 @@ namespace build2 using std::stoul; using std::stoull; - // + // // using butl::reverse_iterate; using butl::compare_c_string; @@ -88,12 +88,12 @@ namespace build2 using butl::eof; - // + // // using butl::open_file_or_stdin; using butl::open_file_or_stdout; - // + // // using butl::path_pattern; diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx index 0cf6528..6f2812c 100644 --- a/libbuild2/variable.cxx +++ b/libbuild2/variable.cxx @@ -5,7 +5,7 @@ #include // memcmp() -#include +#include #include #include diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx index df0cb77..54d573b 100644 --- a/libbuild2/variable.hxx +++ b/libbuild2/variable.hxx @@ -7,8 +7,8 @@ #include // aligned_storage #include -#include -#include // map_key +#include +#include // map_key #include #include diff --git a/libbuild2/version/init.cxx b/libbuild2/version/init.cxx index ced9c68..05d5fe0 100644 --- a/libbuild2/version/init.cxx +++ b/libbuild2/version/init.cxx @@ -3,7 +3,7 @@ #include -#include +#include #include #include diff --git a/libbuild2/version/snapshot-git.cxx b/libbuild2/version/snapshot-git.cxx index e766bc9..2ae3f5b 100644 --- a/libbuild2/version/snapshot-git.cxx +++ b/libbuild2/version/snapshot-git.cxx @@ -3,7 +3,7 @@ #include // time_t -#include +#include #include diff --git a/libbuild2/version/utility.cxx b/libbuild2/version/utility.cxx index 5e2375d..9fec7ec 100644 --- a/libbuild2/version/utility.cxx +++ b/libbuild2/version/utility.cxx @@ -3,8 +3,8 @@ #include -#include -#include +#include +#include #include #include // path_perms() diff --git a/old-tests/depdb/driver.cxx b/old-tests/depdb/driver.cxx index 47f99af..0f91801 100644 --- a/old-tests/depdb/driver.cxx +++ b/old-tests/depdb/driver.cxx @@ -3,7 +3,7 @@ #include -#include +#include #include #include diff --git a/tests/test/script/runner/driver.cxx b/tests/test/script/runner/driver.cxx index d0e7601..9c05e27 100644 --- a/tests/test/script/runner/driver.cxx +++ b/tests/test/script/runner/driver.cxx @@ -16,10 +16,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #undef NDEBUG #include -- cgit v1.1