Skip to content

Commit

Permalink
Merge pull request #601 from elbeno/lint-fixes
Browse files Browse the repository at this point in the history
🚨 Remove some old lint directives
  • Loading branch information
elbeno authored Aug 22, 2024
2 parents d951b9d + c98842f commit 924cab6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 12 deletions.
1 change: 0 additions & 1 deletion include/cib/callback.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ template <int NumFuncs = 0, typename... ArgTypes> struct callback {
* @see cib::nexus
*/
template <std::convertible_to<func_ptr_t>... Fs>
// NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
[[nodiscard]] constexpr auto add(Fs &&...fs) const {
callback<NumFuncs + sizeof...(Fs), ArgTypes...> cb;
auto i = std::size_t{};
Expand Down
1 change: 0 additions & 1 deletion include/flow/graph_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ struct graph_builder {
constexpr static auto run() { built()(); }

public:
// NOLINTNEXTLINE(google-explicit-constructor)
constexpr operator FunctionPtr() const { return run; }
constexpr auto operator()() const -> void { run(); }
constexpr static bool active = decltype(built())::active;
Expand Down
1 change: 0 additions & 1 deletion include/flow/graphviz_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ struct graphviz_builder {
static auto run() -> std::string { return built(); }

public:
// NOLINTNEXTLINE(google-explicit-constructor)
constexpr operator VizFunctionPtr() const { return run; }
auto operator()() const -> std::string { return run(); }
constexpr static bool active = true;
Expand Down
1 change: 0 additions & 1 deletion include/log/catalog/mipi_encoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ template <typename TDestinations> struct log_handler {

private:
template <typename... MsgDataTypes>
// NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
NEVER_INLINE auto
dispatch_pass_by_args(MsgDataTypes &&...msg_data) -> void {
stdx::for_each(
Expand Down
12 changes: 5 additions & 7 deletions include/msg/message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,21 +369,19 @@ template <stdx::ct_string Name, typename... Fields> struct message {
using span_t = Span;

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

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

template <typename S>
// NOLINTNEXTLINE(google-explicit-constructor)
constexpr view_t(owner_t<S> const &s LIFETIMEBOUND)
constexpr explicit(false) view_t(owner_t<S> const &s LIFETIMEBOUND)
: storage{s.data()} {}

template <typename S, some_field_value... Vs>
explicit constexpr view_t(owner_t<S> &s LIFETIMEBOUND, Vs... vs)
explicit(true) constexpr view_t(owner_t<S> &s LIFETIMEBOUND, Vs... vs)
: storage{s.data()} {
this->set(vs...);
}
Expand All @@ -393,8 +391,8 @@ template <stdx::ct_string Name, typename... Fields> struct message {
std::same_as<std::add_const_t<typename S::element_type>,
typename span_t::element_type> and
span_t::extent <= S::extent)
// NOLINTNEXTLINE(google-explicit-constructor)
constexpr view_t(view_t<S> const &s) : storage{s.data()} {}
constexpr explicit(false) view_t(view_t<S> const &s)
: storage{s.data()} {}

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

Expand Down
1 change: 0 additions & 1 deletion include/sc/lazy_string_format.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ struct lazy_string_format {
constexpr lazy_string_format(StringConstant, ArgTuple newArgs)
: args{newArgs} {}

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

0 comments on commit 924cab6

Please sign in to comment.