-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
45 lines (45 loc) · 1.13 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
---
# We'll use defaults from the LLVM style, but with 4 columns indentation.
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
ColumnLimit: 120
IndentPPDirectives: AfterHash
BreakBeforeBraces: Custom
AlwaysBreakTemplateDeclarations: Yes
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterExternBlock: false
AfterStruct: false
AfterNamespace: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
AllowShortEnumsOnASingleLine: false
IncludeCategories:
- Regex: '<[[:alnum:]_]+>'
Priority: -6
- Regex: '<[[:alnum:]._\/]+>'
Priority: -5
- Regex: '<[[:alnum:]._]+>'
Priority: -4
- Regex: '<[[:alnum:].\/]+>'
Priority: -3
- Regex: '"[[:alnum:]._]+"'
Priority: -1
- Regex: '.*'
Priority: -2
...