From 4748bed7365817bea2cc1208fe85ed6b963d1889 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 28 Jun 2016 21:21:21 +0200 Subject: [PATCH] src: fix readability/namespace cpplint warnings PR-URL: https://github.com/nodejs/node/pull/7462 Reviewed-By: Trevor Norris --- src/node_win32_etw_provider.cc | 3 ++- src/spawn_sync.h | 3 ++- src/string_search.cc | 5 +++-- src/string_search.h | 4 ++-- test/addons/make-callback-recurse/binding.cc | 2 +- test/addons/make-callback/binding.cc | 2 +- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/node_win32_etw_provider.cc b/src/node_win32_etw_provider.cc index f2650af93a51d6..7b766bd2bb99b8 100644 --- a/src/node_win32_etw_provider.cc +++ b/src/node_win32_etw_provider.cc @@ -187,4 +187,5 @@ void shutdown_etw() { advapi = nullptr; } } -} + +} // namespace node diff --git a/src/spawn_sync.h b/src/spawn_sync.h index 1f9fc68809a9dc..bdcd96fca0028d 100644 --- a/src/spawn_sync.h +++ b/src/spawn_sync.h @@ -219,6 +219,7 @@ class SyncProcessRunner { Environment* env_; }; -} + +} // namespace node #endif // SRC_SPAWN_SYNC_H_ diff --git a/src/string_search.cc b/src/string_search.cc index 530a0e54684db8..326fba7c4abf05 100644 --- a/src/string_search.cc +++ b/src/string_search.cc @@ -6,5 +6,6 @@ namespace stringsearch { int StringSearchBase::kBadCharShiftTable[kUC16AlphabetSize]; int StringSearchBase::kGoodSuffixShiftTable[kBMMaxShift + 1]; int StringSearchBase::kSuffixTable[kBMMaxShift + 1]; -} -} // namespace node::stringsearch + +} // namespace stringsearch +} // namespace node diff --git a/src/string_search.h b/src/string_search.h index 1fa6262cb7c527..26b15de0d7d60a 100644 --- a/src/string_search.h +++ b/src/string_search.h @@ -650,8 +650,8 @@ size_t SearchString(Vector subject, StringSearch search(pattern); return search.Search(subject, start_index); } -} -} // namespace node::stringsearch +} // namespace stringsearch +} // namespace node namespace node { using node::stringsearch::Vector; diff --git a/test/addons/make-callback-recurse/binding.cc b/test/addons/make-callback-recurse/binding.cc index 1c575910ef66f5..1195dbe2ff7e4c 100644 --- a/test/addons/make-callback-recurse/binding.cc +++ b/test/addons/make-callback-recurse/binding.cc @@ -26,6 +26,6 @@ void Initialize(Local target) { NODE_SET_METHOD(target, "makeCallback", MakeCallback); } -} // namespace anonymous +} // namespace NODE_MODULE(binding, Initialize) diff --git a/test/addons/make-callback/binding.cc b/test/addons/make-callback/binding.cc index 3012a39ff70a73..a1adb997bbf9b9 100644 --- a/test/addons/make-callback/binding.cc +++ b/test/addons/make-callback/binding.cc @@ -35,6 +35,6 @@ void Initialize(v8::Local target) { NODE_SET_METHOD(target, "makeCallback", MakeCallback); } -} // namespace anonymous +} // namespace NODE_MODULE(binding, Initialize)