From 8037b9e10a2081dddf4cac4eff6fd18a1b8051d9 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Wed, 25 Sep 2024 13:15:58 -0400 Subject: [PATCH] Run clang-format --- src/asm/format.cpp | 3 ++- src/asm/rpn.cpp | 4 ++-- src/asm/symbol.cpp | 2 +- src/gfx/reverse.cpp | 4 +++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/asm/format.cpp b/src/asm/format.cpp index 4fc04493..4e12c4f8 100644 --- a/src/asm/format.cpp +++ b/src/asm/format.cpp @@ -186,7 +186,8 @@ void FormatSpec::appendNumber(std::string &str, uint32_t value) const { useExact = true; } - if (useType != 'X' && useType != 'x' && useType != 'b' && useType != 'o' && useType != 'f' && useExact) + if (useType != 'X' && useType != 'x' && useType != 'b' && useType != 'o' && useType != 'f' + && useExact) error("Formatting type '%c' with exact flag '#'\n", useType); if (useType != 'f' && hasFrac) error("Formatting type '%c' with fractional width\n", useType); diff --git a/src/asm/rpn.cpp b/src/asm/rpn.cpp index a9296958..827769a7 100644 --- a/src/asm/rpn.cpp +++ b/src/asm/rpn.cpp @@ -120,8 +120,8 @@ void Expression::makeBankSymbol(std::string const &symName) { data = (int32_t)sym->getSection()->bank; } else { data = sym_IsPurgedScoped(symName) - ? "\""s + symName + "\"'s bank is not known; it was purged" - : "\""s + symName + "\"'s bank is not known"; + ? "\""s + symName + "\"'s bank is not known; it was purged" + : "\""s + symName + "\"'s bank is not known"; size_t nameLen = sym->name.length() + 1; // Room for NUL! diff --git a/src/asm/symbol.cpp b/src/asm/symbol.cpp index 28144bd9..9b946f9c 100644 --- a/src/asm/symbol.cpp +++ b/src/asm/symbol.cpp @@ -23,7 +23,7 @@ std::unordered_map symbols; std::unordered_set purgedSymbols; static Symbol const *globalScope = nullptr; // Current section's global label scope -static Symbol const *localScope = nullptr; // Current section's local label scope +static Symbol const *localScope = nullptr; // Current section's local label scope static Symbol *PCSymbol; static Symbol *NARGSymbol; static Symbol *globalScopeSymbol; diff --git a/src/gfx/reverse.cpp b/src/gfx/reverse.cpp index a622ba4c..a15387c2 100644 --- a/src/gfx/reverse.cpp +++ b/src/gfx/reverse.cpp @@ -389,7 +389,9 @@ void reverse() { palmap = readInto(options.palmap); if (palmap->size() != mapSize) { fatal( - "Palette map size (%zu tiles) doesn't match image size (%zu)", palmap->size(), mapSize + "Palette map size (%zu tiles) doesn't match image size (%zu)", + palmap->size(), + mapSize ); } }