/
.clang-format
51 lines (41 loc) · 996 Bytes
/
.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
---
Language: Cpp
BasedOnStyle: LLVM
UseTab: Never
IndentWidth: 4
TabWidth: 4
BreakBeforeBraces: Linux
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: true
ColumnLimit: 0
AccessModifierOffset: -2
PointerAlignment: Left
AlwaysBreakTemplateDeclarations: Yes
# not working.
CompactNamespaces: true
FixNamespaceComments: true
# Some are errors, or just not used by my clang-format :'(.
BraceWrapping:
AfterNamespace: true
AfterClass: true
# AfterCaseLabel: false
# AfterControlStatement: MultiLine
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
# BeforeLambdaBody: true
SplitEmptyFunction: true
# Really prefer All in header, None in source.
NamespaceIndentation: All
#I like these
SortUsingDeclarations: true
SortIncludes: true
IncludeBlocks: Preserve
...