Apply clang-format across the whole tree

Run clang-format (the repo's .clang-format: LLVM base, 120 cols, tabs,
Allman functions) over every source file so the tree is formatter-clean.
Whitespace only -- no behavior change; full x64 + x86 suites pass.

Also set SortIncludes: false in .clang-format. Windows include order is
load-bearing (windows.h must precede tlhelp32.h / mmreg.h / xinput.h /
dinput.h; winsock2.h must precede windows.h), and the default
alphabetical sort reorders tlhelp32.h ahead of windows.h -- a build
break. Leaving order alone keeps the manual, correct grouping.
This commit is contained in:
2026-07-12 11:52:53 +02:00
parent c684a15fb9
commit 30eccf749d
155 changed files with 3333 additions and 6171 deletions

View File

@@ -6,13 +6,11 @@
using namespace coop;
namespace
{
namespace {
int g_failures = 0;
void check(bool cond, const char* what)
{
if (!cond)
{
if (!cond) {
std::printf("FAIL: %s\n", what);
++g_failures;
}
@@ -83,8 +81,7 @@ int main()
check(map_host_to_game_client(in, gx, gy) && gx == 100 && gy == 100, "decorated: client interior");
}
if (g_failures == 0)
{
if (g_failures == 0) {
std::printf("PASS: mkb_map_test\n");
return 0;
}