Skip to content

style(format): attach declaration and control braces - #294

Merged
nick2781 merged 2 commits into
mainfrom
style/class-brace-placement
Nov 10, 2026
Merged

nick2781 merged 2 commits into
mainfrom
style/class-brace-placement

Conversation

@nick2781

@nick2781 nick2781 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Use the standard clang-format Attach brace style for declarations and control statements, so classes, structs, enums, unions, functions, namespaces and control statements place the opening brace on the same line. Keep else/catch attached, multiline enum bodies, expanded short control statements and InsertBraces.

Remove the obsolete custom wrapping block, update AGENTS guidance, and reformat the selected first-party sources, including native Entity tools so the repository-wide check accepts the new policy. Preserve existing source file modes and excluded vendored/generated files. This changes formatting only; no API or runtime behavior change is intended.

Local validation at 8cea66956dfb348293fce3087dac8e24220988a0: clang-format 18.1.8 repository-wide check and a declaration/control/inheritance probe passed; git diff --check passed. The 489-source audit found only whitespace, four macro continuation reflows after C++ line splicing, and two automatic namespace comments. Hosted native/queue validation remains separate.

@nick2781
nick2781 enabled auto-merge November 10, 2026 10:18
@nick2781
nick2781 added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 24ee184 Nov 10, 2026
6 checks passed
@nick2781
nick2781 deleted the style/class-brace-placement branch November 10, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant