Run clang-format

This commit is contained in:
Rangi42
2024-08-27 01:49:05 -04:00
parent 3a5ff35928
commit 26fcff831d
8 changed files with 27 additions and 23 deletions

View File

@@ -72,7 +72,7 @@ void charmap_New(std::string const &name, std::string const *baseName) {
Charmap &charmap = charmapList.emplace_back();
if (baseIdx != (size_t)-1) {
charmap.nodes = charmapList[baseIdx].nodes; // Copies `charmapList[baseIdx].nodes`
charmap.nodes = charmapList[baseIdx].nodes; // Copies `charmapList[baseIdx].nodes`
charmap.mappings = charmapList[baseIdx].mappings; // Copies `charmapList[baseIdx].mappings`
} else {
charmap.nodes.emplace_back(); // Zero-init the root node

View File

@@ -264,7 +264,7 @@ int main(int argc, char *argv[]) {
: !strcasecmp(feature, "equs") ? STATE_EQUS
: !strcasecmp(feature, "char") ? STATE_CHAR
: !strcasecmp(feature, "macro") ? STATE_MACRO
: NB_STATE_FEATURES;
: NB_STATE_FEATURES;
if (value == NB_STATE_FEATURES) {
errx("Invalid feature for option 's': \"%s\"", feature);
} else if (std::find(RANGE(features), value) != features.end()) {

View File

@@ -76,11 +76,11 @@ void sect_CheckSizes() {
for (Section const &sect : sectionList) {
if (uint32_t maxSize = sectionTypeInfo[sect.type].size; sect.size > maxSize)
error(
"Section '%s' grew too big (max size = 0x%" PRIX32 " bytes, reached 0x%" PRIX32
").\n",
sect.name.c_str(),
maxSize,
sect.size
"Section '%s' grew too big (max size = 0x%" PRIX32 " bytes, reached 0x%" PRIX32
").\n",
sect.name.c_str(),
maxSize,
sect.size
);
}
}
@@ -837,8 +837,7 @@ void sect_BinaryFile(std::string const &name, int32_t startPos) {
while (startPos--) {
if (fgetc(file) == EOF) {
error(
"Specified start position is greater than length of file '%s'\n",
name.c_str()
"Specified start position is greater than length of file '%s'\n", name.c_str()
);
return;
}
@@ -908,8 +907,7 @@ void sect_BinaryFileSlice(std::string const &name, int32_t startPos, int32_t len
while (startPos--) {
if (fgetc(file) == EOF) {
error(
"Specified start position is greater than length of file '%s'\n",
name.c_str()
"Specified start position is greater than length of file '%s'\n", name.c_str()
);
return;
}