Run clang-format

Fix some small style inconsistencies
This commit is contained in:
ISSOtm
2024-03-28 01:41:25 +01:00
parent d327138cd8
commit 20b7b591d4
9 changed files with 18 additions and 18 deletions

View File

@@ -246,8 +246,8 @@ static void placeSection(Section &section) {
bankMem.insert(
bankMem.begin() + spaceIdx + 1,
{.address = (uint16_t)(section.org + section.size),
.size =
(uint16_t)(freeSpace.address + freeSpace.size - section.org - section.size)}
.size = (uint16_t)(freeSpace.address + freeSpace.size - section.org - section.size)
}
);
// **`freeSpace` cannot be reused from this point on**, because `bankMem.insert`
// invalidates all references to itself!

View File

@@ -52,7 +52,7 @@ static SectionType typeMap[SECTTYPE_INVALID] = {
};
void out_AddSection(Section const &section) {
static const uint32_t maxNbBanks[SECTTYPE_INVALID] = {
static uint32_t const maxNbBanks[SECTTYPE_INVALID] = {
1, // SECTTYPE_WRAM0
2, // SECTTYPE_VRAM
UINT32_MAX, // SECTTYPE_ROMX

View File

@@ -9,9 +9,8 @@
#include <variant>
#include <vector>
#include "opmath.hpp"
#include "linkdefs.hpp"
#include "opmath.hpp"
#include "link/main.hpp"
#include "link/section.hpp"