-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
46 lines (46 loc) · 1.18 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
41
42
43
44
45
46
AccessModifierOffset: -4
AlignTrailingComments: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AlwaysBreakTemplateDeclarations: Yes
BraceWrapping:
AfterControlStatement: MultiLine
BeforeCatch: true
BeforeElse: true
BreakAfterAttributes: Leave
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterComma
ColumnLimit: 0
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
IncludeBlocks: Regroup
IncludeCategories:
- Regex: "^<[a-z_]+>$"
CaseSensitive: true
Priority: 100
- Regex: "^<[^>]+>$"
Priority: 200
- Regex: '^"[^"/]+/[^"]+"$'
Priority: 300
SortPriority: 310
- Regex: '^"[^"]+"$'
Priority: 300
SortPriority: 320
IndentExternBlock: NoIndent
IndentPPDirectives: AfterHash
IndentRequiresClause: false
IndentWidth: 4
InsertNewlineAtEOF: true
MaxEmptyLinesToKeep: 2
PointerAlignment: Left
PPIndentWidth: 2
QualifierAlignment: Left
ReferenceAlignment: Pointer
RemoveSemicolon: true
ShortNamespaceLines: 0
SortIncludes: CaseInsensitive
SpacesBeforeTrailingComments: 2
SpacesInContainerLiterals: false