-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
49 lines (49 loc) · 1.27 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
UseTab: AlignWithSpaces
IndentWidth: 2
TabWidth: 2
ContinuationIndentWidth: 2
Language: Cpp
PointerAlignment: Left
ColumnLimit: 80
BinPackArguments: false
BinPackParameters: false
ExperimentalAutoDetectBinPacking: false
AlignAfterOpenBracket: BlockIndent
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
BreakBeforeBraces: Custom
AlignOperands: DontAlign
BraceWrapping:
AfterEnum: false
AfterStruct: false
SplitEmptyFunction: false
AfterEnum: false
AfterFunction: false
AfterObjCDeclaration: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
AfterControlStatement: false
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: Indent
IndentGotoLabels: false
# InsertBraces: true # Uncomment for clang-format v15
InsertTrailingCommas: Wrapped
MaxEmptyLinesToKeep: 1
ReferenceAlignment: Left
SpaceBeforeParens: ControlStatements
SpaceBeforeAssignmentOperators: true
SeparateDefinitionBlocks: Always
RemoveBracesLLVM: false
ReflowComments: true