mirror of
https://github.com/json-c/json-c.git
synced 2026-03-20 13:39:06 +08:00
Add AfterCaseLabel to .clang-format
This is to fix the behavior that might've changed between older versions of clang-format, I'm not sure. Version 10 tries to put the bracket on the same line as case without this.
This commit is contained in:
@@ -23,6 +23,8 @@ AllowShortFunctionsOnASingleLine: Empty
|
||||
BreakBeforeBraces: Custom
|
||||
# Control of individual brace wrapping cases.
|
||||
BraceWrapping:
|
||||
# Wrap brackets inside of a case
|
||||
AfterCaseLabel: true
|
||||
# Wrap class definition.
|
||||
AfterClass: true
|
||||
# Wrap control statements
|
||||
|
||||
Reference in New Issue
Block a user