diff --git a/src/js_native_api.h b/src/js_native_api.h index b19113b1f159c3..0646a2d94cfd28 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 -#include +// This file needs to be compatible with C compilers. +#include // NOLINT(modernize-deprecated-headers) +#include // 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 1f46729fc67104..fc9718a699c638 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 -#include +// 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 // NOLINT(modernize-deprecated-headers) +#include // 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 d746660df42fd5..4e1779e8f00890 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 +// This file needs to be compatible with C compilers. +#include // 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 034670dad9138a..aed35f3e0eeb08 100755 --- a/tools/cpplint.py +++ b/tools/cpplint.py @@ -361,6 +361,7 @@ def GetNonHeaderExtensions(): '-build/include_subdir', '-build/include_what_you_use', '-legal/copyright', + '-readability/nolint', ] # The default list of categories suppressed for C (not C++) files.