-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
76 lines (71 loc) · 1.9 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
---
Language: Cpp
# Options include: LLVM, Google, Chromium, Mozilla, WebKit
BasedOnStyle: Google
# Indentation
IndentWidth: 4
TabWidth: 4
UseTab: Always
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveMacros: AcrossEmptyLines
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
# Line breaking
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: false
AfterClass: false
AfterStruct: false
SplitEmptyFunction: false
AfterFunction: false
AfterNamespace: false
BeforeElse: false
BeforeWhile: false
BeforeLambdaBody: false
AfterControlStatement: false
AfterObjCDeclaration: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
IndentBraces: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
AllowShortLambdasOnASingleLine: Inline
ColumnLimit: 100
ReflowComments: true
# Pointer
DerivePointerAlignment: false
SpaceAroundPointerQualifiers: Default
PointerAlignment: Left
ReferenceAlignment: Left
# Spacing
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: Never
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
# Others
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
SortIncludes: false