clang-tidy: google-explicit-constructor

This commit is contained in:
Peter Johnson
2020-12-28 11:18:07 -08:00
parent c97c6dc065
commit cbe59fa3bf
15 changed files with 26 additions and 24 deletions

View File

@@ -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; })) {}
/**

View File

@@ -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}; }