From cc5013ec6f65caa92c3ae1f9cb2c1d7094030af8 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 3 Aug 2022 15:30:35 +0000 Subject: [PATCH] Run clang-format on project --- src/AST/UnaryOpNode.cpp | 3 +-- src/Parser.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AST/UnaryOpNode.cpp b/src/AST/UnaryOpNode.cpp index 15f3e0c..1a0b67e 100644 --- a/src/AST/UnaryOpNode.cpp +++ b/src/AST/UnaryOpNode.cpp @@ -1,7 +1,6 @@ #include "UnaryOpNode.h" -UnaryOpNode::UnaryOpNode(std::shared_ptr operand) - : operand(operand), ExprNode() +UnaryOpNode::UnaryOpNode(std::shared_ptr operand) : operand(operand), ExprNode() { } diff --git a/src/Parser.cpp b/src/Parser.cpp index 01ca4d9..05bba80 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -19,7 +19,7 @@ std::shared_ptr Parser::parse() if (result.is_error()) result.ethrow(); if (current_token->tk_type != TT_EOF) { - Err("expected *, /, + or -",current_token).ethrow(); + Err("expected *, /, + or -", current_token).ethrow(); } return result.get(); }