File tree 4 files changed +11
-5
lines changed
4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef SRC_JS_NATIVE_API_H_
2
2
#define SRC_JS_NATIVE_API_H_
3
3
4
- #include <stddef.h>
5
- #include <stdbool.h>
4
+ // This file needs to be compatible with C compilers.
5
+ #include <stddef.h> // NOLINT(modernize-deprecated-headers)
6
+ #include <stdbool.h> // NOLINT(modernize-deprecated-headers)
6
7
#include "js_native_api_types.h"
7
8
8
9
// Use INT_MAX, this should only be consumed by the pre-processor anyway.
Original file line number Diff line number Diff line change 1
1
#ifndef SRC_JS_NATIVE_API_TYPES_H_
2
2
#define SRC_JS_NATIVE_API_TYPES_H_
3
3
4
- #include <stddef.h>
5
- #include <stdint.h>
4
+ // This file needs to be compatible with C compilers.
5
+ // This is a public include file, and these includes have essentially
6
+ // became part of it's API.
7
+ #include <stddef.h> // NOLINT(modernize-deprecated-headers)
8
+ #include <stdint.h> // NOLINT(modernize-deprecated-headers)
6
9
7
10
#if !defined __cplusplus || (defined(_MSC_VER ) && _MSC_VER < 1900 )
8
11
typedef uint16_t char16_t ;
Original file line number Diff line number Diff line change 1
1
#ifndef SRC_JS_NATIVE_API_V8_H_
2
2
#define SRC_JS_NATIVE_API_V8_H_
3
3
4
- #include < string.h>
4
+ // This file needs to be compatible with C compilers.
5
+ #include < string.h> // NOLINT(modernize-deprecated-headers)
5
6
#include " js_native_api_types.h"
6
7
#include " js_native_api_v8_internals.h"
7
8
Original file line number Diff line number Diff line change @@ -361,6 +361,7 @@ def GetNonHeaderExtensions():
361
361
'-build/include_subdir' ,
362
362
'-build/include_what_you_use' ,
363
363
'-legal/copyright' ,
364
+ '-readability/nolint' ,
364
365
]
365
366
366
367
# The default list of categories suppressed for C (not C++) files.
You can’t perform that action at this time.
0 commit comments