Skip to content

Commit 08176f9

Browse files
committed
fix(*): fix clang-tidy warnings
1 parent 798fd82 commit 08176f9

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

include/stdsharp/algorithm/algorithm.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ namespace stdsharp
140140
}
141141
} strict_compare{};
142142

143-
template<typename I, typename O>
144-
using move_n_result = std::ranges::in_out_result<I, O>;
143+
template<typename In, typename Out>
144+
using move_n_result = std::ranges::in_out_result<In, Out>;
145145

146146
inline constexpr struct move_n_fn
147147
{
148-
template<std::input_iterator I, std::weakly_incrementable O>
149-
requires std::indirectly_movable<I, O>
150-
constexpr move_n_result<I, O>
151-
operator()(I in, const std::iter_difference_t<I> n, O out) const
148+
template<std::input_iterator In, std::weakly_incrementable Out>
149+
requires std::indirectly_movable<In, Out>
150+
constexpr move_n_result<In, Out>
151+
operator()(In in, const std::iter_difference_t<In> n, Out out) const
152152
{
153153
auto&& r = std::ranges::move(
154154
std::counted_iterator{cpp_move(in), n},

include/stdsharp/ranges/ranges.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ namespace stdsharp
7777

7878
inline constexpr struct is_iter_in_fn
7979
{
80-
template<typename I, std::sentinel_for<I> S>
81-
requires std::sentinel_for<I, I>
82-
constexpr bool operator()(I begin, const S& end, const I& in) const noexcept
80+
template<typename In, std::sentinel_for<In> Sentinel>
81+
requires std::sentinel_for<In, In>
82+
constexpr bool operator()(In begin, const Sentinel& end, const In& in) const noexcept
8383
{
8484
if(!std::is_constant_evaluated()) return begin <= in && in < end;
8585

tests/src/memory/single_stack_allocator_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using namespace stdsharp;
55
using namespace std;
66

7-
SCENARIO("static allocator", "[memory][static_allocator]") // NOLINT
7+
SCENARIO("single stack allocator", "[memory][single_stack_allocator]") // NOLINT
88
{
99
struct base
1010
{
@@ -28,7 +28,7 @@ SCENARIO("static allocator", "[memory][static_allocator]") // NOLINT
2828

2929
single_stack_buffer<sizeof(derived)> rsc;
3030

31-
GIVEN("static allocator with " << decltype(rsc)::size << " bytes")
31+
GIVEN("allocator with " << decltype(rsc)::size << " bytes")
3232
{
3333
auto allocator = make_single_stack_allocator<derived>(rsc);
3434

0 commit comments

Comments
 (0)