Skip to content

Commit 9dde931

Browse files
authored
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.
1 parent 75bf657 commit 9dde931

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.clang-format

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ AllowShortFunctionsOnASingleLine: Empty
2323
BreakBeforeBraces: Custom
2424
# Control of individual brace wrapping cases.
2525
BraceWrapping:
26+
# Wrap brackets inside of a case
27+
AfterCaseLabel: true
2628
# Wrap class definition.
2729
AfterClass: true
2830
# Wrap control statements

0 commit comments

Comments
 (0)