From ce23db59c6399199fa55b4b7dc8880522e2f1bca Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 30 Sep 2024 12:16:43 +0200 Subject: Enable readability-redundant-member-init check. --- src/buildtool/common/cli.hpp | 68 ++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'src/buildtool/common/cli.hpp') diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index 520b8ff3..0571acb8 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -43,36 +43,36 @@ inline constexpr auto kMaxOpCacheExponent = std::uint8_t{63}; /// \brief Arguments common to all commands. struct CommonArguments { - std::optional workspace_root{}; - std::optional repository_config{}; - std::optional main{}; + std::optional workspace_root; + std::optional repository_config; + std::optional main; std::size_t jobs{std::max(1U, std::thread::hardware_concurrency())}; }; struct LogArguments { - std::vector log_files{}; + std::vector log_files; LogLevel log_limit{kDefaultLogLevel}; - std::optional restrict_stderr_log_limit{}; + std::optional restrict_stderr_log_limit; bool plain_log{false}; bool log_append{false}; }; /// \brief Arguments required for analysing targets. struct AnalysisArguments { - std::optional expression_log_limit{}; - std::vector defines{}; - std::filesystem::path config_file{}; - std::optional target{}; - std::optional request_action_input{}; - std::optional target_file_name{}; - std::optional rule_file_name{}; - std::optional expression_file_name{}; - std::optional target_root{}; - std::optional rule_root{}; - std::optional expression_root{}; - std::optional graph_file{}; - std::optional artifacts_to_build_file{}; - std::optional serve_errors_file{}; + std::optional expression_log_limit; + std::vector defines; + std::filesystem::path config_file; + std::optional target; + std::optional request_action_input; + std::optional target_file_name; + std::optional rule_file_name; + std::optional expression_file_name; + std::optional target_root; + std::optional rule_root; + std::optional expression_root; + std::optional graph_file; + std::optional artifacts_to_build_file; + std::optional serve_errors_file; }; /// \brief Arguments required for describing targets/rules. @@ -98,10 +98,10 @@ struct DiagnosticArguments { /// \brief Arguments required for specifying build endpoint. struct EndpointArguments { - std::optional local_root{}; + std::optional local_root; std::optional remote_execution_address; std::vector platform_properties; - std::optional remote_execution_dispatch_file{}; + std::optional remote_execution_dispatch_file; }; /// \brief Arguments required for building. @@ -122,21 +122,21 @@ struct TCArguments { /// \brief Arguments required for staging. struct StageArguments { - std::filesystem::path output_dir{}; + std::filesystem::path output_dir; bool remember{false}; }; /// \brief Arguments required for rebuilding. struct RebuildArguments { - std::optional cache_endpoint{}; - std::optional dump_flaky{}; + std::optional cache_endpoint; + std::optional dump_flaky; }; /// \brief Arguments for fetching artifacts from CAS. struct FetchArguments { - std::string object_id{}; - std::optional output_path{}; - std::optional sub_path{}; + std::string object_id; + std::optional output_path; + std::optional sub_path; bool remember{false}; bool raw_tree{}; bool archive{}; @@ -144,9 +144,9 @@ struct FetchArguments { /// \brief Arguments required for running from graph file. struct GraphArguments { - nlohmann::json artifacts{}; - std::filesystem::path graph_file{}; - std::optional git_cas{}; + nlohmann::json artifacts; + std::filesystem::path graph_file; + std::optional git_cas; }; // Arguments for authentication methods. @@ -177,10 +177,10 @@ struct ServiceArguments { }; struct ServeArguments { - std::filesystem::path config{}; - std::optional remote_serve_address{}; + std::filesystem::path config; + std::optional remote_serve_address; // repositories populated from just-serve config file - std::vector repositories{}; + std::vector repositories; }; struct GcArguments { @@ -188,7 +188,7 @@ struct GcArguments { }; struct ToAddArguments { - std::filesystem::path location{}; + std::filesystem::path location; bool follow_symlinks{}; }; -- cgit v1.2.3