Add more rules to .clang-format

This commit is contained in:
Rangi42
2025-01-27 19:08:15 -05:00
committed by Rangi
parent 01c9106b59
commit 25c9f8f383
17 changed files with 74 additions and 44 deletions

View File

@@ -113,7 +113,8 @@ void argErr(char flag, char const *fmt, ...) {
nbErrors++;
}
[[noreturn]] void fatal(FileStackNode const *where, uint32_t lineNo, char const *fmt, ...) {
[[noreturn]]
void fatal(FileStackNode const *where, uint32_t lineNo, char const *fmt, ...) {
va_list args;
va_start(args, fmt);
@@ -308,7 +309,8 @@ next: // Can't `continue` a `for` loop with this nontrivial iteration logic
}
}
[[noreturn]] void reportErrors() {
[[noreturn]]
void reportErrors() {
fprintf(
stderr, "Linking failed with %" PRIu32 " error%s\n", nbErrors, nbErrors == 1 ? "" : "s"
);