-
Notifications
You must be signed in to change notification settings - Fork 30
/
.clang-format
80 lines (80 loc) · 2.19 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
# vim: set syntax=yaml :
# clang-format-13 crashes...
# Tested with clang-format-15
AccessModifierOffset: -4
AlignEscapedNewlines: Left
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackParameters: true
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Custom
BraceWrapping:
SplitEmptyFunction: false
AfterEnum: false
AfterStruct: false
AfterClass: true
AfterCaseLabel: true
AfterControlStatement: Never
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterUnion: false
AfterExternBlock: true
BeforeCatch: true
BeforeElse: false
BeforeLambdaBody: false
IndentBraces: false
SplitEmptyRecord: false
BreakBeforeTernaryOperators: false
BreakConstructorInitializersBeforeComma: false
ColumnLimit: 0
CommentPragmas: ''
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DerivePointerBinding: false
PointerAlignment: Left
IndentCaseLabels: false
IndentFunctionDeclarationAfterType: false
IndentWidth: 4
Language: Cpp
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 100
PenaltyBreakComment: 100
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 100
PenaltyExcessCharacter: 0
PenaltyReturnTypeOnItsOwnLine: 100
PenaltyBreakAssignment: 20
PointerBindsToType: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: Never
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
Standard: Auto
TabWidth: 4
UseTab: Never
IndentPPDirectives: None
IndentGotoLabels: true
SortIncludes: false
SpaceAfterCStyleCast: false
#AlignAfterOpenBracket: DontAlign
AlignConsecutiveMacros: true
SpaceAfterLogicalNot: false
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
AlignArrayOfStructures: Left