Skip to content

Commit 2c92a35

Browse files
committed
Switch brace style to Attach in .clang-format
Change BreakBeforeBraces from Allman to Attach in .clang-format to use attached opening braces (K&R/1TBS style). This updates the project's formatting rules so braces are placed on the same line as the preceding statement, producing more compact code layout.
1 parent 71cb1f1 commit 2c92a35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ AllowShortFunctionsOnASingleLine: Inline
1414
AllowShortIfStatementsOnASingleLine: true
1515
AllowShortLoopsOnASingleLine: true
1616

17-
BreakBeforeBraces: Allman
17+
BreakBeforeBraces: Attach
1818

1919
DerivePointerAlignment: false
2020

0 commit comments

Comments
 (0)