-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.clang-format
61 lines (60 loc) · 1.73 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
Language: Cpp
Standard: Latest
BasedOnStyle: LLVM
ColumnLimit: 90
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
AccessModifierOffset: -4
AlignConsecutiveAssignments:
Enabled: true
AlignCompound: true
PadOperators: false
AlignConsecutiveBitFields:
Enabled: true
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AlwaysBreakTemplateDeclarations: Yes
BreakConstructorInitializers: BeforeComma
BreakBeforeBraces: Custom
BraceWrapping:
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
ConstructorInitializerIndentWidth: 0
Cpp11BracedListStyle: false
CompactNamespaces: true
IndentCaseLabels: true
IndentRequiresClause: true
IndentPPDirectives: AfterHash
KeepEmptyLinesAtTheStartOfBlocks: false
PointerAlignment: Middle
SortIncludes: true
IncludeBlocks: Preserve
IncludeCategories:
# 'stdafx.h' must come first if present
- Regex: 'stdafx.h'
Priority: -1
# Qt Headers in <> without extension.
- Regex: '<(Q|Qt)[A-Z][A-Za-z0-9]+>'
Priority: 4
# Headers in <> without extension.
- Regex: '<([A-Za-z0-9\Q/-_\E])+>'
Priority: 6
# Headers in <> from specific external libraries.
- Regex: '<(boost)\/.+>'
Priority: 5
# Headers in <> with extension.
- Regex: '<([A-Za-z0-9.\Q/-_\E])+>'
Priority: 3
# Qt ui_ Headers.
- Regex: '"ui_[A-Za-z0-9]+\.hpp"'
Priority: 1
# Headers in "" with extension.
- Regex: '"([A-Za-z0-9.\Q/-_\E])+"'
Priority: 2
...