Skip to content

Commit 8bbf627

Browse files
authored
v3.2 (#169)
1 parent 934f7d6 commit 8bbf627

File tree

815 files changed

+23967
-20906
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

815 files changed

+23967
-20906
lines changed

.clang-format

+174-18
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,204 @@
11
---
2-
Language: Cpp
32
BasedOnStyle: LLVM
43
AccessModifierOffset: -4
5-
AlignOperands: false
6-
AllowShortBlocksOnASingleLine: true
7-
AllowShortIfStatementsOnASingleLine: true
4+
AlignAfterOpenBracket: BlockIndent
5+
AlignArrayOfStructures: None
6+
AlignConsecutiveAssignments:
7+
Enabled: false
8+
AcrossEmptyLines: false
9+
AcrossComments: false
10+
AlignCompound: false
11+
PadOperators: true
12+
AlignConsecutiveBitFields:
13+
Enabled: false
14+
AcrossEmptyLines: false
15+
AcrossComments: false
16+
AlignCompound: false
17+
PadOperators: false
18+
AlignConsecutiveDeclarations:
19+
Enabled: false
20+
AcrossEmptyLines: false
21+
AcrossComments: false
22+
AlignCompound: false
23+
PadOperators: false
24+
AlignConsecutiveMacros:
25+
Enabled: false
26+
AcrossEmptyLines: false
27+
AcrossComments: false
28+
AlignCompound: false
29+
PadOperators: false
30+
AlignEscapedNewlines: Right
31+
AlignOperands: Align
32+
AlignTrailingComments:
33+
Kind: Always
34+
OverEmptyLines: 0
35+
AllowAllArgumentsOnNextLine: true
36+
AllowAllParametersOfDeclarationOnNextLine: true
37+
AllowShortBlocksOnASingleLine: Always
38+
AllowShortCaseLabelsOnASingleLine: true
39+
AllowShortEnumsOnASingleLine: true
40+
AllowShortFunctionsOnASingleLine: All
41+
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
42+
AllowShortLambdasOnASingleLine: All
843
AllowShortLoopsOnASingleLine: true
9-
AlwaysBreakAfterDefinitionReturnType: false
44+
AlwaysBreakAfterDefinitionReturnType: None
45+
AlwaysBreakAfterReturnType: None
46+
AlwaysBreakBeforeMultilineStrings: false
1047
AlwaysBreakTemplateDeclarations: No
11-
BraceWrapping:
48+
AttributeMacros:
49+
- __capability
50+
BinPackArguments: false
51+
BinPackParameters: false
52+
BitFieldColonSpacing: Both
53+
BraceWrapping:
1254
AfterCaseLabel: false
1355
AfterClass: false
14-
AfterControlStatement: false
56+
AfterControlStatement: Never
1557
AfterEnum: false
1658
AfterFunction: false
1759
AfterNamespace: false
60+
AfterObjCDeclaration: false
1861
AfterStruct: false
1962
AfterUnion: false
2063
AfterExternBlock: false
2164
BeforeCatch: true
2265
BeforeElse: true
2366
BeforeLambdaBody: false
24-
BeforeWhile: true
67+
BeforeWhile: false
68+
IndentBraces: false
2569
SplitEmptyFunction: false
2670
SplitEmptyRecord: false
2771
SplitEmptyNamespace: false
72+
BreakAfterAttributes: Never
73+
BreakAfterJavaFieldAnnotations: false
74+
BreakArrays: true
75+
BreakBeforeBinaryOperators: None
2876
BreakBeforeBraces: Custom
77+
BreakBeforeConceptDeclarations: Never
78+
BreakBeforeInlineASMColon: OnlyMultiline
79+
BreakBeforeTernaryOperators: false
2980
BreakConstructorInitializers: BeforeComma
81+
BreakStringLiterals: true
3082
ColumnLimit: 0
31-
ConstructorInitializerAllOnOneLineOrOnePerLine: true
32-
IncludeCategories:
33-
- Regex: '^<.*'
34-
Priority: 1
35-
- Regex: '^".*'
83+
CommentPragmas: "^ IWYU pragma:"
84+
CompactNamespaces: false
85+
ConstructorInitializerIndentWidth: 4
86+
ContinuationIndentWidth: 4
87+
Cpp11BracedListStyle: true
88+
DerivePointerAlignment: false
89+
DisableFormat: false
90+
EmptyLineAfterAccessModifier: Never
91+
EmptyLineBeforeAccessModifier: LogicalBlock
92+
ExperimentalAutoDetectBinPacking: false
93+
FixNamespaceComments: true
94+
IncludeBlocks: Regroup
95+
IncludeCategories:
96+
- Regex: ^"(llvm|llvm-c|clang|clang-c)/
3697
Priority: 2
37-
- Regex: '.*'
98+
SortPriority: 0
99+
CaseSensitive: false
100+
- Regex: ^(<|"(gtest|gmock|isl|json)/)
38101
Priority: 3
39-
IncludeIsMainRegex: '([-_](test|unittest))?$'
102+
SortPriority: 0
103+
CaseSensitive: false
104+
- Regex: .*
105+
Priority: 1
106+
SortPriority: 0
107+
CaseSensitive: false
108+
IncludeIsMainRegex: (Test)?$
109+
IncludeIsMainSourceRegex: ""
110+
IndentAccessModifiers: false
111+
IndentCaseBlocks: false
112+
IndentCaseLabels: false
113+
IndentExternBlock: AfterExternBlock
114+
IndentGotoLabels: true
115+
IndentPPDirectives: None
116+
IndentRequiresClause: true
40117
IndentWidth: 4
41-
MacroBlockBegin: ''
42-
MacroBlockEnd: ''
118+
IndentWrappedFunctionNames: false
119+
InsertBraces: false
120+
InsertNewlineAtEOF: false
121+
InsertTrailingCommas: None
122+
IntegerLiteralSeparator:
123+
Binary: 0
124+
BinaryMinDigits: 0
125+
Decimal: 0
126+
DecimalMinDigits: 0
127+
Hex: 0
128+
HexMinDigits: 0
129+
JavaScriptQuotes: Leave
130+
JavaScriptWrapImports: true
131+
KeepEmptyLinesAtTheStartOfBlocks: false
132+
LambdaBodyIndentation: Signature
133+
Language: Cpp
134+
LineEnding: DeriveLF
135+
MacroBlockBegin: ""
136+
MacroBlockEnd: ""
137+
MaxEmptyLinesToKeep: 1
43138
NamespaceIndentation: All
139+
ObjCBinPackProtocolList: Auto
140+
ObjCBlockIndentWidth: 2
141+
ObjCBreakBeforeNestedBlockParam: true
142+
ObjCSpaceAfterProperty: false
143+
ObjCSpaceBeforeProtocolList: true
144+
PPIndentWidth: -1
145+
PackConstructorInitializers: Never
146+
PenaltyBreakAssignment: 2
147+
PenaltyBreakBeforeFirstCallParameter: 19
148+
PenaltyBreakComment: 300
149+
PenaltyBreakFirstLessLess: 120
150+
PenaltyBreakOpenParenthesis: 0
151+
PenaltyBreakString: 1000
152+
PenaltyBreakTemplateDeclaration: 10
153+
PenaltyExcessCharacter: 1000000
154+
PenaltyIndentedWhitespace: 0
155+
PenaltyReturnTypeOnItsOwnLine: 60
44156
PointerAlignment: Left
157+
QualifierAlignment: Leave
158+
ReferenceAlignment: Pointer
159+
ReflowComments: true
160+
RemoveBracesLLVM: false
161+
RemoveSemicolon: false
162+
RequiresClausePosition: OwnLine
163+
RequiresExpressionIndentation: OuterScope
164+
SeparateDefinitionBlocks: Leave
165+
ShortNamespaceLines: 1
166+
SortIncludes: CaseSensitive
167+
SortJavaStaticImport: Before
168+
SortUsingDeclarations: LexicographicNumeric
169+
SpaceAfterCStyleCast: false
170+
SpaceAfterLogicalNot: false
45171
SpaceAfterTemplateKeyword: false
172+
SpaceAroundPointerQualifiers: Default
173+
SpaceBeforeAssignmentOperators: true
174+
SpaceBeforeCaseColon: false
175+
SpaceBeforeCpp11BracedList: false
176+
SpaceBeforeCtorInitializerColon: true
177+
SpaceBeforeInheritanceColon: true
46178
SpaceBeforeParens: Never
179+
SpaceBeforeRangeBasedForLoopColon: true
180+
SpaceBeforeSquareBrackets: false
181+
SpaceInEmptyBlock: false
182+
SpaceInEmptyParentheses: false
183+
SpacesBeforeTrailingComments: 1
184+
SpacesInAngles: Never
185+
SpacesInCStyleCastParentheses: false
186+
SpacesInConditionalStatement: false
187+
SpacesInContainerLiterals: true
188+
SpacesInLineCommentPrefix:
189+
Minimum: 1
190+
Maximum: -1
191+
SpacesInParentheses: false
192+
SpacesInSquareBrackets: false
193+
Standard: Latest
194+
StatementAttributeLikeMacros:
195+
- Q_EMIT
196+
StatementMacros:
197+
- suanpan_info
198+
- suanpan_debug
199+
- suanpan_warning
200+
- suanpan_error
201+
- suanpan_fatal
47202
TabWidth: 4
48-
...
203+
UseTab: Never
204+
AllowAllConstructorInitializersOnNextLine: true

0 commit comments

Comments
 (0)