forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
67 lines (59 loc) · 1.88 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
Language: Cpp
# BasedOnStyle
TabWidth: 8
UseTab: Never
IndentWidth: 2
ColumnLimit: 80
BreakBeforeBraces: Allman
IncludeCategories:
- Regex: '"config.h"'
Priority: -10
- Regex: '<stddef.h>'
Priority: -5
- Regex: '<.*>'
Priority: -4
- Regex: '".*_private.h"'
Priority: -3
- Regex: '"mutt.h"'
Priority: -2
# 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: 2
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