diff options
author | gengjiawen <technicalcute@gmail.com> | 2020-01-08 16:21:56 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2020-01-16 09:39:13 +0300 |
commit | a5311bd757c74148e5cf4ea847e957bf2b578368 (patch) | |
tree | e5a5082011ef8b048f457b36fac80b6b7e7d2e81 /src/env.h | |
parent | f8e805985e58866d8495386e57a1bba761da27d1 (diff) |
tools: add clang-tidy rule in src
PR-URL: https://github.com/nodejs/node/pull/26840
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/env.h b/src/env.h index 1569208caf4..bec9be5c554 100644 --- a/src/env.h +++ b/src/env.h @@ -589,7 +589,7 @@ struct AllocatedBuffer { class AsyncRequest : public MemoryRetainer { public: AsyncRequest() = default; - ~AsyncRequest(); + ~AsyncRequest() override; AsyncRequest(const AsyncRequest&) = delete; AsyncRequest& operator=(const AsyncRequest&) = delete; @@ -907,7 +907,7 @@ class Environment : public MemoryRetainer { const std::vector<std::string>& exec_args, Flags flags = Flags(), uint64_t thread_id = kNoThreadId); - ~Environment(); + ~Environment() override; void InitializeLibuv(bool start_profiler_idle_notifier); inline const std::vector<std::string>& exec_argv(); @@ -1376,7 +1376,8 @@ class Environment : public MemoryRetainer { bool http_parser_buffer_in_use_ = false; std::unique_ptr<http2::Http2State> http2_state_; - bool debug_enabled_[static_cast<int>(DebugCategory::CATEGORY_COUNT)] = {0}; + bool debug_enabled_[static_cast<int>(DebugCategory::CATEGORY_COUNT)] = { + false}; AliasedFloat64Array fs_stats_field_array_; AliasedBigUint64Array fs_stats_field_bigint_array_; |