-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-format
49 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
46
47
48
49
---
Language: Cpp
BasedOnStyle: Microsoft
ColumnLimit: 140
# Headers
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<.+>$'
Priority: 0
SortPriority: 1
- Regex: '^".+"$'
Priority: 1
SortPriority: 2
IncludeIsMainSourceRegex: '(\.impl(\..+)?\.hpp)$'
# General formatting
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: DontAlign
AlignTrailingComments: false
AllowAllConstructorInitializersOnNextLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortLambdasOnASingleLine: Empty
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
ConstructorInitializerAllOnOneLineOrOnePerLine: true
DerivePointerAlignment: false
FixNamespaceComments: false
PointerAlignment: Left
SpaceAfterTemplateKeyword: false
# Braces
BraceWrapping:
BeforeLambdaBody: true
SplitEmptyFunction: false
Cpp11BracedListStyle: false
SpaceBeforeCpp11BracedList: true
SpaceInEmptyBlock: true
# Indentation
UseTab: Always
TabWidth: 4
IndentWidth: 4
AccessModifierOffset: -4
NamespaceIndentation: All
IndentPPDirectives: AfterHash
...