-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
46 lines (43 loc) · 1.14 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
{
UseTab: Never,
IndentWidth: 4,
TabWidth: 4,
IncludeCategories:
[{ Regex: "<.*>", Priority: 0 }, { Regex: '".*"', Priority: 1 }],
IncludeBlocks: Regroup,
SortIncludes: true,
IndentPPDirectives: BeforeHash,
BreakBeforeBraces: Custom,
BraceWrapping:
{
AfterClass: true,
AfterControlStatement: false,
AfterEnum: false,
AfterFunction: true,
AfterNamespace: true,
AfterObjCDeclaration: true,
AfterStruct: false,
AfterUnion: true,
BeforeCatch: false,
BeforeElse: false,
IndentBraces: false,
},
AllowShortIfStatementsOnASingleLine: false,
AllowShortEnumsOnASingleLine: false,
AllowShortBlocksOnASingleLine: Never,
AllowShortFunctionsOnASingleLine: None,
IndentCaseLabels: false,
# ColumnLimit: 0,
ColumnLimit: 300,
PointerAlignment: Right,
AccessModifierOffset: -4,
NamespaceIndentation: All,
IndentAccessModifiers: true,
FixNamespaceComments: false,
MaxEmptyLinesToKeep: 1,
SpacesInParentheses: false,
SpacesInCStyleCastParentheses: false,
SpaceInEmptyParentheses: false,
CommentPragmas: '^\* .*',
SeparateDefinitionBlocks : Always,
}