Skip to content

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

Merged
nick2781 merged 1 commit into
mainfrom
style/class-brace-placement
Nov 10, 2026
Merged

nick2781 merged 1 commit 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 consistently for declarations and control statements, including classes, structs, enums, unions, functions, namespaces and else/catch. Keep multiline enum bodies, existing short-body rules and InsertBraces.

Remove the obsolete custom wrapping block, update AGENTS guidance, reformat first-party sources, and extend the existing formatting-runner regression with class/inheritance/record/control examples. The previous policy fails this assertion; the new policy passes. Vendored, generated and result files are untouched. No API or runtime behavior change is intended.

Local validation at ce0f8b9cb1851bc369374ad39fc3737733a67a45: clang-format 18.1.8 formatting-runner checks and the full 218-file formatting check passed, including after commit; git diff --check passed. All 191 reformatted C++ sources retain their non-whitespace content. 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 79afb5e Nov 10, 2026
10 checks passed
@nick2781
nick2781 deleted the style/class-brace-placement branch November 10, 2026 11:20
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