-
-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy path.clang-format
More file actions
31 lines (31 loc) · 846 Bytes
/
.clang-format
File metadata and controls
31 lines (31 loc) · 846 Bytes
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
BasedOnStyle: Microsoft
AccessModifierOffset: -4
AlignConsecutiveMacros: Consecutive
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
AllowShortFunctionsOnASingleLine: Inline
AllowShortLambdasOnASingleLine: Inline
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Stroustrup
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<[a-zA-Z0-9_]+\.h>' # C system headers
Priority: 1
SortPriority: 0
CaseSensitive: false
- Regex: '^<[^/]*>' # C++ standard library headers
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*>' # Other libraries' .h files
Priority: 3
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 4
SortPriority: 0
CaseSensitive: false
InsertBraces: true
InsertNewlineAtEOF: true
MaxEmptyLinesToKeep: 1
SpacesBeforeTrailingComments: 2