-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
38 lines (37 loc) · 1.12 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: Microsoft
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveMacros: 'true'
AlignConsecutiveAssignments: 'true'
AlignEscapedNewlines: Left
AlignTrailingComments: 'true'
AllowAllConstructorInitializersOnNextLine: 'true'
AllowShortBlocksOnASingleLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: 'true'
AlwaysBreakTemplateDeclarations: 'Yes'
SortIncludes: true
BreakBeforeBraces: Custom
BraceWrapping:
SplitEmptyFunction: false
SplitEmptyRecord: false
IncludeBlocks: Regroup
IncludeCategories:
# Sort primary headers renms.h, skyscraper.h and heridium.h
- Regex: '<(renms.h|skyscraper.h|heridium.h)>'
Priority: 1
# External headers in <> with extension or /
- Regex: '<[-\w\/-_]+[\.\/][-\w\/-_]+>'
Priority: 2
# Metadata headers
- Regex: '<[-\w\/-_]+[\.meta\/][-\w\/-_]+>'
Priority: 3
# STL headers
- Regex: '<[-\w\/-_]+>'
Priority: 4
# Local headers in ""
- Regex: '"[-\w\/-_]*"'
Priority: 5
...