Skip to content

Commit 90e101b

Browse files
committed
Updated formatting style
1 parent 32d9467 commit 90e101b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.clang-format

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Language: Cpp
33
# BasedOnStyle: LLVM
44
AccessModifierOffset: -1
5-
AlignAfterOpenBracket: Align
5+
AlignAfterOpenBracket: AlwaysBreak
66
AlignConsecutiveMacros: false
77
AlignConsecutiveAssignments: false
88
AlignConsecutiveDeclarations: false
@@ -13,7 +13,7 @@ AllowAllArgumentsOnNextLine: true
1313
AllowAllConstructorInitializersOnNextLine: true
1414
AllowAllParametersOfDeclarationOnNextLine: true
1515
AllowShortBlocksOnASingleLine: Never
16-
AllowShortCaseLabelsOnASingleLine: false
16+
AllowShortCaseLabelsOnASingleLine: true
1717
AllowShortFunctionsOnASingleLine: All
1818
AllowShortLambdasOnASingleLine: All
1919
AllowShortIfStatementsOnASingleLine: Never
@@ -22,8 +22,8 @@ AlwaysBreakAfterDefinitionReturnType: None
2222
AlwaysBreakAfterReturnType: None
2323
AlwaysBreakBeforeMultilineStrings: false
2424
AlwaysBreakTemplateDeclarations: Yes
25-
BinPackArguments: true
26-
BinPackParameters: true
25+
BinPackArguments: false
26+
BinPackParameters: false
2727
BraceWrapping:
2828
AfterCaseLabel: false
2929
AfterClass: false
@@ -41,13 +41,12 @@ BraceWrapping:
4141
SplitEmptyFunction: true
4242
SplitEmptyRecord: true
4343
SplitEmptyNamespace: true
44-
BreakBeforeBinaryOperators: None
44+
BreakBeforeBinaryOperators: NonAssignment
4545
BreakBeforeBraces: Attach
4646
BreakBeforeInheritanceComma: false
47-
BreakInheritanceList: BeforeColon
47+
BreakInheritanceList: BeforeComma
4848
BreakBeforeTernaryOperators: true
49-
BreakConstructorInitializersBeforeComma: false
50-
BreakConstructorInitializers: BeforeColon
49+
BreakConstructorInitializers: BeforeComma
5150
BreakAfterJavaFieldAnnotations: false
5251
BreakStringLiterals: true
5352
ColumnLimit: 80
@@ -79,7 +78,7 @@ IncludeCategories:
7978
SortPriority: 0
8079
IncludeIsMainRegex: '(Test)?$'
8180
IncludeIsMainSourceRegex: ''
82-
IndentCaseLabels: false
81+
IndentCaseLabels: true
8382
IndentGotoLabels: true
8483
IndentPPDirectives: None
8584
IndentWidth: 4
@@ -111,7 +110,7 @@ SpaceAfterCStyleCast: false
111110
SpaceAfterLogicalNot: false
112111
SpaceAfterTemplateKeyword: true
113112
SpaceBeforeAssignmentOperators: true
114-
SpaceBeforeCpp11BracedList: false
113+
SpaceBeforeCpp11BracedList: true
115114
SpaceBeforeCtorInitializerColon: true
116115
SpaceBeforeInheritanceColon: true
117116
SpaceBeforeParens: ControlStatements

0 commit comments

Comments
 (0)