Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
04c723d
tools: update cpplint to r456
bnoordhuis Jun 28, 2016
fc10624
tools: disable unwanted cpplint rules again
bnoordhuis Jun 28, 2016
bb81d69
tools: add back --mode=tap to cpplint
bnoordhuis Jun 28, 2016
fadf66a
tools: allow cpplint to run outside git repo
bnoordhuis Jun 28, 2016
19ec5d7
src: fix build/c++tr1 cpplint warnings
bnoordhuis Jun 28, 2016
e9559d0
src: fix build/header_guard cpplint warnings
bnoordhuis Jun 28, 2016
29228c4
src: fix readability/braces cpplint warnings
bnoordhuis Jun 28, 2016
df3a192
src: fix readability/constructors cpplint warnings
bnoordhuis Jun 28, 2016
8e39522
src: fix readability/inheritance cpplint warnings
bnoordhuis Jun 28, 2016
0ba0eca
src: fix readability/namespace cpplint warnings
bnoordhuis Jun 28, 2016
d112df4
src: fix readability/nolint cpplint warnings
bnoordhuis Jun 28, 2016
1243134
src: fix runtime/indentation_namespace warnings
bnoordhuis Jun 28, 2016
ae0c650
src: fix runtime/int cpplint warnings
bnoordhuis Jun 28, 2016
2f2002a
src: fix runtime/references cpplint warnings
bnoordhuis Jun 28, 2016
0daffdf
src: fix whitespace/blank_line cpplint warnings
bnoordhuis Jun 28, 2016
97aeb0a
src: fix whitespace/indent cpplint warnings
bnoordhuis Jun 28, 2016
f52e26f
build: remove unused files from CPPLINT_FILES
bnoordhuis Jun 28, 2016
a26c3cd
src: lint node_win32_perfctr_provider.cc
bnoordhuis Jun 28, 2016
f1d2792
src: lint node_lttng_tp.h
bnoordhuis Jun 28, 2016
dbe4b58
src: lint v8abbr.h
bnoordhuis Jun 28, 2016
9a6439a
tools: fix -Wunused-variable warning
bnoordhuis Jun 28, 2016
f8d3f6f
src: remove obsolete NOLINT comments
bnoordhuis Jun 28, 2016
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
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -671,18 +671,12 @@ jslint-ci:
tools/eslint-rules tools/jslint.js

CPPLINT_EXCLUDE ?=
CPPLINT_EXCLUDE += src/node_lttng.cc
CPPLINT_EXCLUDE += src/node_root_certs.h
CPPLINT_EXCLUDE += src/node_lttng_tp.h
CPPLINT_EXCLUDE += src/node_win32_perfctr_provider.cc
CPPLINT_EXCLUDE += src/queue.h
CPPLINT_EXCLUDE += src/tree.h
CPPLINT_EXCLUDE += src/v8abbr.h
CPPLINT_EXCLUDE += $(wildcard test/addons/??_*/*.cc test/addons/??_*/*.h)

CPPLINT_FILES = $(filter-out $(CPPLINT_EXCLUDE), $(wildcard \
deps/debugger-agent/include/* \
deps/debugger-agent/src/* \
src/*.c \
src/*.cc \
src/*.h \
Expand Down
10 changes: 5 additions & 5 deletions src/async-wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ class RetainedAsyncInfo: public RetainedObjectInfo {
public:
explicit RetainedAsyncInfo(uint16_t class_id, AsyncWrap* wrap);

virtual void Dispose() override;
virtual bool IsEquivalent(RetainedObjectInfo* other) override;
virtual intptr_t GetHash() override;
virtual const char* GetLabel() override;
virtual intptr_t GetSizeInBytes() override;
void Dispose() override;
bool IsEquivalent(RetainedObjectInfo* other) override;
intptr_t GetHash() override;
const char* GetLabel() override;
intptr_t GetSizeInBytes() override;

private:
const char* label_;
Expand Down
6 changes: 3 additions & 3 deletions src/cares_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class QueryWrap : public AsyncWrap {
req_wrap_obj->Set(env->domain_string(), env->domain_array()->Get(0));
}

virtual ~QueryWrap() override {
~QueryWrap() override {
CHECK_EQ(false, persistent().IsEmpty());
ClearWrap(object());
persistent().Reset();
Expand Down Expand Up @@ -371,11 +371,11 @@ class QueryWrap : public AsyncWrap {
// Subclasses should implement the appropriate Parse method.
virtual void Parse(unsigned char* buf, int len) {
UNREACHABLE();
};
}

virtual void Parse(struct hostent* host) {
UNREACHABLE();
};
}
};


Expand Down
2 changes: 1 addition & 1 deletion src/fs_event_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FSEventWrap: public HandleWrap {

private:
FSEventWrap(Environment* env, Local<Object> object);
virtual ~FSEventWrap() override;
~FSEventWrap() override;

static void OnEvent(uv_fs_event_t* handle, const char* filename, int events,
int status);
Expand Down
2 changes: 1 addition & 1 deletion src/handle_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class HandleWrap : public AsyncWrap {
uv_handle_t* handle,
AsyncWrap::ProviderType provider,
AsyncWrap* parent = nullptr);
virtual ~HandleWrap() override;
~HandleWrap() override;

private:
friend class Environment;
Expand Down
19 changes: 8 additions & 11 deletions src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,18 +240,15 @@ class ChannelImpl final : public blink::protocol::FrontendChannel {
explicit ChannelImpl(AgentImpl* agent): agent_(agent) {}
virtual ~ChannelImpl() {}
private:
virtual void sendProtocolResponse(int callId,
const String16& message)
override {
void sendProtocolResponse(int callId, const String16& message) override {
sendMessageToFrontend(message);
}

virtual void sendProtocolNotification(
const String16& message) override {
void sendProtocolNotification(const String16& message) override {
sendMessageToFrontend(message);
}

virtual void flushProtocolNotifications() override { }
void flushProtocolNotifications() override { }

void sendMessageToFrontend(const String16& message) {
agent_->Write(message.utf8());
Expand Down Expand Up @@ -575,23 +572,23 @@ Agent::~Agent() {

void Agent::Start(v8::Platform* platform, int port, bool wait) {
impl->Start(platform, port, wait);
};
}

void Agent::Stop() {
impl->Stop();
};
}

bool Agent::IsStarted() {
return impl->IsStarted();
};
}

bool Agent::IsConnected() {
return impl->IsConnected();
};
}

void Agent::WaitForDisconnect() {
impl->WaitForDisconnect();
};
}

} // namespace inspector
} // namespace node
4 changes: 1 addition & 3 deletions src/node_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1248,9 +1248,7 @@ void Swap64(const FunctionCallbackInfo<Value>& args) {
std::swap(ts_obj_data[i], ts_obj_data[i + 7]);
std::swap(ts_obj_data[i + 1], ts_obj_data[i + 6]);
std::swap(ts_obj_data[i + 2], ts_obj_data[i + 5]);
// NOLINT added because current cpplint.py is old and doesn't know that
// std::swap() now lives in <utility> instead of <algorithm>.
std::swap(ts_obj_data[i + 3], ts_obj_data[i + 4]); // NOLINT
std::swap(ts_obj_data[i + 3], ts_obj_data[i + 4]);
}
}

Expand Down
17 changes: 9 additions & 8 deletions src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ class ContextifyScript : public BaseObject {

// Do the eval within this context
Environment* env = Environment::GetCurrent(args);
EvalMachine(env, timeout, display_errors, break_on_sigint, args, try_catch);
EvalMachine(env, timeout, display_errors, break_on_sigint, args,
&try_catch);
}

// args: sandbox, [options]
Expand Down Expand Up @@ -610,7 +611,7 @@ class ContextifyScript : public BaseObject {
display_errors,
break_on_sigint,
args,
try_catch)) {
&try_catch)) {
contextify_context->CopyProperties();
}

Expand Down Expand Up @@ -821,7 +822,7 @@ class ContextifyScript : public BaseObject {
const bool display_errors,
const bool break_on_sigint,
const FunctionCallbackInfo<Value>& args,
TryCatch& try_catch) {
TryCatch* try_catch) {
if (!ContextifyScript::InstanceOf(env, args.Holder())) {
env->ThrowTypeError(
"Script methods can only be called on script instances.");
Expand Down Expand Up @@ -855,8 +856,8 @@ class ContextifyScript : public BaseObject {
result = script->Run();
}

if (try_catch.HasCaught()) {
if (try_catch.HasTerminated())
if (try_catch->HasCaught()) {
if (try_catch->HasTerminated())
env->isolate()->CancelTerminateExecution();

// It is possible that execution was terminated by another timeout in
Expand All @@ -873,17 +874,17 @@ class ContextifyScript : public BaseObject {
// letting try_catch catch it.
// If execution has been terminated, but not by one of the watchdogs from
// this invocation, this will re-throw a `null` value.
try_catch.ReThrow();
try_catch->ReThrow();

return false;
}

if (result.IsEmpty()) {
// Error occurred during execution of the script.
if (display_errors) {
DecorateErrorStack(env, try_catch);
DecorateErrorStack(env, *try_catch);
}
try_catch.ReThrow();
try_catch->ReThrow();
return false;
}

Expand Down
Loading