Commit b0ce0e34 authored by Clemens Backes's avatar Clemens Backes Committed by V8 LUCI CQ

[cleanup][base] Remove redundant NOLINT annotations

cpplint rules change over time, and we change the exact rules we enable
for v8. This CL removes NOLINT annotations which are not needed
according to the currently enabled rules.

R=mlippautz@chromium.org

Bug: v8:11717
Change-Id: I05951486c8bbcd06bd4f329793cc483a1ade6833
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2859851
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74293}
parent cd59c53a
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
#include "src/base/logging.h" #include "src/base/logging.h"
#include "src/base/platform/wrappers.h" #include "src/base/platform/wrappers.h"
#if V8_OS_WIN #if V8_OS_WIN
#include "src/base/win32-headers.h" // NOLINT #include "src/base/win32-headers.h"
#endif #endif
namespace v8 { namespace v8 {
......
...@@ -530,8 +530,8 @@ class TemplateHashMap ...@@ -530,8 +530,8 @@ class TemplateHashMap
AllocationPolicy>; AllocationPolicy>;
public: public:
STATIC_ASSERT(sizeof(Key*) == sizeof(void*)); // NOLINT STATIC_ASSERT(sizeof(Key*) == sizeof(void*));
STATIC_ASSERT(sizeof(Value*) == sizeof(void*)); // NOLINT STATIC_ASSERT(sizeof(Value*) == sizeof(void*));
struct value_type { struct value_type {
Key* first; Key* first;
Value* second; Value* second;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include "src/base/logging.h" #include "src/base/logging.h"
#if V8_OS_POSIX #if V8_OS_POSIX
#include <pthread.h> // NOLINT #include <pthread.h>
#endif #endif
#if V8_OS_STARBOARD #if V8_OS_STARBOARD
......
...@@ -82,7 +82,7 @@ double AIXTimezoneCache::LocalTimeOffset(double time_ms, bool is_utc) { ...@@ -82,7 +82,7 @@ double AIXTimezoneCache::LocalTimeOffset(double time_ms, bool is_utc) {
TimezoneCache* OS::CreateTimezoneCache() { return new AIXTimezoneCache(); } TimezoneCache* OS::CreateTimezoneCache() { return new AIXTimezoneCache(); }
static unsigned StringToLong(char* buffer) { static unsigned StringToLong(char* buffer) {
return static_cast<unsigned>(strtol(buffer, nullptr, 16)); // NOLINT return static_cast<unsigned>(strtol(buffer, nullptr, 16));
} }
std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() { std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
......
...@@ -44,7 +44,7 @@ TimezoneCache* OS::CreateTimezoneCache() { ...@@ -44,7 +44,7 @@ TimezoneCache* OS::CreateTimezoneCache() {
} }
static unsigned StringToLong(char* buffer) { static unsigned StringToLong(char* buffer) {
return static_cast<unsigned>(strtol(buffer, nullptr, 16)); // NOLINT return static_cast<unsigned>(strtol(buffer, nullptr, 16));
} }
std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() { std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
......
...@@ -23,12 +23,12 @@ ...@@ -23,12 +23,12 @@
#include <sys/types.h> #include <sys/types.h>
#if defined(__APPLE__) || defined(__DragonFly__) || defined(__FreeBSD__) || \ #if defined(__APPLE__) || defined(__DragonFly__) || defined(__FreeBSD__) || \
defined(__NetBSD__) || defined(__OpenBSD__) defined(__NetBSD__) || defined(__OpenBSD__)
#include <sys/sysctl.h> // NOLINT, for sysctl #include <sys/sysctl.h> // for sysctl
#endif #endif
#if defined(ANDROID) && !defined(V8_ANDROID_LOG_STDOUT) #if defined(ANDROID) && !defined(V8_ANDROID_LOG_STDOUT)
#define LOG_TAG "v8" #define LOG_TAG "v8"
#include <android/log.h> // NOLINT #include <android/log.h>
#endif #endif
#include <cmath> #include <cmath>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
#endif #endif
#if V8_OS_LINUX #if V8_OS_LINUX
#include <sys/prctl.h> // NOLINT, for prctl #include <sys/prctl.h> // for prctl
#endif #endif
#if defined(V8_OS_FUCHSIA) #if defined(V8_OS_FUCHSIA)
...@@ -82,7 +82,7 @@ extern int madvise(caddr_t, size_t, int); ...@@ -82,7 +82,7 @@ extern int madvise(caddr_t, size_t, int);
#endif #endif
#if defined(V8_LIBC_GLIBC) #if defined(V8_LIBC_GLIBC)
extern "C" void* __libc_stack_end; // NOLINT extern "C" void* __libc_stack_end;
#endif #endif
namespace v8 { namespace v8 {
...@@ -936,8 +936,7 @@ static void InitializeTlsBaseOffset() { ...@@ -936,8 +936,7 @@ static void InitializeTlsBaseOffset() {
buffer[kBufferSize - 1] = '\0'; buffer[kBufferSize - 1] = '\0';
char* period_pos = strchr(buffer, '.'); char* period_pos = strchr(buffer, '.');
*period_pos = '\0'; *period_pos = '\0';
int kernel_version_major = int kernel_version_major = static_cast<int>(strtol(buffer, nullptr, 10));
static_cast<int>(strtol(buffer, nullptr, 10)); // NOLINT
// The constants below are taken from pthreads.s from the XNU kernel // The constants below are taken from pthreads.s from the XNU kernel
// sources archive at www.opensource.apple.com. // sources archive at www.opensource.apple.com.
if (kernel_version_major < 11) { if (kernel_version_major < 11) {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <VersionHelpers.h> #include <VersionHelpers.h>
#if defined(_MSC_VER) #if defined(_MSC_VER)
#include <crtdbg.h> // NOLINT #include <crtdbg.h>
#endif // defined(_MSC_VER) #endif // defined(_MSC_VER)
// Extra functions for MinGW. Most of these are the _s functions which are in // Extra functions for MinGW. Most of these are the _s functions which are in
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
#endif #endif
#if V8_OS_MACOSX #if V8_OS_MACOSX
#include <dispatch/dispatch.h> // NOLINT #include <dispatch/dispatch.h>
#elif V8_OS_POSIX #elif V8_OS_POSIX
#include <semaphore.h> // NOLINT #include <semaphore.h>
#endif #endif
#if V8_OS_STARBOARD #if V8_OS_STARBOARD
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// So do not include this header in any of v8's public headers -- only // So do not include this header in any of v8's public headers -- only
// use it in src/, not in include/. // use it in src/, not in include/.
#if defined(__clang__) #if defined(__clang__)
#define V8_FALLTHROUGH [[clang::fallthrough]] // NOLINT(whitespace/braces) #define V8_FALLTHROUGH [[clang::fallthrough]]
#else #else
#define V8_FALLTHROUGH #define V8_FALLTHROUGH
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment