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.
25 lines
666 B
YAML
25 lines
666 B
YAML
---
|
|
BasedOnStyle: LLVM
|
|
ColumnLimit: 120
|
|
IndentWidth: 4
|
|
TabWidth: 4
|
|
UseTab: ForIndentation
|
|
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
AfterFunction: true
|
|
SplitEmptyRecord: false
|
|
|
|
AlignEscapedNewlines: DontAlign
|
|
AllowShortFunctionsOnASingleLine: Inline
|
|
AlwaysBreakTemplateDeclarations: true
|
|
BreakBeforeBinaryOperators: NonAssignment
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
PointerAlignment: Left
|
|
|
|
# Windows include order is load-bearing (windows.h must precede tlhelp32.h / mmreg.h /
|
|
# xinput.h / dinput.h; winsock2.h must precede windows.h), so leave include order alone
|
|
# rather than let an alphabetical sort break the build.
|
|
SortIncludes: false
|
|
...
|