diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-04-17 23:11:58 +0800 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-04-26 08:14:04 +0200 |
commit | 5fe4d5966fd9c2b30b3da3ec7cb47132aa8cdfdd (patch) | |
tree | ad5b4d9e5827e2b1d04be6eb6f6f469a64def08b | |
parent | 08a9c4a996964aca909cd75fa8ecafd652c54885 (diff) | |
download | android-node-v8-5fe4d5966fd9c2b30b3da3ec7cb47132aa8cdfdd.tar.gz android-node-v8-5fe4d5966fd9c2b30b3da3ec7cb47132aa8cdfdd.tar.bz2 android-node-v8-5fe4d5966fd9c2b30b3da3ec7cb47132aa8cdfdd.zip |
src: apply clang-tidy modernize-deprecated-headers found by Jenkins CI
PR-URL: https://github.com/nodejs/node/pull/27279
Reviewed-By: Anna Henningsen <anna@addaleax.net>
-rw-r--r-- | src/js_native_api_v8.cc | 2 | ||||
-rw-r--r-- | src/large_pages/node_large_page.cc | 20 | ||||
-rw-r--r-- | src/node_object_wrap.h | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/src/js_native_api_v8.cc b/src/js_native_api_v8.cc index 134ae992ec..e05163c32f 100644 --- a/src/js_native_api_v8.cc +++ b/src/js_native_api_v8.cc @@ -1,4 +1,4 @@ -#include <limits.h> // INT_MAX +#include <climits> // INT_MAX #include <cmath> #include <algorithm> #define NAPI_EXPERIMENTAL diff --git a/src/large_pages/node_large_page.cc b/src/large_pages/node_large_page.cc index ad599a1a91..333a119ee4 100644 --- a/src/large_pages/node_large_page.cc +++ b/src/large_pages/node_large_page.cc @@ -20,19 +20,21 @@ // // SPDX-License-Identifier: MIT -#include <errno.h> // NOLINT(build/include) -#include <fcntl.h> // _O_RDWR -#include <limits.h> // PATH_MAX -#include <locale.h> -#include <signal.h> -#include <stdio.h> -#include <stdlib.h> -#include <stdint.h> -#include <string.h> +#include "node_large_page.h" + +#include <fcntl.h> // _O_RDWR #include <sys/types.h> #include <sys/mman.h> #include <unistd.h> // readlink +#include <cerrno> // NOLINT(build/include) +#include <climits> // PATH_MAX +#include <clocale> +#include <csignal> +#include <cstdio> +#include <cstdlib> +#include <cstdint> +#include <cstring> #include <string> #include <fstream> #include <iostream> diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index 6753a70353..9dce684892 100644 --- a/src/node_object_wrap.h +++ b/src/node_object_wrap.h @@ -23,7 +23,7 @@ #define SRC_NODE_OBJECT_WRAP_H_ #include "v8.h" -#include <assert.h> +#include <cassert> namespace node { |