Skip to content

Commit 3fee1ed

Browse files
committed
Use Attach brace style in .clang-format
Update .clang-format to set BreakBeforeBraces from Allman to Attach, switching opening brace placement to the same line (attached/K&R style). This enforces the project's preferred brace formatting and reduces diffs caused by brace placement changes.
1 parent 5307b50 commit 3fee1ed

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)