You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add BreakBeforeConceptDeclarations 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 behavior of the Arduino IDE 1.x "Auto Format" feature.
The `false` value is the most permissive, allowing the user to break or not break at their whim.
Since the concepts feature was added to C++ relatively recently, there is not any established style in official Arduino
code.
Copy file name to clipboardExpand all lines: other/clang-format-configuration/notes.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,12 @@ This key is irrelevant because we define all configuration keys.
20
20
21
21
This key is ignored when `BreakBeforeBraces` is set to anything other than `Custom`.
22
22
23
+
## `BreakBeforeConceptDeclarations`
24
+
25
+
`true` forces the break.
26
+
27
+
`false` allows the user to break or not break at their whim, in alignment with the Arduino IDE 1.x formatter behavior and Arduino's `AlwaysBreakTemplateDeclarations: No` configuration.
28
+
23
29
## `BreakBeforeInheritanceComma`
24
30
25
31
Seems to be a backwards compatibility name for `BreakInheritanceList: BeforeComma`:
0 commit comments