[webkit-changes] [WebKit/WebKit] 7be115: [clang-format]Update clang formatting settings to ...
Yulun Wu
noreply at github.com
Tue Jan 21 14:45:30 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7be11510d4004a90aece72a0d423b4700ed570de
https://github.com/WebKit/WebKit/commit/7be11510d4004a90aece72a0d423b4700ed570de
Author: Yulun Wu <yulun_wu at apple.com>
Date: 2025-01-21 (Tue, 21 Jan 2025)
Changed paths:
M .clang-format
Log Message:
-----------
[clang-format]Update clang formatting settings to insert space into { }.
https://bugs.webkit.org/show_bug.cgi?id=286304
<rdar://143321464>
Reviewed by Yusuke Suzuki and Darin Adler.
Per the style guide, empty braces should contain a space:
https://www.webkit.org/code-style-guidelines/
However, `webkit-patch format` collapses the whitespace between curly braces.
We should add the parameter
`SpaceInEmptyBlock : true`
to insert whitespace into empty curly braces.
Documentation:
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
Canonical link: https://commits.webkit.org/289207@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list