forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
77 lines (69 loc) · 2.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
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
Language: Cpp
# BasedOnStyle
TabWidth: 8
UseTab: Never
IndentWidth: 2
ColumnLimit: 80
BreakBeforeBraces: Allman
IncludeCategories:
- Regex: '"acutest\.h"'
Priority: -12
- Regex: '"config\.h"'
Priority: -10
- Regex: '<stddef\.h>'
Priority: -8
- Regex: '<.*>'
Priority: -7
- Regex: '".*_private\.h"'
Priority: -6
- Regex: '"mutt/.*\.h"'
Priority: -5
- Regex: '"config/.*\.h"'
Priority: -4
- Regex: '"email/.*\.h"'
Priority: -3
- Regex: '"conn/.*\.h"'
Priority: -2
- Regex: '"mutt\.h"'
Priority: -1
# Main Header 0
- Regex: '".*"'
Priority: 5
AlignAfterOpenBracket: true
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlwaysBreakAfterReturnType: None
BinPackArguments: true
BinPackParameters: true
BreakBeforeBinaryOperators: false
BreakBeforeTernaryOperators: false
Cpp11BracedListStyle: false
DerivePointerAlignment: false
IndentCaseLabels: true
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
PointerAlignment: Right
ReflowComments: false
SortIncludes: true
SpaceAfterCStyleCast: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
# Allow some slightly over-long lines
PenaltyExcessCharacter: 1
# NEVER
AllowShortFunctionsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
# OPTIONAL
AlignTrailingComments: true
# AlignConsecutiveAssignments: true
# AlignConsecutiveDeclarations: true
# AlwaysBreakBeforeMultilineStrings: true
# SpacesBeforeTrailingComments: 2