summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js_native_api.h5
-rw-r--r--src/js_native_api_types.h7
-rw-r--r--src/js_native_api_v8.h3
-rwxr-xr-xtools/cpplint.py1
4 files changed, 11 insertions, 5 deletions
diff --git a/src/js_native_api.h b/src/js_native_api.h
index b19113b1f1..0646a2d94c 100644
--- a/src/js_native_api.h
+++ b/src/js_native_api.h
@@ -1,8 +1,9 @@
#ifndef SRC_JS_NATIVE_API_H_
#define SRC_JS_NATIVE_API_H_
-#include <stddef.h>
-#include <stdbool.h>
+// This file needs to be compatible with C compilers.
+#include <stddef.h> // NOLINT(modernize-deprecated-headers)
+#include <stdbool.h> // NOLINT(modernize-deprecated-headers)
#include "js_native_api_types.h"
// Use INT_MAX, this should only be consumed by the pre-processor anyway.
diff --git a/src/js_native_api_types.h b/src/js_native_api_types.h
index 1f46729fc6..fc9718a699 100644
--- a/src/js_native_api_types.h
+++ b/src/js_native_api_types.h
@@ -1,8 +1,11 @@
#ifndef SRC_JS_NATIVE_API_TYPES_H_
#define SRC_JS_NATIVE_API_TYPES_H_
-#include <stddef.h>
-#include <stdint.h>
+// This file needs to be compatible with C compilers.
+// This is a public include file, and these includes have essentially
+// became part of it's API.
+#include <stddef.h> // NOLINT(modernize-deprecated-headers)
+#include <stdint.h> // NOLINT(modernize-deprecated-headers)
#if !defined __cplusplus || (defined(_MSC_VER) && _MSC_VER < 1900)
typedef uint16_t char16_t;
diff --git a/src/js_native_api_v8.h b/src/js_native_api_v8.h
index d746660df4..4e1779e8f0 100644
--- a/src/js_native_api_v8.h
+++ b/src/js_native_api_v8.h
@@ -1,7 +1,8 @@
#ifndef SRC_JS_NATIVE_API_V8_H_
#define SRC_JS_NATIVE_API_V8_H_
-#include <string.h>
+// This file needs to be compatible with C compilers.
+#include <string.h> // NOLINT(modernize-deprecated-headers)
#include "js_native_api_types.h"
#include "js_native_api_v8_internals.h"
diff --git a/tools/cpplint.py b/tools/cpplint.py
index 034670dad9..aed35f3e0e 100755
--- a/tools/cpplint.py
+++ b/tools/cpplint.py
@@ -361,6 +361,7 @@ _DEFAULT_FILTERS = [
'-build/include_subdir',
'-build/include_what_you_use',
'-legal/copyright',
+ '-readability/nolint',
]
# The default list of categories suppressed for C (not C++) files.