forked from FreeRADIUS/freeradius-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
116 lines (97 loc) · 2.19 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
Language: Cpp
Standard: Cpp11
# Basic dimensions
IndentWidth: 8
TabWidth: 8
UseTab: Always
ColumnLimit: 120
ConstructorInitializerIndentWidth: 8
SortIncludes: false
#
# Indents braced list initialisers correctly, with a space
# after the opening brace, and before the closing brace.
#
# static CONF_PARSER group_config[] = {
# { FR_CONF_OFFSET("filter", FR_TYPE_STRING, rlm_ldap_t, groupobj_filter) }
# };
#
ContinuationIndentWidth: 8
Cpp11BracedListStyle: false
AlignAfterOpenBracket: true
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: true
AlignOperands: true
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
#
# Allows `if (foo) bar;`
#
AllowShortIfStatementsOnASingleLine: true
#
# Allows `while (foo) bar;`
#
AllowShortLoopsOnASingleLine: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
#
# Place binary operators at the end of the lines of a multiline condition
#
BreakBeforeBinaryOperators: None
#
# Ensures the operators are placed at the end of the terms
#
BreakBeforeTernaryOperators: false
#
# "breaks really long strings that would"
# "exceed the maximum column width into"
# "nice blocks like this"
#
BreakStringLiterals: true
BinPackArguments: true
BinPackParameters: true
#
# switch (foo) {
# case 'bar':
# break;
#
# case 'baz':
# break;
# }
#
IndentCaseLabels: false
#
# #ifdef foo
# # error bar
# #endif
#
IndentPPDirectives: AfterHash
#
# Ensures pointers '*' are placed next to the variable name
# instead of the type.
#
PointerAlignment: Right
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 8
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
MaxEmptyLinesToKeep: 1