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