-
Notifications
You must be signed in to change notification settings - Fork 17
/
.clang-format
38 lines (37 loc) · 1.06 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
BasedOnStyle: Google
ColumnLimit: 120
IndentWidth: 4
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: WithoutElse # Maybe want Never
DerivePointerAlignment: false
PointerAlignment: Left
AllowAllConstructorInitializersOnNextLine: false
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
BinPackArguments: false
BinPackParameters: false
AlignConsecutiveAssignments: true
AlignConsecutiveMacros: true
AccessModifierOffset: -2
SortIncludes: true
IndentPPDirectives: BeforeHash
IncludeBlocks: Regroup
IncludeCategories:
# Rogue Directives.h goes first
- Regex: '^((<|")(rogue)/(Directives.h))'
Priority: -1
# Rogue headers go last
- Regex: '^((<|")(rogue)/)'
Priority: 5
# C-headers
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 2
# C++ headers
- Regex: '^<.*'
Priority: 3
# Everything else
- Regex: '.*'
Priority: 4