-
Notifications
You must be signed in to change notification settings - Fork 37
/
.clang-format
40 lines (40 loc) · 1.16 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
BasedOnStyle: Google
AccessModifierOffset: -4
AllowShortIfStatementsOnASingleLine: true
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Allman
BreakConstructorInitializersBeforeComma: true
ColumnLimit: 100
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 2
Cpp11BracedListStyle: true
IndentCaseLabels: false
IndentWidth: 4
FixNamespaceComments: true
NamespaceIndentation: None
Standard: Latest
UseTab: Never
DerivePointerAlignment: false
PointerAlignment: Left
IncludeBlocks: Regroup
IncludeCategories:
# Main Module Header automatically gets a priority of 0
# Local/Private Headers
- Regex: '^"[^\/"]*"$'
Priority: 200
# Project/subproject headers
- Regex: '^"[^"]*"$'
Priority: 300
# standard library headers
- Regex: '^<[^>\.\/]+>$'
Priority: 500
# standard library headers - experimental
- Regex: '^<experimental[^>\.]+>$'
Priority: 600
# third party libraries
- Regex: '^<[^>]+>$'
Priority: 400
# Everything that didn't match
- Regex: '.*'
Priority: 1000