mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Run clang-format
This commit is contained in:
@@ -186,7 +186,8 @@ void FormatSpec::appendNumber(std::string &str, uint32_t value) const {
|
|||||||
useExact = true;
|
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);
|
error("Formatting type '%c' with exact flag '#'\n", useType);
|
||||||
if (useType != 'f' && hasFrac)
|
if (useType != 'f' && hasFrac)
|
||||||
error("Formatting type '%c' with fractional width\n", useType);
|
error("Formatting type '%c' with fractional width\n", useType);
|
||||||
|
|||||||
@@ -120,8 +120,8 @@ void Expression::makeBankSymbol(std::string const &symName) {
|
|||||||
data = (int32_t)sym->getSection()->bank;
|
data = (int32_t)sym->getSection()->bank;
|
||||||
} else {
|
} else {
|
||||||
data = sym_IsPurgedScoped(symName)
|
data = sym_IsPurgedScoped(symName)
|
||||||
? "\""s + symName + "\"'s bank is not known; it was purged"
|
? "\""s + symName + "\"'s bank is not known; it was purged"
|
||||||
: "\""s + symName + "\"'s bank is not known";
|
: "\""s + symName + "\"'s bank is not known";
|
||||||
|
|
||||||
size_t nameLen = sym->name.length() + 1; // Room for NUL!
|
size_t nameLen = sym->name.length() + 1; // Room for NUL!
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ std::unordered_map<std::string, Symbol> symbols;
|
|||||||
std::unordered_set<std::string> purgedSymbols;
|
std::unordered_set<std::string> purgedSymbols;
|
||||||
|
|
||||||
static Symbol const *globalScope = nullptr; // Current section's global label scope
|
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 *PCSymbol;
|
||||||
static Symbol *NARGSymbol;
|
static Symbol *NARGSymbol;
|
||||||
static Symbol *globalScopeSymbol;
|
static Symbol *globalScopeSymbol;
|
||||||
|
|||||||
@@ -389,7 +389,9 @@ void reverse() {
|
|||||||
palmap = readInto(options.palmap);
|
palmap = readInto(options.palmap);
|
||||||
if (palmap->size() != mapSize) {
|
if (palmap->size() != mapSize) {
|
||||||
fatal(
|
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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user