Skip to content

Commit c98842f

Browse files
committed
🚨 Remove some old lint directives
Updates to clang-tidy mean that some old directives are no longer needed.
1 parent d951b9d commit c98842f

File tree

6 files changed

+5
-12
lines changed

6 files changed

+5
-12
lines changed

include/cib/callback.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ template <int NumFuncs = 0, typename... ArgTypes> struct callback {
4343
* @see cib::nexus
4444
*/
4545
template <std::convertible_to<func_ptr_t>... Fs>
46-
// NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
4746
[[nodiscard]] constexpr auto add(Fs &&...fs) const {
4847
callback<NumFuncs + sizeof...(Fs), ArgTypes...> cb;
4948
auto i = std::size_t{};

include/flow/graph_builder.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ struct graph_builder {
155155
constexpr static auto run() { built()(); }
156156

157157
public:
158-
// NOLINTNEXTLINE(google-explicit-constructor)
159158
constexpr operator FunctionPtr() const { return run; }
160159
constexpr auto operator()() const -> void { run(); }
161160
constexpr static bool active = decltype(built())::active;

include/flow/graphviz_builder.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ struct graphviz_builder {
6161
static auto run() -> std::string { return built(); }
6262

6363
public:
64-
// NOLINTNEXTLINE(google-explicit-constructor)
6564
constexpr operator VizFunctionPtr() const { return run; }
6665
auto operator()() const -> std::string { return run(); }
6766
constexpr static bool active = true;

include/log/catalog/mipi_encoder.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ template <typename TDestinations> struct log_handler {
163163

164164
private:
165165
template <typename... MsgDataTypes>
166-
// NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
167166
NEVER_INLINE auto
168167
dispatch_pass_by_args(MsgDataTypes &&...msg_data) -> void {
169168
stdx::for_each(

include/msg/message.hpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,21 +369,19 @@ template <stdx::ct_string Name, typename... Fields> struct message {
369369
using span_t = Span;
370370

371371
template <detail::storage_like S>
372-
// NOLINTNEXTLINE(google-explicit-constructor)
373-
view_t(S const &s) : storage{s} {}
372+
explicit(false) view_t(S const &s) : storage{s} {}
374373

375374
template <detail::storage_like S, some_field_value... Vs>
376375
constexpr explicit view_t(S &s, Vs... vs) : storage{s} {
377376
this->set(vs...);
378377
}
379378

380379
template <typename S>
381-
// NOLINTNEXTLINE(google-explicit-constructor)
382-
constexpr view_t(owner_t<S> const &s LIFETIMEBOUND)
380+
constexpr explicit(false) view_t(owner_t<S> const &s LIFETIMEBOUND)
383381
: storage{s.data()} {}
384382

385383
template <typename S, some_field_value... Vs>
386-
explicit constexpr view_t(owner_t<S> &s LIFETIMEBOUND, Vs... vs)
384+
explicit(true) constexpr view_t(owner_t<S> &s LIFETIMEBOUND, Vs... vs)
387385
: storage{s.data()} {
388386
this->set(vs...);
389387
}
@@ -393,8 +391,8 @@ template <stdx::ct_string Name, typename... Fields> struct message {
393391
std::same_as<std::add_const_t<typename S::element_type>,
394392
typename span_t::element_type> and
395393
span_t::extent <= S::extent)
396-
// NOLINTNEXTLINE(google-explicit-constructor)
397-
constexpr view_t(view_t<S> const &s) : storage{s.data()} {}
394+
constexpr explicit(false) view_t(view_t<S> const &s)
395+
: storage{s.data()} {}
398396

399397
[[nodiscard]] constexpr auto data() const { return storage; }
400398

include/sc/lazy_string_format.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ struct lazy_string_format {
1414
constexpr lazy_string_format(StringConstant, ArgTuple newArgs)
1515
: args{newArgs} {}
1616

17-
// NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
1817
template <typename F> constexpr auto apply(F &&f) const {
1918
return args.apply(
2019
[&](auto const &...as) { return std::forward<F>(f)(str, as...); });

0 commit comments

Comments
 (0)