Skip to content

Commit

Permalink
[MISC] automatic linting
Browse files Browse the repository at this point in the history
  • Loading branch information
seqan-actions committed Jul 26, 2024
1 parent 3b22693 commit 7928ec9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 0 additions & 2 deletions include/seqan3/argument_parser/auxiliary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ concept argument_parser_compatible_option =
input_stream_over<std::istringstream, option_type> || named_enumeration<option_type>;
//!\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
Expand Down
6 changes: 2 additions & 4 deletions include/seqan3/core/debug_stream/default_printer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ concept printable_with = std::invocable<printer_t, stream_t, arg_t>;
*/
template <typename type_t>
requires requires (std::ostream & cout, type_t const & value) {
{
cout << value
};
}
{ cout << value };
}
struct std_printer<type_t>
{
/*!
Expand Down
4 changes: 2 additions & 2 deletions include/seqan3/core/debug_stream/range.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ namespace seqan3
* \ingroup core_debug_stream
*/
template <typename rng_t>
concept nonrecursive_range = !
std::same_as<std::remove_cvref_t<std::ranges::range_reference_t<rng_t>>, std::remove_cvref_t<rng_t>>;
concept nonrecursive_range =
!std::same_as<std::remove_cvref_t<std::ranges::range_reference_t<rng_t>>, std::remove_cvref_t<rng_t>>;

/*!
* \brief A printer for arbitrary input ranges.
Expand Down
7 changes: 6 additions & 1 deletion include/seqan3/core/debug_stream/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ struct std_variant_printer<variant_t>
constexpr void operator()(stream_t & stream, std::remove_cvref_t<variant_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 << "<VALUELESS_VARIANT>";
}
Expand Down
2 changes: 1 addition & 1 deletion include/seqan3/search/search_result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ struct search_result_printer<result_t> : public search_result_printer<std::remov
* \tparam specs_t The list of types seqan3::search_result is specialised with.
* \ingroup search
*/
template <typename ...specs_t>
template <typename... specs_t>
struct search_result_printer<search_result<specs_t...>>
{
/*!\brief Prints the search result.
Expand Down
2 changes: 1 addition & 1 deletion include/seqan3/utility/container/dynamic_bitset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ struct dynamic_bitset_printer<dynamic_bitset<bit_capacity>>
constexpr void operator()(stream_t & stream, dynamic_bitset<bit_capacity> const & arg) const
{
stream << (std::string_view{arg.to_string()} | views::interleave(4, std::string_view{"'"})
| ranges::to<std::string>());
| ranges::to<std::string>());
}
};

Expand Down

0 comments on commit 7928ec9

Please sign in to comment.