-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
97 lines (91 loc) · 2.64 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
Language: Cpp
ColumnLimit: 120
ReflowComments: true
AlignAfterOpenBracket: Align
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: true
IndentWrappedFunctionNames: false
AccessModifierOffset: 0
IndentAccessModifiers: true
BinPackArguments: true
BinPackParameters: true
AlignOperands: Align
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: Never
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
AlwaysBreakAfterReturnType: None
TabWidth: 4
UseTab: Never
IndentPPDirectives: BeforeHash
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
Cpp11BracedListStyle: true
PointerAlignment: Right
SpacesInCStyleCastParentheses: false
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpacesInContainerLiterals: false
SpaceBeforeInheritanceColon: true
SpaceAfterTemplateKeyword: false
IndentCaseLabels: true
NamespaceIndentation: All
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: None
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignTrailingComments: true
BreakStringLiterals: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
BreakConstructorInitializers : BeforeColon
BreakInheritanceList: AfterColon
PackConstructorInitializers: Never
SortIncludes: true
IncludeBlocks: Merge
IncludeCategories:
- Regex: '^"[[:alnum:]./]+"' # Any "my_header.h"
Priority: 3
- Regex: '<criterion/[a-z]+\.h>' # Criterion headers
Priority: 2
- Regex: '<[[:alnum:]./]+>' # System/Standard libs
Priority: 1
# Sort 'using' declarations
SortUsingDeclarations: true
BasedOnStyle: LLVM
AlwaysBreakBeforeMultilineStrings: true
ContinuationIndentWidth: 4
IndentWidth: 4
PenaltyBreakAssignment: 0
SpaceBeforeCpp11BracedList: true
SpaceBeforeRangeBasedForLoopColon: true
AlwaysBreakTemplateDeclarations: Yes
# To totally disable format
DisableFormat: 'false'