From 4f051b54edf7ed0389e6a9f9e20e65dc5e2ecbc0 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 15 Jan 2024 15:24:02 -0300 Subject: [PATCH] Fix clang format --- dnf5-plugins/config-manager_plugin/addrepo.cpp | 3 ++- dnf5-plugins/config-manager_plugin/setopt.cpp | 6 ++++-- dnf5-plugins/config-manager_plugin/unsetopt.cpp | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dnf5-plugins/config-manager_plugin/addrepo.cpp b/dnf5-plugins/config-manager_plugin/addrepo.cpp index 30d685ae9..80c129c4c 100644 --- a/dnf5-plugins/config-manager_plugin/addrepo.cpp +++ b/dnf5-plugins/config-manager_plugin/addrepo.cpp @@ -181,7 +181,8 @@ void ConfigManagerAddRepoCommand::set_argument_parser() { const char * value) { auto val = strchr(value + 1, '='); if (!val) { - throw cli::ArgumentParserError(M_("{}: Badly formatted argument value \"{}\""), std::string{"set"}, std::string{value}); + throw cli::ArgumentParserError( + M_("{}: Badly formatted argument value \"{}\""), std::string{"set"}, std::string{value}); } std::string key{value, val}; std::string key_value{val + 1}; diff --git a/dnf5-plugins/config-manager_plugin/setopt.cpp b/dnf5-plugins/config-manager_plugin/setopt.cpp index 8b6fa1ef5..7a117c38a 100644 --- a/dnf5-plugins/config-manager_plugin/setopt.cpp +++ b/dnf5-plugins/config-manager_plugin/setopt.cpp @@ -79,7 +79,8 @@ void ConfigManagerSetOptCommand::set_argument_parser() { auto value = argv[i]; auto val = strchr(value + 1, '='); if (!val) { - throw cli::ArgumentParserError(M_("{}: Badly formatted argument value \"{}\""), std::string{"optval"}, std::string{value}); + throw cli::ArgumentParserError( + M_("{}: Badly formatted argument value \"{}\""), std::string{"optval"}, std::string{value}); } std::string key{value, val}; std::string key_value{val + 1}; @@ -88,7 +89,8 @@ void ConfigManagerSetOptCommand::set_argument_parser() { if (dot_pos == key.size() - 1) { throw cli::ArgumentParserError( M_("{}: Badly formatted argument value: Last key character cannot be '.': {}"), - std::string{"optval"}, std::string{value}); + std::string{"optval"}, + std::string{value}); } // Save the repository option for later processing (solving glob pattern, writing to file). diff --git a/dnf5-plugins/config-manager_plugin/unsetopt.cpp b/dnf5-plugins/config-manager_plugin/unsetopt.cpp index d69a503f2..316008625 100644 --- a/dnf5-plugins/config-manager_plugin/unsetopt.cpp +++ b/dnf5-plugins/config-manager_plugin/unsetopt.cpp @@ -71,7 +71,9 @@ void ConfigManagerUnsetOptCommand::set_argument_parser() { auto repo_id = key.substr(0, dot_pos); if (repo_id.empty()) { throw cli::ArgumentParserError( - M_("{}: Empty repository id is not allowed: {}"), std::string{"remove-opt"}, std::string{value}); + M_("{}: Empty repository id is not allowed: {}"), + std::string{"remove-opt"}, + std::string{value}); } auto repo_key = key.substr(dot_pos + 1);