forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
98 lines (85 loc) · 2.54 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Language: Cpp
# BasedOnStyle
TabWidth: 8
UseTab: Never
IndentWidth: 2
ColumnLimit: 80
BreakBeforeBraces: Allman
IncludeCategories:
# Standard library headers
- Regex: '"config\.h"'
Priority: -130
- Regex: '"acutest\.h"'
Priority: -120
- Regex: '<stddef\.h>'
Priority: -110
- Regex: '<.*>'
Priority: -100
# Backend private header
- Regex: '"private\.h"'
Priority: -90
# NeoMutt library headers
- Regex: '"mutt/.*\.h"'
Priority: -80
- Regex: '"address/.*\.h"'
Priority: -70
- Regex: '"config/.*\.h"'
Priority: -60
- Regex: '"email/.*\.h"'
Priority: -50
- Regex: '"core/.*\.h"'
Priority: -40
- Regex: '"alias/.*\.h"'
Priority: -35
- Regex: '"conn/.*\.h"'
Priority: -30
- Regex: '"gui/.*\.h"'
Priority: -20
# NeoMutt general purpose headers
- Regex: '"mutt\.h"'
Priority: -10
- Regex: '"debug/.*\.h"'
Priority: -5
# Main Header 0
# Backend using its own library header
- Regex: '"lib\.h"'
Priority: 2
# All backend library headers
- Regex: '".*/lib\.h"'
Priority: 5
# All other NeoMutt headers
- Regex: '".*"'
Priority: 10
AlignAfterOpenBracket: true
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlignTrailingComments: 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