Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: tidy up js_native_api.* headers #26884

Merged
merged 1 commit into from
Apr 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/js_native_api.h
Original file line number Diff line number Diff line change
@@ -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)
refack marked this conversation as resolved.
Show resolved Hide resolved
#include "js_native_api_types.h"

// Use INT_MAX, this should only be consumed by the pre-processor anyway.
Expand Down
7 changes: 5 additions & 2 deletions src/js_native_api_types.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#ifndef SRC_JS_NATIVE_API_TYPES_H_
#define SRC_JS_NATIVE_API_TYPES_H_

#include <stddef.h>
gengjiawen marked this conversation as resolved.
Show resolved Hide resolved
#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;
Expand Down
3 changes: 2 additions & 1 deletion src/js_native_api_v8.h
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
1 change: 1 addition & 0 deletions tools/cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down