-
Notifications
You must be signed in to change notification settings - Fork 5
/
.clang-format
46 lines (40 loc) · 1.08 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
---
Language: Cpp
Standard: Cpp11
BasedOnStyle: LLVM
# Basic settings
UseTab: Never
ColumnLimit: 80
IndentWidth: 4
TabWidth: 4
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
# Try to preserve merge-friendly diff.
AlignAfterOpenBracket: AlwaysBreak
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: Empty
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
# Breaking style
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: WebKit
# Include
IncludeCategories:
- Regex: '^<.*[^h]>'
Priority: -2 # Standard header firsts.
- Regex: '^<.*'
Priority: -1 # "System" header next.
- Regex: '^".*'
Priority: 0 # Local header last.
IncludeIsMainRegex: '(test_)?$'
# Macros
# To update if we ever use macros that acts as block/foreach.
ForEachMacros: []
MacroBlockBegin: ''
MacroBlockEnd: ''
# Misc.
KeepEmptyLinesAtTheStartOfBlocks: false
PointerAlignment: Left
...