1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:07:34 +00:00

JSSpecCompiler: Make clang-tidy happier, no functional changes

This commit is contained in:
Dan Klishch 2023-08-18 21:54:58 -04:00 committed by Andrew Kaster
parent f0a4baabc7
commit ed5ef4da6d

View file

@ -151,8 +151,8 @@ class BinaryOperation : public Node {
public: public:
BinaryOperation(BinaryOperator operation, Tree left, Tree right) BinaryOperation(BinaryOperator operation, Tree left, Tree right)
: m_operation(operation) : m_operation(operation)
, m_left(left) , m_left(move(left))
, m_right(right) , m_right(move(right))
{ {
} }
@ -170,7 +170,7 @@ class UnaryOperation : public Node {
public: public:
UnaryOperation(UnaryOperator operation, Tree operand) UnaryOperation(UnaryOperator operation, Tree operand)
: m_operation(operation) : m_operation(operation)
, m_operand(operand) , m_operand(move(operand))
{ {
} }
@ -186,7 +186,7 @@ protected:
class IsOneOfOperation : public Node { class IsOneOfOperation : public Node {
public: public:
IsOneOfOperation(Tree operand, Vector<Tree>&& compare_values) IsOneOfOperation(Tree operand, Vector<Tree>&& compare_values)
: m_operand(operand) : m_operand(move(operand))
, m_compare_values(move(compare_values)) , m_compare_values(move(compare_values))
{ {
} }
@ -216,7 +216,7 @@ protected:
class ReturnExpression : public Node { class ReturnExpression : public Node {
public: public:
ReturnExpression(Tree return_value) ReturnExpression(Tree return_value)
: m_return_value(return_value) : m_return_value(move(return_value))
{ {
} }
@ -231,7 +231,7 @@ protected:
class AssertExpression : public Node { class AssertExpression : public Node {
public: public:
AssertExpression(Tree condition) AssertExpression(Tree condition)
: m_condition(condition) : m_condition(move(condition))
{ {
} }
@ -246,8 +246,8 @@ protected:
class IfBranch : public Node { class IfBranch : public Node {
public: public:
IfBranch(Tree condition, Tree branch) IfBranch(Tree condition, Tree branch)
: m_condition(condition) : m_condition(move(condition))
, m_branch(branch) , m_branch(move(branch))
{ {
} }
@ -263,8 +263,8 @@ protected:
class ElseIfBranch : public Node { class ElseIfBranch : public Node {
public: public:
ElseIfBranch(NullableTree condition, Tree branch) ElseIfBranch(NullableTree condition, Tree branch)
: m_condition(condition) : m_condition(move(condition))
, m_branch(branch) , m_branch(move(branch))
{ {
} }
@ -282,7 +282,7 @@ public:
IfElseIfChain(Vector<Tree>&& conditions, Vector<Tree>&& branches, NullableTree else_branch) IfElseIfChain(Vector<Tree>&& conditions, Vector<Tree>&& branches, NullableTree else_branch)
: m_conditions(move(conditions)) : m_conditions(move(conditions))
, m_branches(move(branches)) , m_branches(move(branches))
, m_else_branch(else_branch) , m_else_branch(move(else_branch))
{ {
VERIFY(m_branches.size() == m_conditions.size()); VERIFY(m_branches.size() == m_conditions.size());
} }
@ -290,7 +290,7 @@ public:
Vector<NodeSubtreePointer> subtrees() override; Vector<NodeSubtreePointer> subtrees() override;
// Excluding else branch, if one is present // Excluding else branch, if one is present
size_t branches_count() { return m_branches.size(); } size_t branches_count() const { return m_branches.size(); }
Vector<Tree> m_conditions; Vector<Tree> m_conditions;
Vector<Tree> m_branches; Vector<Tree> m_branches;
@ -323,7 +323,7 @@ public:
}; };
RecordDirectListInitialization(Tree type_reference, Vector<Argument>&& arguments) RecordDirectListInitialization(Tree type_reference, Vector<Argument>&& arguments)
: m_type_reference(type_reference) : m_type_reference(move(type_reference))
, m_arguments(move(arguments)) , m_arguments(move(arguments))
{ {
} }
@ -340,7 +340,7 @@ protected:
class FunctionCall : public Node { class FunctionCall : public Node {
public: public:
FunctionCall(Tree name, Vector<Tree>&& arguments) FunctionCall(Tree name, Vector<Tree>&& arguments)
: m_name(name) : m_name(move(name))
, m_arguments(move(arguments)) , m_arguments(move(arguments))
{ {
} }