mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
clang-tidy: google-explicit-constructor
This commit is contained in:
@@ -287,7 +287,7 @@ class future final {
|
||||
future(const future&) = delete;
|
||||
|
||||
template <typename R>
|
||||
future(future<R>&& oth) noexcept
|
||||
future(future<R>&& oth) noexcept // NOLINT
|
||||
: future(oth.then([](R&& val) -> T { return val; })) {}
|
||||
|
||||
/**
|
||||
|
||||
@@ -46,8 +46,8 @@ class Buffer : public uv_buf_t {
|
||||
ArrayRef<char> data() const { return ArrayRef<char>{base, len}; }
|
||||
MutableArrayRef<char> data() { return MutableArrayRef<char>{base, len}; }
|
||||
|
||||
operator ArrayRef<char>() const { return data(); }
|
||||
operator MutableArrayRef<char>() { return data(); }
|
||||
operator ArrayRef<char>() const { return data(); } // NOLINT
|
||||
operator MutableArrayRef<char>() { return data(); } // NOLINT
|
||||
|
||||
static Buffer Allocate(size_t size) { return Buffer{new char[size], size}; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user