-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy path.clang-format
69 lines (58 loc) · 1.58 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
# basics
UseTab: Never
IndentWidth: 4
ColumnLimit: 0
SortIncludes: Never
PointerAlignment: Left
ReferenceAlignment: Left
AlignAfterOpenBracket: DontAlign # Argument aligned by level not function name ISSUE: ");" is not on a new line
# spaces
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: true # ISSUE: only global for if/while/for/switch but don't want only for if
AfterFunctionDefinitionName: false
#spaces
MaxEmptyLinesToKeep: 2
KeepEmptyLinesAtEOF: false
EmptyLineAfterAccessModifier: Always
BreakBeforeBinaryOperators: None
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: true
AcrossComments: false
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCompound: true
PadOperators: true
BinPackArguments: false
BinPackParameters: false
# wrapping/combining
AllowShortFunctionsOnASingleLine: None
BreakBeforeBraces: Custom
BraceWrapping:
IndentBraces: False
AfterClass: true
AfterControlStatement: true
AfterEnum: True
AfterFunction: true
AfterNamespace: True
AfterObjCDeclaration: True
AfterStruct: True
AfterUnion: True
BeforeCatch: True
BeforeElse: True
BeforeWhile: True
SplitEmptyFunction: true
SplitEmptyRecord: true
# C++ Constructor settings
BreakConstructorInitializers: AfterColon
PackConstructorInitializers: Never
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
# classes & templates
IndentAccessModifiers: false
AccessModifierOffset: -4
SpacesInAngles: Leave # Don't change
Cpp11BracedListStyle: false