-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy path.clang-format
29 lines (29 loc) · 851 Bytes
/
.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
---
BasedOnStyle: 'Google'
AccessModifierOffset: -1
AlignAfterOpenBracket: 'AlwaysBreak'
AlignConsecutiveAssignments: true
AllowShortFunctionsOnASingleLine: 'None'
AlwaysBreakAfterReturnType: 'None'
AlwaysBreakTemplateDeclarations: true
BreakConstructorInitializersBeforeComma: true
BreakConstructorInitializers: 'AfterColon'
PenaltyReturnTypeOnItsOwnLine: 120
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
FixNamespaceComments: true
IncludeBlocks: 'Regroup'
IncludeCategories:
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IndentPPDirectives: 'AfterHash'
PointerAlignment: 'Left'
SortIncludes: true
SpaceAfterTemplateKeyword: false
SpacesBeforeTrailingComments: 2
UseTab: 'Never'