-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
54 lines (53 loc) · 1.36 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
---
# This configuration requires clang-format 3.8 or higher.
BasedOnStyle: WebKit
# changed! CK
#XXX AllowShortLoopsOnASingleLine: true
#< ColumnLimit: 0
ColumnLimit: 79
# ---
### see BinPack... too
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
#XXX AllowShortFunctionsOnASingleLine: Inline
# ---
SortIncludes: true
SortUsingDeclarations: true
#XXX SortIncludes: false
#XXX SortUsingDeclarations: false
# ---
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: true
SplitEmptyNamespace: true
FixNamespaceComments: true
#TODO: The preprocessor directive indenting style to use.
IndentPPDirectives: AfterHash
# ---
BinPackArguments: true
BinPackParameters: true
BreakBeforeBinaryOperators: NonAssignment
DerivePointerAlignment: false
# PointerAlignment: Right
AlignEscapedNewlines: DontAlign
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: true
AlignTrailingComments: true
ContinuationIndentWidth: 4
MaxEmptyLinesToKeep: 1
Standard: Cpp03
...