Commit f5a93574 authored by Dan Elphick's avatar Dan Elphick Committed by Commit Bot

[cleanup] Fix constructor lint errors

Mark a couple of constructors as explicit and use the default
constructor instead of defining an empty body for PreParserSourceRange.

Bug: v8:9396
Change-Id: I60f891245543852d8250105ba7b89620c15204bf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1706052
Auto-Submit: Dan Elphick <delphick@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62766}
parent 2ca82f21
......@@ -1140,7 +1140,7 @@ class WorkerThreadRuntimeCallStats final {
// when it is destroyed.
class WorkerThreadRuntimeCallStatsScope final {
public:
WorkerThreadRuntimeCallStatsScope(
explicit WorkerThreadRuntimeCallStatsScope(
WorkerThreadRuntimeCallStats* off_thread_stats);
~WorkerThreadRuntimeCallStatsScope();
......
......@@ -396,8 +396,8 @@ class ExpressionParsingScope : public ExpressionScope<Types> {
using ExpressionScopeT = ExpressionScope<Types>;
using ScopeType = typename ExpressionScopeT::ScopeType;
ExpressionParsingScope(ParserT* parser,
ScopeType type = ExpressionScopeT::kExpression)
explicit ExpressionParsingScope(
ParserT* parser, ScopeType type = ExpressionScopeT::kExpression)
: ExpressionScopeT(parser, type),
variable_list_(parser->variable_buffer()),
has_async_arrow_in_scope_chain_(
......
......@@ -846,7 +846,7 @@ class PreParserFuncNameInferrer {
class PreParserSourceRange {
public:
PreParserSourceRange() {}
PreParserSourceRange() = default;
PreParserSourceRange(int start, int end) {}
static PreParserSourceRange Empty() { return PreParserSourceRange(); }
static PreParserSourceRange OpenEnded(int32_t start) { return Empty(); }
......
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