mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Run clang-format 14 on everything
Later versions may need some proprties added or changed to not format closing braces weirdly.
This commit is contained in:
@@ -2175,8 +2175,7 @@ static Capture startCapture() {
|
|||||||
view && lexerState->expansions.empty()) {
|
view && lexerState->expansions.empty()) {
|
||||||
return {
|
return {
|
||||||
.lineNo = lineNo,
|
.lineNo = lineNo,
|
||||||
.span =
|
.span = {
|
||||||
{
|
|
||||||
.ptr = std::shared_ptr<char[]>(view->span.ptr, &view->span.ptr[view->offset]),
|
.ptr = std::shared_ptr<char[]>(view->span.ptr, &view->span.ptr[view->offset]),
|
||||||
.size = 0,
|
.size = 0,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -246,8 +246,8 @@ static void placeSection(Section §ion) {
|
|||||||
bankMem.insert(
|
bankMem.insert(
|
||||||
bankMem.begin() + spaceIdx + 1,
|
bankMem.begin() + spaceIdx + 1,
|
||||||
{.address = (uint16_t)(section.org + section.size),
|
{.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`
|
// **`freeSpace` cannot be reused from this point on**, because `bankMem.insert`
|
||||||
// invalidates all references to itself!
|
// invalidates all references to itself!
|
||||||
|
|||||||
Reference in New Issue
Block a user