Skip to content

Commit c00a226

Browse files
committed
fix: update clang format
1 parent 70b2a8b commit c00a226

File tree

1 file changed

+87
-61
lines changed

1 file changed

+87
-61
lines changed

.clang-format

Lines changed: 87 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,92 @@
1-
# Generated from CLion C/C++ Code Style settings
2-
BasedOnStyle: LLVM
3-
AccessModifierOffset: -4
4-
AlignAfterOpenBracket: Align
5-
AlignConsecutiveAssignments: None
6-
AlignOperands: Align
1+
BasedOnStyle: Mozilla
2+
Language: Cpp
3+
Standard: c++20
4+
5+
AccessModifierOffset: "-4"
6+
AlignAfterOpenBracket: BlockIndent
7+
AlignEscapedNewlinesLeft: "false"
78
AllowAllArgumentsOnNextLine: false
8-
AllowAllConstructorInitializersOnNextLine: false
99
AllowAllParametersOfDeclarationOnNextLine: false
10-
AllowShortBlocksOnASingleLine: Always
11-
AllowShortCaseLabelsOnASingleLine: false
12-
AllowShortFunctionsOnASingleLine: All
13-
AllowShortIfStatementsOnASingleLine: Always
14-
AllowShortLambdasOnASingleLine: All
15-
AllowShortLoopsOnASingleLine: true
16-
AlwaysBreakAfterReturnType: None
17-
AlwaysBreakTemplateDeclarations: Yes
18-
BreakBeforeBraces: Custom
19-
BraceWrapping:
20-
AfterCaseLabel: false
21-
AfterClass: false
22-
AfterControlStatement: Never
23-
AfterEnum: false
24-
AfterFunction: false
25-
AfterNamespace: false
26-
AfterUnion: false
27-
BeforeCatch: false
28-
BeforeElse: false
29-
IndentBraces: false
30-
SplitEmptyFunction: false
31-
SplitEmptyRecord: true
32-
BreakBeforeBinaryOperators: None
33-
BreakBeforeTernaryOperators: true
34-
BreakConstructorInitializers: BeforeColon
35-
BreakInheritanceList: BeforeColon
36-
ColumnLimit: 0
37-
CompactNamespaces: false
38-
ContinuationIndentWidth: 8
39-
IndentCaseLabels: true
40-
IndentPPDirectives: None
41-
IndentWidth: 4
42-
KeepEmptyLinesAtTheStartOfBlocks: true
43-
MaxEmptyLinesToKeep: 2
10+
AllowShortBlocksOnASingleLine: "false"
11+
AllowShortCaseLabelsOnASingleLine: "false"
12+
AllowShortFunctionsOnASingleLine: "false"
13+
AllowShortIfStatementsOnASingleLine: "false"
14+
AllowShortLoopsOnASingleLine: "false"
15+
AlwaysBreakTemplateDeclarations: "true"
16+
BreakAfterReturnType: ExceptShortType
17+
BinPackArguments: false
18+
BinPackParameters: false
19+
BreakAfterAttributes: Leave
20+
BreakBeforeBinaryOperators: All
21+
BreakBeforeBraces: Attach
22+
BreakBeforeTernaryOperators: "true"
23+
BreakConstructorInitializersBeforeComma: "true"
24+
BreakStringLiterals: "false"
25+
ColumnLimit: "100"
26+
ConstructorInitializerAllOnOneLineOrOnePerLine: "false"
27+
ConstructorInitializerIndentWidth: "4"
28+
ContinuationIndentWidth: "4"
29+
Cpp11BracedListStyle: "false"
30+
DerivePointerAlignment: "false"
31+
DisableFormat: "false"
32+
EmptyLineAfterAccessModifier: Never
33+
EmptyLineBeforeAccessModifier: Always
34+
ExperimentalAutoDetectBinPacking: "true"
35+
IncludeBlocks: Regroup
36+
IncludeCategories:
37+
- Regex: <[^.]+>
38+
Priority: -3
39+
- Regex: <plugify/.+>
40+
Priority: -1
41+
- Regex: <.+>
42+
Priority: -2
43+
- Regex: '"plugify/.+"'
44+
Priority: 0
45+
- Regex: '"glaze/.+"'
46+
Priority: 0
47+
- Regex: '"asmjit/.+"'
48+
Priority: 0
49+
- Regex: '".+/.+"'
50+
Priority: 1
51+
- Regex: '".+"'
52+
Priority: 2
53+
IndentCaseLabels: "true"
54+
IndentWidth: "4"
55+
IndentWrappedFunctionNames: "false"
56+
InsertBraces: true # Experimental
57+
KeepEmptyLinesAtTheStartOfBlocks: "false"
58+
MaxEmptyLinesToKeep: "2"
4459
NamespaceIndentation: All
45-
ObjCSpaceAfterProperty: false
46-
ObjCSpaceBeforeProtocolList: true
60+
ObjCBlockIndentWidth: "4"
61+
ObjCSpaceAfterProperty: "false"
62+
ObjCSpaceBeforeProtocolList: "false"
63+
PackConstructorInitializers: Never
64+
PenaltyBreakAssignment: 100000
65+
PenaltyBreakBeforeFirstCallParameter: 0
66+
PenaltyBreakComment: 10
67+
PenaltyBreakOpenParenthesis: 0
68+
PenaltyBreakTemplateDeclaration: 0
69+
PenaltyExcessCharacter: 10
70+
PenaltyIndentedWhitespace: 0
71+
PenaltyReturnTypeOnItsOwnLine: 10
4772
PointerAlignment: Left
48-
ReflowComments: false
49-
SpaceAfterCStyleCast: true
50-
SpaceAfterLogicalNot: false
51-
SpaceAfterTemplateKeyword: false
52-
SpaceBeforeAssignmentOperators: true
53-
SpaceBeforeCpp11BracedList: false
54-
SpaceBeforeCtorInitializerColon: true
55-
SpaceBeforeInheritanceColon: true
73+
ReferenceAlignment: Left
74+
QualifierAlignment: Custom # Experimental
75+
QualifierOrder: [inline, static, constexpr, const, volatile, type]
76+
ReflowComments: "true"
77+
SeparateDefinitionBlocks: Always
78+
SortIncludes: CaseInsensitive
79+
SortUsingDeclarations: Never
80+
SpaceAfterCStyleCast: "true"
81+
SpaceAfterTemplateKeyword: "true"
82+
SpaceBeforeAssignmentOperators: "true"
5683
SpaceBeforeParens: ControlStatements
57-
SpaceBeforeRangeBasedForLoopColon: false
58-
SpaceInEmptyParentheses: false
59-
SpacesBeforeTrailingComments: 0
60-
SpacesInAngles: false
61-
SpacesInCStyleCastParentheses: false
62-
SpacesInContainerLiterals: false
63-
SpacesInParentheses: false
64-
SpacesInSquareBrackets: false
65-
TabWidth: 4
66-
UseTab: Always
84+
SpaceInEmptyParentheses: "false"
85+
SpacesBeforeTrailingComments: "2"
86+
SpacesInAngles: "false"
87+
SpacesInCStyleCastParentheses: "false"
88+
SpacesInContainerLiterals: "false"
89+
SpacesInParentheses: "false"
90+
SpacesInSquareBrackets: "false"
91+
TabWidth: "4"
92+
UseTab: "ForIndentation"

0 commit comments

Comments
 (0)