xref: /openbmc/sdeventplus/.clang-format (revision 7e2e60e7)
1---
2Language:        Cpp
3# BasedOnStyle:  LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
8AlignEscapedNewlinesLeft: false
9AlignOperands:   true
10AlignTrailingComments: true
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortBlocksOnASingleLine: false
13AllowShortCaseLabelsOnASingleLine: false
14AllowShortFunctionsOnASingleLine: None
15AllowShortIfStatementsOnASingleLine: false
16AllowShortLoopsOnASingleLine: false
17AlwaysBreakAfterDefinitionReturnType: None
18AlwaysBreakAfterReturnType: None
19AlwaysBreakBeforeMultilineStrings: false
20AlwaysBreakTemplateDeclarations: true
21BinPackArguments: true
22BinPackParameters: true
23BraceWrapping:
24  AfterClass:      true
25  AfterControlStatement: true
26  AfterEnum:       true
27  AfterFunction:   true
28  AfterNamespace:  true
29  AfterObjCDeclaration: true
30  AfterStruct:     true
31  AfterUnion:      true
32  BeforeCatch:     true
33  BeforeElse:      true
34  IndentBraces:    false
35BreakBeforeBinaryOperators: None
36BreakBeforeBraces: Custom
37BreakBeforeTernaryOperators: true
38BreakConstructorInitializers: AfterColon
39ColumnLimit:     80
40CommentPragmas:  '^ IWYU pragma:'
41ConstructorInitializerAllOnOneLineOrOnePerLine: false
42ConstructorInitializerIndentWidth: 4
43ContinuationIndentWidth: 4
44Cpp11BracedListStyle: true
45DerivePointerAlignment: false
46PointerAlignment: Left
47DisableFormat:   false
48ExperimentalAutoDetectBinPacking: false
49FixNamespaceComments: true
50ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
51IndentCaseLabels: true
52IndentWidth:     4
53IndentWrappedFunctionNames: true
54KeepEmptyLinesAtTheStartOfBlocks: true
55MacroBlockBegin: ''
56MacroBlockEnd:   ''
57MaxEmptyLinesToKeep: 1
58NamespaceIndentation: None
59ObjCBlockIndentWidth: 2
60ObjCSpaceAfterProperty: false
61ObjCSpaceBeforeProtocolList: true
62PenaltyBreakBeforeFirstCallParameter: 19
63PenaltyBreakComment: 300
64PenaltyBreakFirstLessLess: 120
65PenaltyBreakString: 1000
66PenaltyExcessCharacter: 1000000
67PenaltyReturnTypeOnItsOwnLine: 60
68ReflowComments:  true
69SortIncludes:    true
70SortUsingDeclarations: true
71SpaceAfterCStyleCast: false
72SpaceBeforeAssignmentOperators: true
73SpaceBeforeParens: ControlStatements
74SpaceInEmptyParentheses: false
75SpacesBeforeTrailingComments: 1
76SpacesInAngles:  false
77SpacesInContainerLiterals: true
78SpacesInCStyleCastParentheses: false
79SpacesInParentheses: false
80SpacesInSquareBrackets: false
81Standard:        Cpp11
82TabWidth:        4
83UseTab:          Never
84...
85
86