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

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -1955,7 +1955,7 @@ void ScopeNode::dump(int indent) const
void BinaryExpression::dump(int indent) const
{
const char* op_string = nullptr;
char const* op_string = nullptr;
switch (m_op) {
case BinaryOp::Addition:
op_string = "+";
@ -2035,7 +2035,7 @@ void BinaryExpression::dump(int indent) const
void LogicalExpression::dump(int indent) const
{
const char* op_string = nullptr;
char const* op_string = nullptr;
switch (m_op) {
case LogicalOp::And:
op_string = "&&";
@ -2058,7 +2058,7 @@ void LogicalExpression::dump(int indent) const
void UnaryExpression::dump(int indent) const
{
const char* op_string = nullptr;
char const* op_string = nullptr;
switch (m_op) {
case UnaryOp::BitwiseNot:
op_string = "~";
@ -2153,7 +2153,7 @@ void ClassMethod::dump(int indent) const
outln("(Key)");
m_key->dump(indent + 1);
const char* kind_string = nullptr;
char const* kind_string = nullptr;
switch (m_kind) {
case Kind::Method:
kind_string = "Method";
@ -2346,7 +2346,7 @@ void FunctionDeclaration::dump(int indent) const
FunctionNode::dump(indent, class_name());
}
ThrowCompletionOr<void> FunctionDeclaration::for_each_bound_name(ThrowCompletionOrVoidCallback<const FlyString&>&& callback) const
ThrowCompletionOr<void> FunctionDeclaration::for_each_bound_name(ThrowCompletionOrVoidCallback<FlyString const&>&& callback) const
{
if (name().is_empty())
return {};
@ -2757,7 +2757,7 @@ Completion UpdateExpression::execute(Interpreter& interpreter, GlobalObject& glo
void AssignmentExpression::dump(int indent) const
{
const char* op_string = nullptr;
char const* op_string = nullptr;
switch (m_op) {
case AssignmentOp::Assignment:
op_string = "=";
@ -2818,7 +2818,7 @@ void AssignmentExpression::dump(int indent) const
void UpdateExpression::dump(int indent) const
{
const char* op_string = nullptr;
char const* op_string = nullptr;
switch (m_op) {
case UpdateOp::Increment:
op_string = "++";
@ -2903,7 +2903,7 @@ ThrowCompletionOr<void> VariableDeclaration::for_each_bound_name(ThrowCompletion
void VariableDeclaration::dump(int indent) const
{
const char* declaration_kind_string = nullptr;
char const* declaration_kind_string = nullptr;
switch (m_declaration_kind) {
case DeclarationKind::Let:
declaration_kind_string = "Let";
@ -2927,7 +2927,7 @@ void VariableDeclaration::dump(int indent) const
void VariableDeclarator::dump(int indent) const
{
ASTNode::dump(indent);
m_target.visit([indent](const auto& value) { value->dump(indent + 1); });
m_target.visit([indent](auto const& value) { value->dump(indent + 1); });
if (m_init)
m_init->dump(indent + 1);
}