Skip to content
Permalink
Browse files

src: add NOLINT to js_native_.*

* add filter to not lint NOLINT rules

PR-URL: #26884
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information...
gengjiawen authored and refack committed Mar 28, 2019
1 parent 135b79a commit d0e2650d03f823cf5cc2f55750a7d5111fb2040d
Showing with 11 additions and 5 deletions.
  1. +3 −2 src/js_native_api.h
  2. +5 −2 src/js_native_api_types.h
  3. +2 −1 src/js_native_api_v8.h
  4. +1 −0 tools/cpplint.py
@@ -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.
@@ -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;
@@ -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"

@@ -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.

0 comments on commit d0e2650

Please sign in to comment.
You can’t perform that action at this time.