Skip to content

Commit 3f95ead

Browse files
committed
Add ShortNamespaceLines key to ClangFormat configuration
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. This configuration key was added in the interim. This key is only used when `FixNamespaceComments` is set to `true`. Since Arduino's configuration sets `FixNamespaceComments: false`, the value of `ShortNamespaceLines` doesn't have any direct effect, but the chosen value of `0` will provide the maximum possible level of consistency in custom user configurations that set `FixNamespaceComments: true`
1 parent 07c91d7 commit 3f95ead

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ ReferenceAlignment: Pointer
136136
ReflowComments: false
137137
RemoveBracesLLVM: false
138138
SeparateDefinitionBlocks: Leave
139+
ShortNamespaceLines: 0
139140
SortIncludes: Never
140141
SortUsingDeclarations: false
141142
SpaceAfterCStyleCast: false

0 commit comments

Comments
 (0)