Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-10-20 16:54:39 +0300
committerRich Trott <rtrott@gmail.com>2020-10-23 13:47:50 +0300
commit4fb780334ded9ab805ac1064d5105b2a37734d4d (patch)
tree97c306fce8aee430d0367c31a4c3937553c5aa8b
parent3f4ec9c30b74f7fd4d8c8ab66090d6edee85300b (diff)
doc,src,test: revise C++ code for linter update
PR-URL: https://github.com/nodejs/node/pull/35719 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
-rw-r--r--doc/api/addons.md2
-rw-r--r--src/node_report.cc2
-rw-r--r--test/addons/async-cleanup-hook/binding.cc2
-rw-r--r--test/addons/openssl-binding/binding.cc4
-rw-r--r--test/addons/openssl-client-cert-engine/testengine.cc6
-rw-r--r--test/addons/openssl-key-engine/testkeyengine.cc6
-rw-r--r--test/addons/stringbytes-external-exceed-max/binding.cc2
-rw-r--r--test/addons/worker-addon/binding.cc6
-rw-r--r--test/addons/zlib-binding/binding.cc2
9 files changed, 16 insertions, 16 deletions
diff --git a/doc/api/addons.md b/doc/api/addons.md
index a2bee79cc3d..0d8261d7c66 100644
--- a/doc/api/addons.md
+++ b/doc/api/addons.md
@@ -271,9 +271,9 @@ The following `addon.cc` uses `AddEnvironmentCleanupHook`:
```cpp
// addon.cc
+#include <node.h>
#include <assert.h>
#include <stdlib.h>
-#include <node.h>
using node::AddEnvironmentCleanupHook;
using v8::HandleScope;
diff --git a/src/node_report.cc b/src/node_report.cc
index e7bfe7fef09..3b97bb705b6 100644
--- a/src/node_report.cc
+++ b/src/node_report.cc
@@ -12,8 +12,8 @@
#ifdef _WIN32
#include <Windows.h>
#else // !_WIN32
-#include <sys/resource.h>
#include <cxxabi.h>
+#include <sys/resource.h>
#include <dlfcn.h>
#endif
diff --git a/test/addons/async-cleanup-hook/binding.cc b/test/addons/async-cleanup-hook/binding.cc
index d18da7a094f..0a11220850f 100644
--- a/test/addons/async-cleanup-hook/binding.cc
+++ b/test/addons/async-cleanup-hook/binding.cc
@@ -1,6 +1,6 @@
-#include <assert.h>
#include <node.h>
#include <uv.h>
+#include <assert.h>
void MustNotCall(void* arg, void(*cb)(void*), void* cbarg) {
assert(0);
diff --git a/test/addons/openssl-binding/binding.cc b/test/addons/openssl-binding/binding.cc
index 05849b6c14f..79472dd7f25 100644
--- a/test/addons/openssl-binding/binding.cc
+++ b/test/addons/openssl-binding/binding.cc
@@ -1,7 +1,7 @@
-#include <node.h>
-#include <assert.h>
#include <openssl/rand.h>
#include <openssl/ssl.h>
+#include <node.h>
+#include <assert.h>
namespace {
diff --git a/test/addons/openssl-client-cert-engine/testengine.cc b/test/addons/openssl-client-cert-engine/testengine.cc
index 7ccb56e0801..95712901e69 100644
--- a/test/addons/openssl-client-cert-engine/testengine.cc
+++ b/test/addons/openssl-client-cert-engine/testengine.cc
@@ -1,10 +1,10 @@
+#include <openssl/engine.h>
+#include <openssl/pem.h>
+
#include <assert.h>
#include <string.h>
#include <stdlib.h>
-#include <openssl/engine.h>
-#include <openssl/pem.h>
-
#include <fstream>
#include <iterator>
#include <string>
diff --git a/test/addons/openssl-key-engine/testkeyengine.cc b/test/addons/openssl-key-engine/testkeyengine.cc
index e1dc22164ac..704027ba5a4 100644
--- a/test/addons/openssl-key-engine/testkeyengine.cc
+++ b/test/addons/openssl-key-engine/testkeyengine.cc
@@ -1,10 +1,10 @@
+#include <openssl/engine.h>
+#include <openssl/pem.h>
+
#include <assert.h>
#include <string.h>
#include <stdlib.h>
-#include <openssl/engine.h>
-#include <openssl/pem.h>
-
#include <fstream>
#include <iterator>
#include <string>
diff --git a/test/addons/stringbytes-external-exceed-max/binding.cc b/test/addons/stringbytes-external-exceed-max/binding.cc
index 0e3cd3f4d0a..c452a093849 100644
--- a/test/addons/stringbytes-external-exceed-max/binding.cc
+++ b/test/addons/stringbytes-external-exceed-max/binding.cc
@@ -1,6 +1,6 @@
-#include <stdlib.h>
#include <node.h>
#include <v8.h>
+#include <stdlib.h>
#ifdef _AIX
// AIX allows over-allocation, and will SIGKILL when the allocated pages are
diff --git a/test/addons/worker-addon/binding.cc b/test/addons/worker-addon/binding.cc
index 63728fa9a4b..a5f9d8b3f83 100644
--- a/test/addons/worker-addon/binding.cc
+++ b/test/addons/worker-addon/binding.cc
@@ -1,9 +1,9 @@
-#include <assert.h>
#include <node.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <v8.h>
#include <uv.h>
+#include <assert.h>
+#include <stdio.h>
+#include <stdlib.h>
using v8::Context;
using v8::Function;
diff --git a/test/addons/zlib-binding/binding.cc b/test/addons/zlib-binding/binding.cc
index 53d25642f0d..3a958f26af1 100644
--- a/test/addons/zlib-binding/binding.cc
+++ b/test/addons/zlib-binding/binding.cc
@@ -1,7 +1,7 @@
#include <node.h>
#include <node_buffer.h>
-#include <assert.h>
#include <zlib.h>
+#include <assert.h>
namespace {