]> granicus.if.org Git - libevent/blob - .clang-format
doc: add build prerequisites
[libevent] / .clang-format
1 ---
2 Language:          Cpp
3 BasedOnStyle:      LLVM
4
5 AccessModifierOffset: -4
6
7 AlignAfterOpenBracket: DontAlign
8 AlignEscapedNewlinesLeft: true
9 # AlignOperands: true
10 AlignTrailingComments: true
11
12 AllowAllParametersOfDeclarationOnNextLine: true
13 AllowShortBlocksOnASingleLine: false
14 AllowShortCaseLabelsOnASingleLine: false
15 AllowShortFunctionsOnASingleLine: All
16 AllowShortIfStatementsOnASingleLine: false
17 AllowShortLoopsOnASingleLine: false
18
19 AlwaysBreakAfterDefinitionReturnType: All
20 AlwaysBreakBeforeMultilineStrings: false
21 AlwaysBreakTemplateDeclarations: false
22
23 # BinPackArguments: false
24 # BinPackParameters: true
25
26 BreakBeforeBinaryOperators: false
27 BreakBeforeBraces: Custom
28 BraceWrapping: { AfterFunction: true }
29 BreakBeforeTernaryOperators: true
30 BreakConstructorInitializersBeforeComma: true
31
32 ColumnLimit:     80
33
34 ContinuationIndentWidth: 4
35
36 DerivePointerAlignment: false #XXX
37 DisableFormat:   false
38 ExperimentalAutoDetectBinPacking: false #XXX
39 ForEachMacros:   [ LIST_FOREACH, SIMPLEQ_FOREACH, CIRCLEQ_FOREACH, TAILQ_FOREACH, TAILQ_FOREACH_REVERSE, HT_FOREACH ]
40
41 IndentCaseLabels: false
42 IndentFunctionDeclarationAfterType: false
43 IndentWidth:     4
44 IndentWrappedFunctionNames: false
45
46 KeepEmptyLinesAtTheStartOfBlocks: true
47 MaxEmptyLinesToKeep: 2
48
49 PointerAlignment: Right #XXX
50
51 # SpaceAfterCStyleCast: false
52 SpaceBeforeAssignmentOperators: true
53 SpaceBeforeParens: ControlStatements
54 SpaceInEmptyParentheses: false
55 SpacesBeforeTrailingComments: 1
56 SpacesInAngles:  false
57 SpacesInCStyleCastParentheses: false
58 SpacesInParentheses: false
59 Standard:        Cpp03
60 TabWidth:        4
61 UseTab:          Always
62 SortIncludes:    false
63 ...