Skip to content

Commit 6da6484

Browse files
alfCcorreaa
authored andcommitted
more lint
1 parent 4fc6f94 commit 6da6484

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

include/boost/multi/array_ref.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2422,7 +2422,7 @@ class subarray : public const_subarray<T, D, ElementPtr, Layout> {
24222422
private:
24232423
using const_subarray<T, D, ElementPtr, Layout>::paren_aux_;
24242424

2425-
BOOST_MULTI_HD constexpr auto paren_aux_() & { return subarray<T, D, ElementPtr, Layout>(this->layout(), this->base_); }
2425+
BOOST_MULTI_HD constexpr auto paren_aux_() & { return subarray<T, D, ElementPtr, Layout>(this->layout(), this->base_); } // cppcheck-suppress duplInheritedMember;
24262426
BOOST_MULTI_HD constexpr auto paren_aux_() && { return subarray<T, D, ElementPtr, Layout>(this->layout(), this->base_); }
24272427

24282428
template<class... As> BOOST_MULTI_HD constexpr auto paren_aux_(index idx) & -> decltype(auto) { return operator[](idx); }

test/conor.cpp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Alfredo A. Correa
1+
// Copyright 2025-2026 Alfredo A. Correa
22
// Distributed under the Boost Software License, Version 1.0.
33
// https://www.boost.org/LICENSE_1_0.txt
44

@@ -9,19 +9,20 @@
99

1010
#include <boost/core/lightweight_test.hpp> // IWYU pragma: keep
1111

12+
#include <functional> // IWYU pragma: keep
13+
#include <iostream> // IWYU pragma: keep
14+
#include <limits> // IWYU pragma: keep
15+
1216
#if __cplusplus >= 202302L || (defined(_MSVC_LANG) && _MSVC_LANG > 202002L)
1317

1418
#include <boost/multi/array.hpp>
1519

16-
#include <algorithm> // IWYU pragma: keep // for std::equal
17-
#include <cmath> // for std::abs
18-
#include <concepts> // for constructible_from // NOLINT(misc-include-cleaner) // IWYU pragma: keep
19-
#include <functional> // for std::plus // IWYU pragma: keep
20-
#include <iostream> // for std::cout // IWYU pragma: keep
21-
#include <iterator> // IWYU pragma: keep
22-
#include <limits> // for std::numeric_limits // IWYU pragma: keep
23-
#include <ranges> // IWYU pragma: keep
24-
#include <tuple> // for std::get // IWYU pragma: keep
20+
#include <algorithm> // IWYU pragma: keep // for std::equal
21+
#include <cmath> // for std::abs
22+
#include <concepts> // for constructible_from // NOLINT(misc-include-cleaner) // IWYU pragma: keep
23+
#include <iterator> // IWYU pragma: keep
24+
#include <ranges> // IWYU pragma: keep
25+
#include <tuple> // for std::get // IWYU pragma: keep
2526

2627
namespace stdr = std::ranges;
2728
namespace stdv = std::views;

0 commit comments

Comments
 (0)