-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
114 lines (94 loc) · 2.96 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
BasedOnStyle: LLVM
# ##Allman##
#BreakBeforeBraces: Allman
#SpaceBeforeParens: ControlStatements
#IndentCaseLabels: true
#IndentWidth: 4
# ##END##
# ##GNU##
#BreakBeforeBraces: GNU
#SpaceBeforeParens: ControlStatements
#IndentCaseLabels: false
#IndentWidth: 8
# ##END##
BinPackParameters: false
BinPackArguments: true
AlignAfterOpenBracket: Align
#AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Left
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: AcrossEmptyLinesAndComments
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: AcrossComments
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
# AllowShortCaseLabelsOnASingleLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
# AllowShortFunctionsOnASingleLine: Inline
# AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
# AlwaysBreakAfterReturnType: AllDefinitions
AlwaysBreakAfterReturnType: TopLevelDefinitions
AlwaysBreakTemplateDeclarations: true
BreakBeforeBinaryOperators: None
BreakStringLiterals: true
PenaltyBreakAssignment: 30
# PenaltyExcessCharacter: 3
# PenaltyBreakBeforeFirstCallParameter: 500
PPIndentWidth: 1
IndentPPDirectives: AfterHash
# NamespaceIndentation: Inner
# IndentWrappedFunctionNames: true
# AccessModifierOffset: 0
MaxEmptyLinesToKeep: 2
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceBeforeAssignmentOperators: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
AllowAllConstructorInitializersOnNextLine: true
BreakConstructorInitializers: BeforeColon
FixNamespaceComments: true
ForEachMacros: ['LL_FOREACH_F', 'LL_FOREACH_B', 'B_LIST_FOREACH', 'B_FOREACH', 'P99_PARALLEL_FOR', 'P99_PARALLEL_DO', 'GENLIST_FOREACH', 'foreach']
StatementAttributeLikeMacros: ['UNUSED', 'ND', 'NODISCARD']
# QualifierAlignment: left
# QualifierAlignment: ['inline', 'static', 'constexpr', 'type', 'const', 'volatile', 'restrict']
# QualifierOrder: ['inline', 'static', 'constexpr', 'type', 'const', 'volatile', 'restrict']
# ##Linux##
BreakBeforeBraces: Linux
SpaceBeforeParens: ControlStatements
IndentCaseLabels: false
IndentWidth: 6
# ##END##
UseTab: Never
ColumnLimit: 90
# ##Custom##
#BreakBeforeBraces: Custom
#IndentWidth: 6
#LambdaBodyIndentation: OuterScope
#BraceWrapping:
# AfterClass: true
# AfterControlStatement: false
# AfterEnum: false
# AfterFunction: true
# AfterNamespace: false
# AfterObjCDeclaration: false
# AfterStruct: false
# AfterUnion: false
# BeforeCatch: false
# BeforeElse: false
# IndentBraces: false
# BeforeLambdaBody: true
# SplitEmptyFunction: false
# SplitEmptyRecord: false
# SplitEmptyNamespace: false
##
# ##END##
# AfterExternBlock: false