Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
Expand All @@ -20,24 +21,8 @@ AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterCaseLabel: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: true
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
Expand Down
6 changes: 4 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ branch or worktree when the existing checkout contains uncommitted changes.
Call these dependencies, not backends. Preserve machine-readable identifiers
unless an explicit API or data-format migration is part of the task.
- Follow `.clang-format` and `scripts/format_spacing.sh`, using clang-format 18.
Keep function opening braces on the declaration line, expand short function
bodies, use braces for control statements and keep names in `snake_case`.
Attach opening braces to declarations and control statements, including classes,
structs, enums, unions and functions. Keep `else` and `catch` on the closing-brace
line, expand short function and enum bodies, use braces for control statements
and keep names in `snake_case`.
- Group includes as system, third-party, then project headers. Keep required
platform-header dependencies in a valid order, including Winsock 2 before
`windows.h` when both are needed. Separate include blocks, namespaces and
Expand Down
Loading
Loading