Skip to content

Commit 8ec98cc

Browse files
committed
meta: fix .clang-format to work with later versions of clang-format
1 parent 765a433 commit 8ec98cc

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

firmware/.clang-format

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AlignAfterOpenBracket: AlwaysBreak
55
AlignConsecutiveAssignments: false
66
AlignConsecutiveDeclarations: false
77
AlignEscapedNewlinesLeft: false
8-
AlignOperands: true
8+
AlignOperands: true
99
AlignTrailingComments: true
1010
AllowAllParametersOfDeclarationOnNextLine: true
1111
AllowShortBlocksOnASingleLine: true
@@ -19,34 +19,32 @@ AlwaysBreakBeforeMultilineStrings: true
1919
BinPackArguments: false
2020
BinPackParameters: false
2121
BraceWrapping:
22-
AfterClass: false
23-
AfterControlStatement: false
24-
AfterEnum: false
25-
AfterFunction: false
26-
AfterNamespace: false
27-
AfterObjCDeclaration: false
28-
AfterStruct: false
29-
AfterUnion: false
30-
BeforeCatch: false
31-
BeforeElse: false
32-
IndentBraces: false
22+
AfterClass: false
23+
AfterControlStatement: false
24+
AfterEnum: false
25+
AfterFunction: false
26+
AfterNamespace: false
27+
AfterObjCDeclaration: false
28+
AfterStruct: false
29+
AfterUnion: false
30+
BeforeCatch: false
31+
BeforeElse: false
32+
IndentBraces: false
3333
BreakBeforeBinaryOperators: None
3434
BreakBeforeBraces: Attach
3535
BreakBeforeTernaryOperators: true
3636
BreakConstructorInitializersBeforeComma: false
37-
ColumnLimit: 120
37+
ColumnLimit: 120
3838
ConstructorInitializerAllOnOneLineOrOnePerLine: false
3939
ConstructorInitializerIndentWidth: 4
4040
ContinuationIndentWidth: 4
4141
Cpp11BracedListStyle: true
4242
DerivePointerAlignment: false
43-
DisableFormat: false
43+
DisableFormat: false
4444
IndentCaseLabels: true
45-
IndentWidth: 4
45+
IndentWidth: 4
4646
IndentWrappedFunctionNames: false
4747
KeepEmptyLinesAtTheStartOfBlocks: true
48-
MacroBlockBegin: ''
49-
MacroBlockEnd: ''
5048
MaxEmptyLinesToKeep: 1
5149
NamespaceIndentation: None
5250
PenaltyBreakBeforeFirstCallParameter: 19
@@ -56,20 +54,19 @@ PenaltyBreakString: 1000
5654
PenaltyExcessCharacter: 1000000
5755
PenaltyReturnTypeOnItsOwnLine: 60
5856
PointerAlignment: Left
59-
ReflowComments: true
60-
SortIncludes: true
57+
ReflowComments: true
58+
SortIncludes: true
6159
SpaceAfterCStyleCast: false
6260
SpaceBeforeAssignmentOperators: true
6361
SpaceBeforeParens: ControlStatements
6462
SpaceInEmptyParentheses: false
6563
SpacesBeforeTrailingComments: 2
66-
SpacesInAngles: false
64+
SpacesInAngles: false
6765
SpacesInContainerLiterals: true
6866
SpacesInCStyleCastParentheses: false
6967
SpacesInParentheses: false
7068
SpacesInSquareBrackets: false
71-
TabWidth: 4
72-
UseTab: Never
69+
TabWidth: 4
70+
UseTab: Never
7371
MacroBlockBegin: "^IF_WAGGLED$|_BEGIN$"
7472
MacroBlockEnd: "_END$"
75-
...

0 commit comments

Comments
 (0)