|
1 |
| -# Available style options are described in https://clang.llvm.org/docs/ClangFormatStyleOptions.html |
2 |
| -# |
3 |
| -# An easy way to create the .clang-format file is: |
4 |
| -# |
5 |
| -# clang-format -style=llvm -dump-config > .clang-format |
6 |
| -# |
| 1 | +--- |
| 2 | +BasedOnStyle: Google |
7 | 3 | ---
|
8 | 4 | Language: Cpp
|
9 |
| -BasedOnStyle: LLVM |
10 |
| -AccessModifierOffset: -1 |
11 |
| -AlignAfterOpenBracket: Align |
12 |
| -AlignArrayOfStructures: Right |
13 |
| -AlignConsecutiveAssignments: |
14 |
| - Enabled: true |
15 |
| - AcrossEmptyLines: false |
16 |
| - AcrossComments: false |
17 |
| - AlignCompound: true |
18 |
| - PadOperators: true |
19 |
| -AlignConsecutiveBitFields: |
20 |
| - Enabled: true |
21 |
| - AcrossEmptyLines: false |
22 |
| - AcrossComments: false |
23 |
| - AlignCompound: true |
24 |
| - PadOperators: true |
25 |
| -AlignConsecutiveDeclarations: |
26 |
| - Enabled: true |
27 |
| - AcrossEmptyLines: false |
28 |
| - AcrossComments: false |
29 |
| - AlignCompound: false |
30 |
| - PadOperators: false |
31 |
| -AlignConsecutiveMacros: |
32 |
| - Enabled: true |
33 |
| - AcrossEmptyLines: false |
34 |
| - AcrossComments: false |
35 |
| - AlignCompound: false |
36 |
| - PadOperators: false |
37 |
| -AlignConsecutiveShortCaseStatements: |
38 |
| - Enabled: false |
39 |
| - AcrossEmptyLines: false |
40 |
| - AcrossComments: false |
41 |
| - AlignCaseColons: false |
42 |
| -AlignEscapedNewlines: Left |
43 |
| -AlignOperands: Align |
44 |
| -AlignTrailingComments: |
45 |
| - Kind: Always |
46 |
| - OverEmptyLines: 1 |
47 |
| -AllowAllArgumentsOnNextLine: false |
48 |
| -AllowAllParametersOfDeclarationOnNextLine: false |
49 |
| -AllowShortBlocksOnASingleLine: Always |
| 5 | +AccessModifierOffset: -4 |
| 6 | +# AlignAfterOpenBracket: Align |
| 7 | +AlignConsecutiveMacros: true |
| 8 | +# AlignConsecutiveAssignments: false |
| 9 | +# AlignConsecutiveDeclarations: false |
| 10 | +# AlignEscapedNewlines: Left |
| 11 | +# AlignOperands: true |
| 12 | +# AlignTrailingComments: true |
| 13 | +# AllowAllArgumentsOnNextLine: true |
| 14 | +AllowAllConstructorInitializersOnNextLine: true |
| 15 | +# AllowAllParametersOfDeclarationOnNextLine: true |
| 16 | +# AllowShortBlocksOnASingleLine: Never |
50 | 17 | AllowShortCaseLabelsOnASingleLine: false
|
51 |
| -AllowShortEnumsOnASingleLine: false |
52 |
| -AllowShortFunctionsOnASingleLine: None |
53 |
| -AllowShortIfStatementsOnASingleLine: WithoutElse |
54 |
| -AllowShortLambdasOnASingleLine: All |
55 |
| -AllowShortLoopsOnASingleLine: true |
56 |
| -AlwaysBreakAfterDefinitionReturnType: None |
57 |
| -AlwaysBreakAfterReturnType: None |
| 18 | +AllowShortFunctionsOnASingleLine: false |
| 19 | +# AllowShortLambdasOnASingleLine: All |
| 20 | +# AllowShortIfStatementsOnASingleLine: WithoutElse |
| 21 | +# AllowShortLoopsOnASingleLine: true |
| 22 | +# AlwaysBreakAfterDefinitionReturnType: None |
| 23 | +# AlwaysBreakAfterReturnType: None |
58 | 24 | AlwaysBreakBeforeMultilineStrings: false
|
59 |
| -AlwaysBreakTemplateDeclarations: MultiLine |
60 |
| -AttributeMacros: |
61 |
| - - __capability |
62 |
| -BinPackArguments: true |
63 |
| -BinPackParameters: true |
64 |
| -BitFieldColonSpacing: Both |
| 25 | +# AlwaysBreakTemplateDeclarations: Yes |
| 26 | +# BinPackArguments: true |
| 27 | +# BinPackParameters: true |
65 | 28 | BraceWrapping:
|
66 |
| - AfterCaseLabel: false |
| 29 | + # AfterCaseLabel: false |
67 | 30 | AfterClass: true
|
68 |
| - AfterControlStatement: Always |
| 31 | + AfterControlStatement: true |
69 | 32 | AfterEnum: true
|
70 |
| - AfterExternBlock: false |
71 | 33 | AfterFunction: true
|
72 |
| - AfterNamespace: true |
| 34 | + # AfterNamespace: false |
73 | 35 | AfterObjCDeclaration: true
|
74 | 36 | AfterStruct: true
|
75 |
| - AfterUnion: false |
| 37 | + AfterUnion: true |
| 38 | + AfterExternBlock: true |
76 | 39 | BeforeCatch: true
|
77 | 40 | BeforeElse: true
|
78 |
| - BeforeLambdaBody: false |
79 |
| - BeforeWhile: false |
80 |
| - IndentBraces: false |
81 |
| - SplitEmptyFunction: true |
82 |
| - SplitEmptyRecord: true |
83 |
| - SplitEmptyNamespace: true |
84 |
| -BreakAfterAttributes: Never |
85 |
| -BreakAfterJavaFieldAnnotations: false |
86 |
| -BreakArrays: false |
87 |
| -BreakBeforeBinaryOperators: NonAssignment |
88 |
| -BreakBeforeConceptDeclarations: Always |
| 41 | + # IndentBraces: false |
| 42 | + # SplitEmptyFunction: true |
| 43 | + # SplitEmptyRecord: true |
| 44 | + # SplitEmptyNamespace: true |
| 45 | +# BreakBeforeBinaryOperators: None |
89 | 46 | BreakBeforeBraces: Custom
|
90 |
| -BreakBeforeInlineASMColon: OnlyMultiline |
91 |
| -BreakBeforeTernaryOperators: true |
92 |
| -BreakConstructorInitializers: AfterColon |
93 |
| -BreakInheritanceList: AfterColon |
94 |
| -BreakStringLiterals: true |
95 |
| -ColumnLimit: 0 |
96 |
| -CommentPragmas: "^ IWYU pragma:" |
97 |
| -CompactNamespaces: false |
98 |
| -ConstructorInitializerIndentWidth: 4 |
99 |
| -ContinuationIndentWidth: 4 |
100 |
| -Cpp11BracedListStyle: true |
101 |
| -DerivePointerAlignment: false |
102 |
| -DisableFormat: false |
103 |
| -EmptyLineAfterAccessModifier: Never |
104 |
| -EmptyLineBeforeAccessModifier: Always |
105 |
| -ExperimentalAutoDetectBinPacking: false |
106 |
| -FixNamespaceComments: true |
107 |
| -ForEachMacros: |
108 |
| - - foreach |
109 |
| - - Q_FOREACH |
110 |
| - - BOOST_FOREACH |
111 |
| -IfMacros: |
112 |
| - - KJ_IF_MAYBE |
113 |
| -IncludeBlocks: Preserve |
114 |
| -IncludeCategories: |
115 |
| - - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
116 |
| - Priority: 2 |
117 |
| - SortPriority: 0 |
118 |
| - CaseSensitive: false |
119 |
| - - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
120 |
| - Priority: 3 |
121 |
| - SortPriority: 0 |
122 |
| - CaseSensitive: false |
123 |
| - - Regex: ".*" |
124 |
| - Priority: 1 |
125 |
| - SortPriority: 0 |
126 |
| - CaseSensitive: false |
127 |
| -IncludeIsMainRegex: "(Test)?$" |
128 |
| -IncludeIsMainSourceRegex: "" |
129 |
| -IndentAccessModifiers: false |
130 |
| -IndentCaseBlocks: false |
131 |
| -IndentCaseLabels: false |
132 |
| -IndentExternBlock: NoIndent |
133 |
| -IndentGotoLabels: true |
134 |
| -IndentPPDirectives: None |
135 |
| -IndentRequiresClause: true |
| 47 | +# BreakBeforeInheritanceComma: false |
| 48 | +# BreakInheritanceList: BeforeColon |
| 49 | +# BreakBeforeTernaryOperators: true |
| 50 | +# BreakConstructorInitializersBeforeComma: false |
| 51 | +# BreakConstructorInitializers: BeforeColon |
| 52 | +# BreakAfterJavaFieldAnnotations: false |
| 53 | +# BreakStringLiterals: true |
| 54 | +# ColumnLimit: 80 |
| 55 | +CommentPragmas: "^ NOLINT:" |
| 56 | +# CompactNamespaces: false |
| 57 | +# ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 58 | +# ConstructorInitializerIndentWidth: 4 |
| 59 | +# ContinuationIndentWidth: 4 |
| 60 | +# Cpp11BracedListStyle: true |
| 61 | +# DeriveLineEnding: true |
| 62 | +# DerivePointerAlignment: true |
| 63 | +# DisableFormat: false |
| 64 | +# ExperimentalAutoDetectBinPacking: false |
| 65 | +# FixNamespaceComments: true |
| 66 | +# ForEachMacros: |
| 67 | +# - foreach |
| 68 | +# - Q_FOREACH |
| 69 | +# - BOOST_FOREACH |
| 70 | +# IncludeBlocks: Regroup |
| 71 | +# IncludeCategories: |
| 72 | +# - Regex: '^<ext/.*\.h>' |
| 73 | +# Priority: 2 |
| 74 | +# SortPriority: 0 |
| 75 | +# - Regex: '^<.*\.h>' |
| 76 | +# Priority: 1 |
| 77 | +# SortPriority: 0 |
| 78 | +# - Regex: "^<.*" |
| 79 | +# Priority: 2 |
| 80 | +# SortPriority: 0 |
| 81 | +# - Regex: ".*" |
| 82 | +# Priority: 3 |
| 83 | +# SortPriority: 0 |
| 84 | +# IncludeIsMainRegex: "([-_](test|unittest))?$" |
| 85 | +# IncludeIsMainSourceRegex: "" |
| 86 | +# IndentCaseLabels: true |
| 87 | +# IndentGotoLabels: true |
| 88 | +# IndentPPDirectives: None |
136 | 89 | IndentWidth: 4
|
137 |
| -IndentWrappedFunctionNames: false |
138 |
| -InsertBraces: false |
139 |
| -InsertNewlineAtEOF: true |
140 |
| -InsertTrailingCommas: None |
141 |
| -IntegerLiteralSeparator: |
142 |
| - Binary: 0 |
143 |
| - BinaryMinDigits: 0 |
144 |
| - Decimal: 0 |
145 |
| - DecimalMinDigits: 0 |
146 |
| - Hex: 0 |
147 |
| - HexMinDigits: 0 |
148 |
| -JavaScriptQuotes: Leave |
149 |
| -JavaScriptWrapImports: true |
150 |
| -KeepEmptyLinesAtTheStartOfBlocks: false |
151 |
| -KeepEmptyLinesAtEOF: true |
152 |
| -LambdaBodyIndentation: Signature |
153 |
| -LineEnding: DeriveLF |
154 |
| -MacroBlockBegin: "" |
155 |
| -MacroBlockEnd: "" |
156 |
| -MaxEmptyLinesToKeep: 2 |
157 |
| -NamespaceIndentation: None |
158 |
| -ObjCBinPackProtocolList: Auto |
159 |
| -ObjCBlockIndentWidth: 2 |
160 |
| -ObjCBreakBeforeNestedBlockParam: true |
161 |
| -ObjCSpaceAfterProperty: false |
162 |
| -ObjCSpaceBeforeProtocolList: true |
163 |
| -PackConstructorInitializers: BinPack |
164 |
| -PenaltyBreakAssignment: 1000 |
165 |
| -PenaltyBreakBeforeFirstCallParameter: 19 |
166 |
| -PenaltyBreakComment: 300 |
167 |
| -PenaltyBreakFirstLessLess: 120 |
168 |
| -PenaltyBreakOpenParenthesis: 0 |
169 |
| -PenaltyBreakString: 1000 |
170 |
| -PenaltyBreakTemplateDeclaration: 10 |
171 |
| -PenaltyExcessCharacter: 1000000 |
172 |
| -PenaltyIndentedWhitespace: 0 |
173 |
| -PenaltyReturnTypeOnItsOwnLine: 1000 |
| 90 | +# IndentWrappedFunctionNames: false |
| 91 | +# JavaScriptQuotes: Leave |
| 92 | +# JavaScriptWrapImports: true |
| 93 | +# KeepEmptyLinesAtTheStartOfBlocks: false |
| 94 | +# MacroBlockBegin: "" |
| 95 | +# MacroBlockEnd: "" |
| 96 | +# MaxEmptyLinesToKeep: 1 |
| 97 | +# NamespaceIndentation: None |
| 98 | +# ObjCBinPackProtocolList: Never |
| 99 | +# ObjCBlockIndentWidth: 2 |
| 100 | +# ObjCSpaceAfterProperty: false |
| 101 | +# ObjCSpaceBeforeProtocolList: true |
| 102 | +# PenaltyBreakAssignment: 2 |
| 103 | +# PenaltyBreakBeforeFirstCallParameter: 1 |
| 104 | +# PenaltyBreakComment: 300 |
| 105 | +# PenaltyBreakFirstLessLess: 120 |
| 106 | +# PenaltyBreakString: 1000 |
| 107 | +# PenaltyBreakTemplateDeclaration: 10 |
| 108 | +# PenaltyExcessCharacter: 1000000 |
| 109 | +# PenaltyReturnTypeOnItsOwnLine: 200 |
174 | 110 | PointerAlignment: Right
|
175 |
| -PPIndentWidth: 4 |
176 |
| -QualifierAlignment: Leave |
177 |
| -ReferenceAlignment: Pointer |
178 |
| -ReflowComments: false |
179 |
| -RemoveBracesLLVM: false |
180 |
| -RemoveParentheses: Leave |
181 |
| -RemoveSemicolon: false |
182 |
| -RequiresClausePosition: OwnLine |
183 |
| -RequiresExpressionIndentation: OuterScope |
184 |
| -SeparateDefinitionBlocks: Leave |
185 |
| -ShortNamespaceLines: 1 |
186 |
| -SortIncludes: Never |
187 |
| -SortJavaStaticImport: Before |
188 |
| -SortUsingDeclarations: LexicographicNumeric |
189 |
| -SpaceAfterCStyleCast: false |
190 |
| -SpaceAfterLogicalNot: false |
191 |
| -SpaceAfterTemplateKeyword: true |
192 |
| -SpaceAroundPointerQualifiers: Both |
193 |
| -SpaceBeforeAssignmentOperators: true |
194 |
| -SpaceBeforeCaseColon: false |
195 |
| -SpaceBeforeCpp11BracedList: false |
196 |
| -SpaceBeforeCtorInitializerColon: true |
197 |
| -SpaceBeforeInheritanceColon: true |
198 |
| -SpaceBeforeJsonColon: false |
199 |
| -SpaceBeforeParens: ControlStatements |
200 |
| -SpaceBeforeParensOptions: |
201 |
| - AfterControlStatements: true |
202 |
| - AfterForeachMacros: true |
203 |
| - AfterFunctionDefinitionName: false |
204 |
| - AfterFunctionDeclarationName: false |
205 |
| - AfterIfMacros: true |
206 |
| - AfterOverloadedOperator: false |
207 |
| - AfterRequiresInClause: false |
208 |
| - AfterRequiresInExpression: false |
209 |
| - BeforeNonEmptyParentheses: false |
210 |
| -SpaceBeforeRangeBasedForLoopColon: true |
211 |
| -SpaceBeforeSquareBrackets: false |
212 |
| -SpaceInEmptyBlock: false |
| 111 | +# RawStringFormats: |
| 112 | +# - Language: Cpp |
| 113 | +# Delimiters: |
| 114 | +# - cc |
| 115 | +# - CC |
| 116 | +# - cpp |
| 117 | +# - Cpp |
| 118 | +# - CPP |
| 119 | +# - "c++" |
| 120 | +# - "C++" |
| 121 | +# CanonicalDelimiter: "" |
| 122 | +# BasedOnStyle: google |
| 123 | +# - Language: TextProto |
| 124 | +# Delimiters: |
| 125 | +# - pb |
| 126 | +# - PB |
| 127 | +# - proto |
| 128 | +# - PROTO |
| 129 | +# EnclosingFunctions: |
| 130 | +# - EqualsProto |
| 131 | +# - EquivToProto |
| 132 | +# - PARSE_PARTIAL_TEXT_PROTO |
| 133 | +# - PARSE_TEST_PROTO |
| 134 | +# - PARSE_TEXT_PROTO |
| 135 | +# - ParseTextOrDie |
| 136 | +# - ParseTextProtoOrDie |
| 137 | +# CanonicalDelimiter: "" |
| 138 | +# BasedOnStyle: google |
| 139 | +# ReflowComments: true |
| 140 | +SortIncludes: false |
| 141 | +SortUsingDeclarations: false |
| 142 | +# SpaceAfterCStyleCast: false |
| 143 | +# SpaceAfterLogicalNot: false |
| 144 | +# SpaceAfterTemplateKeyword: true |
| 145 | +# SpaceBeforeAssignmentOperators: true |
| 146 | +# SpaceBeforeCpp11BracedList: false |
| 147 | +# SpaceBeforeCtorInitializerColon: true |
| 148 | +# SpaceBeforeInheritanceColon: true |
| 149 | +# SpaceBeforeParens: ControlStatements |
| 150 | +# SpaceBeforeRangeBasedForLoopColon: true |
| 151 | +# SpaceInEmptyBlock: false |
| 152 | +# SpaceInEmptyParentheses: false |
213 | 153 | SpacesBeforeTrailingComments: 1
|
214 |
| -SpacesInAngles: Never |
215 |
| -SpacesInContainerLiterals: true |
216 |
| -SpacesInLineCommentPrefix: |
217 |
| - Minimum: 1 |
218 |
| - Maximum: -1 |
219 |
| -SpacesInParens: Never |
220 |
| -SpacesInParensOptions: |
221 |
| - InCStyleCasts: false |
222 |
| - InConditionalStatements: false |
223 |
| - InEmptyParentheses: false |
224 |
| - Other: false |
225 |
| -SpacesInSquareBrackets: false |
226 |
| -Standard: Latest |
227 |
| -StatementAttributeLikeMacros: |
228 |
| - - Q_EMIT |
229 |
| -StatementMacros: |
230 |
| - - Q_UNUSED |
231 |
| - - QT_REQUIRE_VERSION |
| 154 | +# SpacesInAngles: false |
| 155 | +# SpacesInConditionalStatement: false |
| 156 | +SpacesInContainerLiterals: false |
| 157 | +# SpacesInCStyleCastParentheses: false |
| 158 | +# SpacesInParentheses: false |
| 159 | +# SpacesInSquareBrackets: false |
| 160 | +# SpaceBeforeSquareBrackets: false |
| 161 | +Standard: Cpp11 |
| 162 | +# StatementMacros: |
| 163 | +# - Q_UNUSED |
| 164 | +# - QT_REQUIRE_VERSION |
232 | 165 | TabWidth: 4
|
| 166 | +# UseCRLF: false |
233 | 167 | UseTab: Never
|
234 |
| -VerilogBreakBetweenInstancePorts: true |
235 |
| -WhitespaceSensitiveMacros: |
236 |
| - - BOOST_PP_STRINGIZE |
237 |
| - - CF_SWIFT_NAME |
238 |
| - - NS_SWIFT_NAME |
239 |
| - - PP_STRINGIZE |
240 |
| - - STRINGIZE |
241 |
| ---- |
242 |
| - |
0 commit comments