Skip to content

Commit b35f9d9

Browse files
committed
Add SpacesInLineCommentPrefix 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. The key value set here was chosen in order to: - Align with the permissive behavior of the Arduino IDE 1.x "Auto Format" feature.
1 parent 8d4f771 commit b35f9d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ SpacesInAngles: Leave
167167
SpacesInCStyleCastParentheses: false
168168
SpacesInConditionalStatement: false
169169
SpacesInContainerLiterals: false
170+
SpacesInLineCommentPrefix:
171+
Minimum: 0
172+
Maximum: -1
170173
SpacesInParentheses: false
171174
SpacesInSquareBrackets: false
172175
Standard: Auto

0 commit comments

Comments
 (0)