Commit 48c129ca authored by Florian Sattler's avatar Florian Sattler Committed by Commit Bot

[cleanup] Refactor ast to use default members.

Fixing clang-tidy warning.

Bug: v8:8015
Change-Id: If9a66df529dc5870f6d5146d9a83d22367ffdc59
Reviewed-on: https://chromium-review.googlesource.com/1224114Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Florian Sattler <sattlerf@google.com>
Cr-Commit-Position: refs/heads/master@{#55883}
parent 65e17f6c
...@@ -14,7 +14,7 @@ AstFunctionLiteralIdReindexer::AstFunctionLiteralIdReindexer(size_t stack_limit, ...@@ -14,7 +14,7 @@ AstFunctionLiteralIdReindexer::AstFunctionLiteralIdReindexer(size_t stack_limit,
int delta) int delta)
: AstTraversalVisitor(stack_limit), delta_(delta) {} : AstTraversalVisitor(stack_limit), delta_(delta) {}
AstFunctionLiteralIdReindexer::~AstFunctionLiteralIdReindexer() {} AstFunctionLiteralIdReindexer::~AstFunctionLiteralIdReindexer() = default;
void AstFunctionLiteralIdReindexer::Reindex(Expression* pattern) { void AstFunctionLiteralIdReindexer::Reindex(Expression* pattern) {
Visit(pattern); Visit(pattern);
......
...@@ -56,7 +56,7 @@ enum class SourceRangeKind { ...@@ -56,7 +56,7 @@ enum class SourceRangeKind {
class AstNodeSourceRanges : public ZoneObject { class AstNodeSourceRanges : public ZoneObject {
public: public:
virtual ~AstNodeSourceRanges() {} virtual ~AstNodeSourceRanges() = default;
virtual SourceRange GetRange(SourceRangeKind kind) = 0; virtual SourceRange GetRange(SourceRangeKind kind) = 0;
}; };
......
...@@ -31,7 +31,7 @@ CallPrinter::CallPrinter(Isolate* isolate, bool is_user_js) ...@@ -31,7 +31,7 @@ CallPrinter::CallPrinter(Isolate* isolate, bool is_user_js)
InitializeAstVisitor(isolate); InitializeAstVisitor(isolate);
} }
CallPrinter::~CallPrinter() {} CallPrinter::~CallPrinter() = default;
CallPrinter::ErrorHint CallPrinter::GetErrorHint() const { CallPrinter::ErrorHint CallPrinter::GetErrorHint() const {
if (is_call_error_) { if (is_call_error_) {
......
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