Skip to content

Commit b9bf88b

Browse files
committed
Add SortJavaStaticImport 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. Since this key is specific to the Java language, while Arduino's configuration is intended for use with Arduino language/C++/C, the value of this key is irrelevant so the default value is used. This fact was documented in the notes.
1 parent 3f95ead commit b9bf88b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ RemoveBracesLLVM: false
138138
SeparateDefinitionBlocks: Leave
139139
ShortNamespaceLines: 0
140140
SortIncludes: Never
141+
SortJavaStaticImport: Before
141142
SortUsingDeclarations: false
142143
SpaceAfterCStyleCast: false
143144
SpaceAfterLogicalNot: false

other/clang-format-configuration/notes.md

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ They should be set to **ClangFormat**'s default values.
114114

115115
- `BreakAfterJavaFieldAnnotations`
116116
- `JavaImportGroups`
117+
- `SortJavaStaticImport`
117118

118119
### JavaScript
119120

0 commit comments

Comments
 (0)