Fixup readability/braces lint warning.
This CL removes some trailing ;'s which aren't needed to enables the readability/braces warning. Bug: dawn:1339 Change-Id: I776267b4282b1345e6b4258d1aff3d7de9fecb8a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86210 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
69347de37b
commit
fd64b10b0d
|
@ -4,7 +4,6 @@ filter=-build/include_order
|
||||||
filter=-build/include_what_you_use
|
filter=-build/include_what_you_use
|
||||||
filter=-build/namespaces
|
filter=-build/namespaces
|
||||||
filter=-legal/copyright
|
filter=-legal/copyright
|
||||||
filter=-readability/braces
|
|
||||||
filter=-readability/casting
|
filter=-readability/casting
|
||||||
filter=-readability/inheritance
|
filter=-readability/inheritance
|
||||||
filter=-readability/namespace
|
filter=-readability/namespace
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace wgpu::binding {
|
||||||
// Calls AsyncRunner::Begin()
|
// Calls AsyncRunner::Begin()
|
||||||
inline AsyncTask(std::shared_ptr<AsyncRunner> runner) : runner_(std::move(runner)) {
|
inline AsyncTask(std::shared_ptr<AsyncRunner> runner) : runner_(std::move(runner)) {
|
||||||
runner_->Begin();
|
runner_->Begin();
|
||||||
};
|
}
|
||||||
|
|
||||||
// Destructor.
|
// Destructor.
|
||||||
// Calls AsyncRunner::End()
|
// Calls AsyncRunner::End()
|
||||||
|
|
|
@ -487,11 +487,11 @@ namespace wgpu::binding {
|
||||||
|
|
||||||
std::variant<std::string, interop::UndefinedType> GPUDevice::getLabel(Napi::Env) {
|
std::variant<std::string, interop::UndefinedType> GPUDevice::getLabel(Napi::Env) {
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
};
|
}
|
||||||
|
|
||||||
void GPUDevice::setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) {
|
void GPUDevice::setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) {
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
};
|
}
|
||||||
|
|
||||||
interop::Interface<interop::EventHandler> GPUDevice::getOnuncapturederror(Napi::Env) {
|
interop::Interface<interop::EventHandler> GPUDevice::getOnuncapturederror(Napi::Env) {
|
||||||
// TODO(dawn:1348): Implement support for the "unhandlederror" event.
|
// TODO(dawn:1348): Implement support for the "unhandlederror" event.
|
||||||
|
|
|
@ -31,6 +31,6 @@ namespace wgpu::binding {
|
||||||
void GPUTextureView::setLabel(Napi::Env,
|
void GPUTextureView::setLabel(Napi::Env,
|
||||||
std::variant<std::string, interop::UndefinedType> value) {
|
std::variant<std::string, interop::UndefinedType> value) {
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
};
|
}
|
||||||
|
|
||||||
} // namespace wgpu::binding
|
} // namespace wgpu::binding
|
||||||
|
|
|
@ -340,7 +340,7 @@ namespace wgpu::interop {
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
return Error("value is not a ArrayBuffer");
|
return Error("value is not a ArrayBuffer");
|
||||||
};
|
}
|
||||||
static inline Napi::Value ToJS(Napi::Env, ArrayBuffer value) {
|
static inline Napi::Value ToJS(Napi::Env, ArrayBuffer value) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -355,7 +355,7 @@ namespace wgpu::interop {
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
return Error("value is not a TypedArray");
|
return Error("value is not a TypedArray");
|
||||||
};
|
}
|
||||||
static inline Napi::Value ToJS(Napi::Env, ArrayBuffer value) {
|
static inline Napi::Value ToJS(Napi::Env, ArrayBuffer value) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -391,7 +391,7 @@ namespace wgpu::interop {
|
||||||
return Error("value is not a TypedArray of the correct element type");
|
return Error("value is not a TypedArray of the correct element type");
|
||||||
}
|
}
|
||||||
return Error("value is not a TypedArray");
|
return Error("value is not a TypedArray");
|
||||||
};
|
}
|
||||||
static inline Napi::Value ToJS(Napi::Env, ArrayBuffer value) {
|
static inline Napi::Value ToJS(Napi::Env, ArrayBuffer value) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue