Skip to content

Commit f91735e

Browse files
committed
Update ClangFormat configuration values to 14.0.0 equivalents
The previous ClangFormat configuration was developed for use with ClangFormat 11.0.1. The version of ClangFormat now in use by Arduino tools is 14.0.0. Some of the configuration key type have been changed in the interim. These keys changed from a Boolean to an object data type, but an equivalent object value is available, which allows the value to be updated without any functional change to the output from the configuration.
1 parent 8797fa6 commit f91735e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

other/clang-format-configuration/.clang-format

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
---
33
AccessModifierOffset: -2
44
AlignAfterOpenBracket: Align
5-
AlignConsecutiveAssignments: false
6-
AlignConsecutiveBitFields: false
7-
AlignConsecutiveDeclarations: false
8-
AlignConsecutiveMacros: false
5+
AlignArrayOfStructures: None
6+
AlignConsecutiveAssignments: None
7+
AlignConsecutiveBitFields: None
8+
AlignConsecutiveDeclarations: None
9+
AlignConsecutiveMacros: None
910
AlignEscapedNewlines: DontAlign
1011
AlignOperands: Align
1112
AlignTrailingComments: true
@@ -113,7 +114,7 @@ PenaltyExcessCharacter: 1
113114
PenaltyReturnTypeOnItsOwnLine: 1
114115
PointerAlignment: Right
115116
ReflowComments: false
116-
SortIncludes: false
117+
SortIncludes: Never
117118
SortUsingDeclarations: false
118119
SpaceAfterCStyleCast: false
119120
SpaceAfterLogicalNot: false

0 commit comments

Comments
 (0)