|
1 | 1 | # Source: https://github.com/arduino/tooling-project-assets/tree/main/other/clang-format-configuration
|
2 | 2 | ---
|
3 |
| -Language: Cpp |
4 | 3 | AccessModifierOffset: -2
|
5 | 4 | AlignAfterOpenBracket: Align
|
6 |
| -AlignConsecutiveMacros: false |
7 |
| -AlignConsecutiveAssignments: false |
8 |
| -AlignConsecutiveBitFields: false |
9 |
| -AlignConsecutiveDeclarations: false |
| 5 | +AlignArrayOfStructures: None |
| 6 | +AlignConsecutiveAssignments: None |
| 7 | +AlignConsecutiveBitFields: None |
| 8 | +AlignConsecutiveDeclarations: None |
| 9 | +AlignConsecutiveMacros: None |
10 | 10 | AlignEscapedNewlines: DontAlign
|
11 |
| -AlignOperands: Align |
| 11 | +AlignOperands: Align |
12 | 12 | AlignTrailingComments: true
|
13 | 13 | AllowAllArgumentsOnNextLine: true
|
14 | 14 | AllowAllConstructorInitializersOnNextLine: true
|
15 | 15 | AllowAllParametersOfDeclarationOnNextLine: true
|
16 |
| -AllowShortEnumsOnASingleLine: true |
17 | 16 | AllowShortBlocksOnASingleLine: Always
|
18 | 17 | AllowShortCaseLabelsOnASingleLine: true
|
| 18 | +AllowShortEnumsOnASingleLine: true |
19 | 19 | AllowShortFunctionsOnASingleLine: Empty
|
| 20 | +AllowShortIfStatementsOnASingleLine: AllIfsAndElse |
20 | 21 | AllowShortLambdasOnASingleLine: Empty
|
21 |
| -AllowShortIfStatementsOnASingleLine: Always |
22 | 22 | AllowShortLoopsOnASingleLine: true
|
23 | 23 | AlwaysBreakAfterDefinitionReturnType: None
|
24 | 24 | AlwaysBreakAfterReturnType: None
|
25 | 25 | AlwaysBreakBeforeMultilineStrings: false
|
26 | 26 | AlwaysBreakTemplateDeclarations: No
|
| 27 | +AttributeMacros: |
| 28 | + - __capability |
| 29 | +BasedOnStyle: LLVM |
27 | 30 | BinPackArguments: true
|
28 | 31 | BinPackParameters: true
|
| 32 | +BitFieldColonSpacing: Both |
29 | 33 | BraceWrapping:
|
30 |
| - AfterCaseLabel: false |
31 |
| - AfterClass: false |
| 34 | + AfterCaseLabel: false |
| 35 | + AfterClass: false |
32 | 36 | AfterControlStatement: Never
|
33 |
| - AfterEnum: false |
34 |
| - AfterFunction: false |
35 |
| - AfterNamespace: false |
| 37 | + AfterEnum: false |
| 38 | + AfterFunction: false |
| 39 | + AfterNamespace: false |
36 | 40 | AfterObjCDeclaration: false
|
37 |
| - AfterStruct: false |
38 |
| - AfterUnion: false |
| 41 | + AfterStruct: false |
| 42 | + AfterUnion: false |
39 | 43 | AfterExternBlock: false
|
40 |
| - BeforeCatch: false |
41 |
| - BeforeElse: false |
| 44 | + BeforeCatch: false |
| 45 | + BeforeElse: false |
42 | 46 | BeforeLambdaBody: false
|
43 |
| - BeforeWhile: false |
44 |
| - IndentBraces: false |
| 47 | + BeforeWhile: false |
| 48 | + IndentBraces: false |
45 | 49 | SplitEmptyFunction: true
|
46 | 50 | SplitEmptyRecord: true
|
47 | 51 | SplitEmptyNamespace: true
|
| 52 | +BreakAfterJavaFieldAnnotations: false |
48 | 53 | BreakBeforeBinaryOperators: NonAssignment
|
49 | 54 | BreakBeforeBraces: Attach
|
| 55 | +BreakBeforeConceptDeclarations: false |
50 | 56 | BreakBeforeInheritanceComma: false
|
51 |
| -BreakInheritanceList: BeforeColon |
52 | 57 | BreakBeforeTernaryOperators: true
|
53 |
| -BreakConstructorInitializersBeforeComma: false |
54 | 58 | BreakConstructorInitializers: BeforeColon
|
55 |
| -BreakAfterJavaFieldAnnotations: false |
| 59 | +BreakConstructorInitializersBeforeComma: false |
| 60 | +BreakInheritanceList: BeforeColon |
56 | 61 | BreakStringLiterals: false
|
57 |
| -ColumnLimit: 0 |
58 |
| -CommentPragmas: '' |
| 62 | +ColumnLimit: 0 |
| 63 | +CommentPragmas: '' |
59 | 64 | CompactNamespaces: false
|
60 |
| -ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 65 | +ConstructorInitializerAllOnOneLineOrOnePerLine: false |
61 | 66 | ConstructorInitializerIndentWidth: 2
|
62 | 67 | ContinuationIndentWidth: 2
|
63 | 68 | Cpp11BracedListStyle: false
|
64 | 69 | DeriveLineEnding: true
|
65 | 70 | DerivePointerAlignment: true
|
66 |
| -DisableFormat: false |
| 71 | +DisableFormat: false |
| 72 | +EmptyLineAfterAccessModifier: Leave |
| 73 | +EmptyLineBeforeAccessModifier: Leave |
67 | 74 | ExperimentalAutoDetectBinPacking: false
|
68 | 75 | FixNamespaceComments: false
|
69 | 76 | ForEachMacros:
|
70 | 77 | - foreach
|
71 | 78 | - Q_FOREACH
|
72 | 79 | - BOOST_FOREACH
|
73 |
| -IncludeBlocks: Preserve |
| 80 | +IfMacros: |
| 81 | + - KJ_IF_MAYBE |
| 82 | +IncludeBlocks: Preserve |
74 | 83 | IncludeCategories:
|
75 |
| - - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
76 |
| - Priority: 2 |
77 |
| - SortPriority: 0 |
78 |
| - - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
79 |
| - Priority: 3 |
80 |
| - SortPriority: 0 |
81 |
| - - Regex: '.*' |
82 |
| - Priority: 1 |
83 |
| - SortPriority: 0 |
| 84 | + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 85 | + Priority: 2 |
| 86 | + SortPriority: 0 |
| 87 | + CaseSensitive: false |
| 88 | + - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
| 89 | + Priority: 3 |
| 90 | + SortPriority: 0 |
| 91 | + CaseSensitive: false |
| 92 | + - Regex: '.*' |
| 93 | + Priority: 1 |
| 94 | + SortPriority: 0 |
| 95 | + CaseSensitive: false |
84 | 96 | IncludeIsMainRegex: ''
|
85 | 97 | IncludeIsMainSourceRegex: ''
|
86 |
| -IndentCaseLabels: true |
| 98 | +IndentAccessModifiers: false |
87 | 99 | IndentCaseBlocks: true
|
| 100 | +IndentCaseLabels: true |
| 101 | +IndentExternBlock: Indent |
88 | 102 | IndentGotoLabels: false
|
89 | 103 | IndentPPDirectives: None
|
90 |
| -IndentExternBlock: Indent |
91 |
| -IndentWidth: 2 |
| 104 | +IndentRequires: true |
| 105 | +IndentWidth: 2 |
92 | 106 | IndentWrappedFunctionNames: false
|
93 | 107 | InsertTrailingCommas: None
|
94 | 108 | JavaScriptQuotes: Leave
|
95 | 109 | JavaScriptWrapImports: true
|
96 | 110 | KeepEmptyLinesAtTheStartOfBlocks: true
|
| 111 | +LambdaBodyIndentation: Signature |
| 112 | +Language: Cpp |
97 | 113 | MacroBlockBegin: ''
|
98 |
| -MacroBlockEnd: '' |
| 114 | +MacroBlockEnd: '' |
99 | 115 | MaxEmptyLinesToKeep: 100000
|
100 | 116 | NamespaceIndentation: None
|
101 | 117 | ObjCBinPackProtocolList: Auto
|
102 | 118 | ObjCBlockIndentWidth: 2
|
103 | 119 | ObjCBreakBeforeNestedBlockParam: true
|
104 | 120 | ObjCSpaceAfterProperty: false
|
105 | 121 | ObjCSpaceBeforeProtocolList: true
|
| 122 | +PPIndentWidth: -1 |
| 123 | +PackConstructorInitializers: BinPack |
106 | 124 | PenaltyBreakAssignment: 1
|
107 | 125 | PenaltyBreakBeforeFirstCallParameter: 1
|
108 | 126 | PenaltyBreakComment: 1
|
109 | 127 | PenaltyBreakFirstLessLess: 1
|
| 128 | +PenaltyBreakOpenParenthesis: 1 |
110 | 129 | PenaltyBreakString: 1
|
111 | 130 | PenaltyBreakTemplateDeclaration: 1
|
112 | 131 | PenaltyExcessCharacter: 1
|
| 132 | +PenaltyIndentedWhitespace: 1 |
113 | 133 | PenaltyReturnTypeOnItsOwnLine: 1
|
114 | 134 | PointerAlignment: Right
|
115 |
| -ReflowComments: false |
116 |
| -SortIncludes: false |
| 135 | +QualifierAlignment: Leave |
| 136 | +ReferenceAlignment: Pointer |
| 137 | +ReflowComments: false |
| 138 | +RemoveBracesLLVM: false |
| 139 | +SeparateDefinitionBlocks: Leave |
| 140 | +ShortNamespaceLines: 0 |
| 141 | +SortIncludes: Never |
| 142 | +SortJavaStaticImport: Before |
117 | 143 | SortUsingDeclarations: false
|
118 | 144 | SpaceAfterCStyleCast: false
|
119 | 145 | SpaceAfterLogicalNot: false
|
120 | 146 | SpaceAfterTemplateKeyword: false
|
| 147 | +SpaceAroundPointerQualifiers: Default |
121 | 148 | SpaceBeforeAssignmentOperators: true
|
| 149 | +SpaceBeforeCaseColon: false |
122 | 150 | SpaceBeforeCpp11BracedList: false
|
123 | 151 | SpaceBeforeCtorInitializerColon: true
|
124 | 152 | SpaceBeforeInheritanceColon: true
|
125 | 153 | SpaceBeforeParens: ControlStatements
|
| 154 | +SpaceBeforeParensOptions: |
| 155 | + AfterControlStatements: true |
| 156 | + AfterForeachMacros: true |
| 157 | + AfterFunctionDefinitionName: false |
| 158 | + AfterFunctionDeclarationName: false |
| 159 | + AfterIfMacros: true |
| 160 | + AfterOverloadedOperator: false |
| 161 | + BeforeNonEmptyParentheses: false |
126 | 162 | SpaceBeforeRangeBasedForLoopColon: true
|
| 163 | +SpaceBeforeSquareBrackets: false |
127 | 164 | SpaceInEmptyBlock: false
|
128 | 165 | SpaceInEmptyParentheses: false
|
129 | 166 | SpacesBeforeTrailingComments: 2
|
130 |
| -SpacesInAngles: false |
| 167 | +SpacesInAngles: Leave |
| 168 | +SpacesInCStyleCastParentheses: false |
131 | 169 | SpacesInConditionalStatement: false
|
132 | 170 | SpacesInContainerLiterals: false
|
133 |
| -SpacesInCStyleCastParentheses: false |
| 171 | +SpacesInLineCommentPrefix: |
| 172 | + Minimum: 0 |
| 173 | + Maximum: -1 |
134 | 174 | SpacesInParentheses: false
|
135 | 175 | SpacesInSquareBrackets: false
|
136 |
| -SpaceBeforeSquareBrackets: false |
137 |
| -Standard: Auto |
| 176 | +Standard: Auto |
| 177 | +StatementAttributeLikeMacros: |
| 178 | + - Q_EMIT |
138 | 179 | StatementMacros:
|
139 | 180 | - Q_UNUSED
|
140 | 181 | - QT_REQUIRE_VERSION
|
141 |
| -TabWidth: 2 |
142 |
| -UseCRLF: false |
143 |
| -UseTab: Never |
| 182 | +TabWidth: 2 |
| 183 | +UseCRLF: false |
| 184 | +UseTab: Never |
144 | 185 | WhitespaceSensitiveMacros:
|
145 | 186 | - STRINGIZE
|
146 | 187 | - PP_STRINGIZE
|
147 | 188 | - BOOST_PP_STRINGIZE
|
148 |
| -... |
149 |
| - |
| 189 | + - NS_SWIFT_NAME |
| 190 | + - CF_SWIFT_NAME |
0 commit comments