From f29420fb828982a7e37327f3c25ea0e9d97e27f1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 30 Apr 2025 15:04:03 +0000 Subject: [PATCH] style: pre-commit.ci fixes --- include/CLI/App.hpp | 5 +++-- include/CLI/impl/App_inl.hpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 6519af90..a71f2d6d 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -1239,9 +1239,10 @@ class App { ///@return true if matched CLI11_NODISCARD bool check_name(std::string name_to_check) const; - enum class NameMatch:std::uint8_t{none=0,match=1,prefix=2}; + enum class NameMatch : std::uint8_t { none = 0, match = 1, prefix = 2 }; /// Check the name, case-insensitive and underscore insensitive if set - /// @return NameMatch::none if no match, NameMatch::match if exact NameMatch::prefix if prefix is enabled and a prefix matches + /// @return NameMatch::none if no match, NameMatch::match if exact NameMatch::prefix if prefix is enabled and a + /// prefix matches CLI11_NODISCARD NameMatch check_name_detail(std::string name_to_check) const; /// Get the groups available directly from this option (in order) diff --git a/include/CLI/impl/App_inl.hpp b/include/CLI/impl/App_inl.hpp index 738b0887..6b03a453 100644 --- a/include/CLI/impl/App_inl.hpp +++ b/include/CLI/impl/App_inl.hpp @@ -895,8 +895,8 @@ CLI11_NODISCARD CLI11_INLINE std::string App::get_display_name(bool with_aliases } CLI11_NODISCARD CLI11_INLINE bool App::check_name(std::string name_to_check) const { - auto result=check_name_detail(std::move(name_to_check)); - return (result!=NameMatch::none); + auto result = check_name_detail(std::move(name_to_check)); + return (result != NameMatch::none); } CLI11_NODISCARD CLI11_INLINE App::NameMatch App::check_name_detail(std::string name_to_check) const {