forked from banditcpp/snowhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
81 lines (69 loc) · 1.97 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# This .clang-format file is tested with clang-format 9.0.0
#
# Please use
# clang-format -style=file -i <your files...>
# before committing your changes.
---
Language: Cpp
Standard: Cpp03
ColumnLimit: 0
IndentWidth: 2
UseTab: Never
AccessModifierOffset: -2
NamespaceIndentation: All
FixNamespaceComments: false
IndentCaseLabels: false
ContinuationIndentWidth: 4
ConstructorInitializerIndentWidth: 4
IndentWrappedFunctionNames: false
AlwaysBreakTemplateDeclarations: true
SpaceAfterTemplateKeyword: false
DerivePointerAlignment: false
PointerAlignment: Left
BreakBeforeBraces: Custom
BraceWrapping:
AfterNamespace: true
AfterStruct: true
AfterClass: true
AfterFunction: true
AfterControlStatement: true
AfterEnum: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
SpacesInParentheses: false
SpaceInEmptyParentheses: false
SpacesInSquareBrackets: false
SpacesInAngles: false
SpaceAfterCStyleCast: false
SpacesInCStyleCastParentheses: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpacesBeforeTrailingComments: 1
SpacesInContainerLiterals: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
SortIncludes: false
IncludeCategories:
- Regex: 'snowhouse/'
Priority: 2
- Regex: '^<'
Priority: 1
- Regex: '.*'
Priority: 3
# XXX: There is no need to sort includes alphabetically,
# but standard library includes should come before snowhouse
# includes should come before local includes.
# AlignEscapedNewlinesLeft: false
# XXX: There should be no alignment at all, but this is not available
AlwaysBreakAfterReturnType: None
ReflowComments: false