From a23159389cd86f5cce292fe5303e109890cac741 Mon Sep 17 00:00:00 2001 From: "seqan-actions[bot]" Date: Fri, 26 Jul 2024 18:09:15 +0200 Subject: [PATCH] [MISC] automatic linting --- include/seqan3/argument_parser/auxiliary.hpp | 2 -- include/seqan3/core/debug_stream/default_printer.hpp | 6 ++---- include/seqan3/core/debug_stream/range.hpp | 4 ++-- include/seqan3/core/debug_stream/variant.hpp | 7 ++++++- include/seqan3/search/search_result.hpp | 2 +- include/seqan3/utility/container/dynamic_bitset.hpp | 2 +- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/include/seqan3/argument_parser/auxiliary.hpp b/include/seqan3/argument_parser/auxiliary.hpp index e517e72a5a..4f91b54794 100644 --- a/include/seqan3/argument_parser/auxiliary.hpp +++ b/include/seqan3/argument_parser/auxiliary.hpp @@ -201,8 +201,6 @@ concept argument_parser_compatible_option = input_stream_over || named_enumeration; //!\endcond - - /*!\brief A type (e.g. an enum) can be made debug streamable by customizing the seqan3::enumeration_names. * * This searches the seqan3::enumeration_names of the respective type for the value \p op and prints the diff --git a/include/seqan3/core/debug_stream/default_printer.hpp b/include/seqan3/core/debug_stream/default_printer.hpp index 6632d524a6..30cd302772 100644 --- a/include/seqan3/core/debug_stream/default_printer.hpp +++ b/include/seqan3/core/debug_stream/default_printer.hpp @@ -78,10 +78,8 @@ concept printable_with = std::invocable; */ template requires requires (std::ostream & cout, type_t const & value) { - { - cout << value - }; - } + { cout << value }; + } struct std_printer { /*! diff --git a/include/seqan3/core/debug_stream/range.hpp b/include/seqan3/core/debug_stream/range.hpp index d27a5bd7c8..aded7b2a98 100644 --- a/include/seqan3/core/debug_stream/range.hpp +++ b/include/seqan3/core/debug_stream/range.hpp @@ -77,8 +77,8 @@ namespace seqan3 * \ingroup core_debug_stream */ template -concept nonrecursive_range = ! -std::same_as>, std::remove_cvref_t>; +concept nonrecursive_range = + !std::same_as>, std::remove_cvref_t>; /*! * \brief A printer for arbitrary input ranges. diff --git a/include/seqan3/core/debug_stream/variant.hpp b/include/seqan3/core/debug_stream/variant.hpp index 41afe82b68..d877d2b625 100644 --- a/include/seqan3/core/debug_stream/variant.hpp +++ b/include/seqan3/core/debug_stream/variant.hpp @@ -37,7 +37,12 @@ struct std_variant_printer constexpr void operator()(stream_t & stream, std::remove_cvref_t const & arg) const { if (!arg.valueless_by_exception()) - std::visit([&stream](auto && arg) { stream << arg; }, arg); + std::visit( + [&stream](auto && arg) + { + stream << arg; + }, + arg); else stream << ""; } diff --git a/include/seqan3/search/search_result.hpp b/include/seqan3/search/search_result.hpp index 8926a5043a..78d1b66c0a 100644 --- a/include/seqan3/search/search_result.hpp +++ b/include/seqan3/search/search_result.hpp @@ -195,7 +195,7 @@ struct search_result_printer : public search_result_printer +template struct search_result_printer> { /*!\brief Prints the search result. diff --git a/include/seqan3/utility/container/dynamic_bitset.hpp b/include/seqan3/utility/container/dynamic_bitset.hpp index 111264d89e..7a32fd9261 100644 --- a/include/seqan3/utility/container/dynamic_bitset.hpp +++ b/include/seqan3/utility/container/dynamic_bitset.hpp @@ -1974,7 +1974,7 @@ struct dynamic_bitset_printer> constexpr void operator()(stream_t & stream, dynamic_bitset const & arg) const { stream << (std::string_view{arg.to_string()} | views::interleave(4, std::string_view{"'"}) - | ranges::to()); + | ranges::to()); } };