Run clang-format to fix some inconsistent style

This commit is contained in:
Rangi42
2024-03-07 10:22:40 -05:00
parent 84bedc7bbe
commit bf45ebb178
4 changed files with 9 additions and 8 deletions

View File

@@ -9,10 +9,10 @@
#include <variant> #include <variant>
#include <vector> #include <vector>
#include "asm/symbol.hpp" // MAXSYMLEN
#include "platform.hpp" // SSIZE_MAX #include "platform.hpp" // SSIZE_MAX
#include "asm/symbol.hpp" // MAXSYMLEN
#define MAXSTRLEN 255 #define MAXSTRLEN 255
#define LEXER_BUF_SIZE 42 // TODO: determine a sane value for this #define LEXER_BUF_SIZE 42 // TODO: determine a sane value for this

View File

@@ -353,7 +353,6 @@ void rpn_BinaryOp(
// First, check if the expression is known // First, check if the expression is known
expr.isKnown = src1.isKnown && src2.isKnown; expr.isKnown = src1.isKnown && src2.isKnown;
if (expr.isKnown) { if (expr.isKnown) {
// If both expressions are known, just compute the value // If both expressions are known, just compute the value
uint32_t uleft = src1.val, uright = src2.val; uint32_t uleft = src1.val, uright = src2.val;

View File

@@ -249,7 +249,9 @@ static void mergeSections(
unsigned int nbSectErrors = 0; unsigned int nbSectErrors = 0;
if (type != sect.type) if (type != sect.type)
sectError("Section already exists but with type %s\n", sectionTypeInfo[sect.type].name.c_str()); sectError(
"Section already exists but with type %s\n", sectionTypeInfo[sect.type].name.c_str()
);
if (sect.modifier != mod) { if (sect.modifier != mod) {
sectError("Section already declared as %s section\n", sectionModNames[sect.modifier]); sectError("Section already declared as %s section\n", sectionModNames[sect.modifier]);