Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 0c4b1f0

Browse files
1 parent 7fd44ef commit 0c4b1f0

File tree

1 file changed

+52
-10
lines changed

1 file changed

+52
-10
lines changed

.clang-format

Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,34 @@
66
# Generated from CLion C/C++ Code Style settings
77
BasedOnStyle: LLVM
88
AccessModifierOffset: -2
9-
AlignAfterOpenBracket: DontAlign
10-
AlignConsecutiveAssignments: false
9+
AlignAfterOpenBracket: BlockIndent
10+
AlignConsecutiveAssignments: None
11+
AlignEscapedNewlines: DontAlign
1112
AlignOperands: Align
1213
AllowAllArgumentsOnNextLine: false
1314
AllowAllConstructorInitializersOnNextLine: false
1415
AllowAllParametersOfDeclarationOnNextLine: false
15-
AllowShortBlocksOnASingleLine: Always
16+
AllowShortBlocksOnASingleLine: Empty
1617
AllowShortCaseLabelsOnASingleLine: false
17-
AllowShortFunctionsOnASingleLine: All
18-
AllowShortIfStatementsOnASingleLine: WithoutElse
19-
AllowShortLambdasOnASingleLine: All
18+
AllowShortEnumsOnASingleLine: false
19+
AllowShortFunctionsOnASingleLine: None
20+
AllowShortIfStatementsOnASingleLine: Never
21+
AllowShortLambdasOnASingleLine: None
2022
AllowShortLoopsOnASingleLine: true
2123
AlignTrailingComments: false
22-
AlwaysBreakAfterReturnType: All
24+
AlwaysBreakAfterDefinitionReturnType: None
25+
AlwaysBreakAfterReturnType: None
26+
AlwaysBreakBeforeMultilineStrings: true
2327
AlwaysBreakTemplateDeclarations: MultiLine
24-
BreakBeforeBraces: Custom
28+
BinPackArguments: false
29+
BinPackParameters: false
30+
BracedInitializerIndentWidth: 2
2531
BraceWrapping:
2632
AfterCaseLabel: false
2733
AfterClass: false
2834
AfterControlStatement: Never
2935
AfterEnum: false
36+
AfterExternBlock: true
3037
AfterFunction: false
3138
AfterNamespace: false
3239
AfterObjCDeclaration: false
@@ -36,39 +43,74 @@ BraceWrapping:
3643
IndentBraces: false
3744
SplitEmptyFunction: false
3845
SplitEmptyRecord: true
46+
BreakArrays: true
3947
BreakBeforeBinaryOperators: None
48+
BreakBeforeBraces: Attach
4049
BreakBeforeTernaryOperators: false
4150
BreakConstructorInitializers: AfterColon
4251
BreakInheritanceList: AfterColon
4352
ColumnLimit: 0
4453
CompactNamespaces: false
4554
ContinuationIndentWidth: 2
55+
Cpp11BracedListStyle: false
56+
EmptyLineAfterAccessModifier: Never
57+
EmptyLineBeforeAccessModifier: Always
58+
ExperimentalAutoDetectBinPacking: true
59+
FixNamespaceComments: true
60+
IncludeBlocks: Regroup
61+
IndentAccessModifiers: false
62+
IndentCaseBlocks: true
4663
IndentCaseLabels: true
64+
IndentExternBlock: Indent
65+
IndentGotoLabels: true
4766
IndentPPDirectives: BeforeHash
4867
IndentWidth: 2
68+
IndentWrappedFunctionNames: true
69+
InsertBraces: true
70+
InsertNewlineAtEOF: true
4971
KeepEmptyLinesAtTheStartOfBlocks: false
72+
LineEnding: LF
5073
MaxEmptyLinesToKeep: 1
5174
NamespaceIndentation: All
75+
ObjCBinPackProtocolList: Never
5276
ObjCSpaceAfterProperty: true
5377
ObjCSpaceBeforeProtocolList: true
78+
PackConstructorInitializers: Never
79+
PenaltyBreakBeforeFirstCallParameter: 1
80+
PenaltyBreakComment: 1
81+
PenaltyBreakString: 1
82+
PenaltyBreakFirstLessLess: 0
83+
PenaltyExcessCharacter: 1000000
5484
PointerAlignment: Right
85+
ReferenceAlignment: Pointer
5586
ReflowComments: true
87+
RemoveBracesLLVM: false
88+
RemoveSemicolon: false
89+
SeparateDefinitionBlocks: Always
90+
SortIncludes: CaseInsensitive
91+
SortUsingDeclarations: Lexicographic
5692
SpaceAfterCStyleCast: true
5793
SpaceAfterLogicalNot: false
58-
SpaceAfterTemplateKeyword: true
94+
SpaceAfterTemplateKeyword: false
5995
SpaceBeforeAssignmentOperators: true
96+
SpaceBeforeCaseColon: false
6097
SpaceBeforeCpp11BracedList: true
6198
SpaceBeforeCtorInitializerColon: false
6299
SpaceBeforeInheritanceColon: false
100+
SpaceBeforeJsonColon: false
63101
SpaceBeforeParens: ControlStatements
64102
SpaceBeforeRangeBasedForLoopColon: true
103+
SpaceBeforeSquareBrackets: false
104+
SpaceInEmptyBlock: false
65105
SpaceInEmptyParentheses: false
66106
SpacesBeforeTrailingComments: 2
67107
SpacesInAngles: Never
68108
SpacesInCStyleCastParentheses: false
69109
SpacesInContainerLiterals: false
110+
SpacesInLineCommentPrefix:
111+
Maximum: 3
112+
Minimum: 1
70113
SpacesInParentheses: false
71114
SpacesInSquareBrackets: false
72115
TabWidth: 2
73-
Cpp11BracedListStyle: false
74116
UseTab: Never

0 commit comments

Comments
 (0)