xref: /openbmc/sdbusplus/.clang-format (revision 41f42f6b)
1072da3eaSAndrew Geissler---
2072da3eaSAndrew GeisslerLanguage:        Cpp
3072da3eaSAndrew Geissler# BasedOnStyle:  LLVM
4072da3eaSAndrew GeisslerAccessModifierOffset: -2
5072da3eaSAndrew GeisslerAlignAfterOpenBracket: Align
6072da3eaSAndrew GeisslerAlignConsecutiveAssignments: false
7072da3eaSAndrew GeisslerAlignConsecutiveDeclarations: false
8127b8abeSPatrick WilliamsAlignEscapedNewlines: Right
9*41f42f6bSPatrick WilliamsAlignOperands:  Align
10072da3eaSAndrew GeisslerAlignTrailingComments: true
11072da3eaSAndrew GeisslerAllowAllParametersOfDeclarationOnNextLine: true
12f289c65fSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
13072da3eaSAndrew GeisslerAllowShortCaseLabelsOnASingleLine: false
14f289c65fSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
15072da3eaSAndrew GeisslerAllowShortIfStatementsOnASingleLine: false
16072da3eaSAndrew GeisslerAllowShortLoopsOnASingleLine: false
17072da3eaSAndrew GeisslerAlwaysBreakAfterReturnType: None
18072da3eaSAndrew GeisslerAlwaysBreakBeforeMultilineStrings: false
19127b8abeSPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
20072da3eaSAndrew GeisslerBinPackArguments: true
21072da3eaSAndrew GeisslerBinPackParameters: true
22072da3eaSAndrew GeisslerBraceWrapping:
2301ac5ca2SPatrick Williams  AfterCaseLabel:  true
24072da3eaSAndrew Geissler  AfterClass:      true
25072da3eaSAndrew Geissler  AfterControlStatement: true
26072da3eaSAndrew Geissler  AfterEnum:       true
27072da3eaSAndrew Geissler  AfterFunction:   true
28072da3eaSAndrew Geissler  AfterNamespace:  true
29072da3eaSAndrew Geissler  AfterObjCDeclaration: true
30072da3eaSAndrew Geissler  AfterStruct:     true
31072da3eaSAndrew Geissler  AfterUnion:      true
32127b8abeSPatrick Williams  AfterExternBlock: true
33072da3eaSAndrew Geissler  BeforeCatch:     true
34072da3eaSAndrew Geissler  BeforeElse:      true
35072da3eaSAndrew Geissler  IndentBraces:    false
36127b8abeSPatrick Williams  SplitEmptyFunction:   false
37127b8abeSPatrick Williams  SplitEmptyRecord:     false
38127b8abeSPatrick Williams  SplitEmptyNamespace:  false
39072da3eaSAndrew GeisslerBreakBeforeBinaryOperators: None
40072da3eaSAndrew GeisslerBreakBeforeBraces: Custom
41072da3eaSAndrew GeisslerBreakBeforeTernaryOperators: true
42072da3eaSAndrew GeisslerBreakConstructorInitializers: AfterColon
43127b8abeSPatrick WilliamsBreakInheritanceList: AfterColon
44f289c65fSPatrick WilliamsBreakStringLiterals: false
45072da3eaSAndrew GeisslerColumnLimit:     80
46072da3eaSAndrew GeisslerCommentPragmas:  '^ IWYU pragma:'
47127b8abeSPatrick WilliamsCompactNamespaces: false
48072da3eaSAndrew GeisslerConstructorInitializerAllOnOneLineOrOnePerLine: false
49072da3eaSAndrew GeisslerConstructorInitializerIndentWidth: 4
50072da3eaSAndrew GeisslerContinuationIndentWidth: 4
51072da3eaSAndrew GeisslerCpp11BracedListStyle: true
52f289c65fSPatrick WilliamsDeriveLineEnding: false
53e0d6965eSWilliam A. Kennington IIIDerivePointerAlignment: false
54072da3eaSAndrew GeisslerPointerAlignment: Left
55072da3eaSAndrew GeisslerDisableFormat:   false
56072da3eaSAndrew GeisslerExperimentalAutoDetectBinPacking: false
57072da3eaSAndrew GeisslerFixNamespaceComments: true
58072da3eaSAndrew GeisslerForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
5995269dbcSPatrick VentureIncludeBlocks: Regroup
6095269dbcSPatrick VentureIncludeCategories:
6195269dbcSPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
62127b8abeSPatrick Williams    Priority:        7
6395269dbcSPatrick Venture  - Regex:           '^"config.h"'
6495269dbcSPatrick Venture    Priority:        -1
65127b8abeSPatrick Williams  - Regex:           '^".*\.h"'
6695269dbcSPatrick Venture    Priority:        1
67127b8abeSPatrick Williams  - Regex:           '^".*\.hpp"'
6895269dbcSPatrick Venture    Priority:        2
69127b8abeSPatrick Williams  - Regex:           '^<.*\.h>'
7095269dbcSPatrick Venture    Priority:        3
71127b8abeSPatrick Williams  - Regex:           '^<.*\.hpp>'
7295269dbcSPatrick Venture    Priority:        4
73127b8abeSPatrick Williams  - Regex:           '^<.*'
74127b8abeSPatrick Williams    Priority:        5
75127b8abeSPatrick Williams  - Regex:           '.*'
76127b8abeSPatrick Williams    Priority:        6
77072da3eaSAndrew GeisslerIndentCaseLabels: true
78*41f42f6bSPatrick WilliamsIndentRequiresClause: true
79072da3eaSAndrew GeisslerIndentWidth:     4
80f9c02dbdSAdriana KobylakIndentWrappedFunctionNames: true
81f289c65fSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
82072da3eaSAndrew GeisslerMacroBlockBegin: ''
83072da3eaSAndrew GeisslerMacroBlockEnd:   ''
84072da3eaSAndrew GeisslerMaxEmptyLinesToKeep: 1
85072da3eaSAndrew GeisslerNamespaceIndentation: None
86072da3eaSAndrew GeisslerObjCBlockIndentWidth: 2
87072da3eaSAndrew GeisslerObjCSpaceAfterProperty: false
88072da3eaSAndrew GeisslerObjCSpaceBeforeProtocolList: true
891a25a10dSPatrick WilliamsPenaltyBreakAssignment: 25
90072da3eaSAndrew GeisslerPenaltyBreakBeforeFirstCallParameter: 19
91072da3eaSAndrew GeisslerPenaltyBreakComment: 300
92072da3eaSAndrew GeisslerPenaltyBreakFirstLessLess: 120
93072da3eaSAndrew GeisslerPenaltyBreakString: 1000
94072da3eaSAndrew GeisslerPenaltyExcessCharacter: 1000000
95072da3eaSAndrew GeisslerPenaltyReturnTypeOnItsOwnLine: 60
961a25a10dSPatrick WilliamsPenaltyIndentedWhitespace: 0
97*41f42f6bSPatrick WilliamsQualifierAlignment: Left
98*41f42f6bSPatrick WilliamsReferenceAlignment: Left
99072da3eaSAndrew GeisslerReflowComments:  true
100*41f42f6bSPatrick WilliamsRequiresClausePosition: OwnLine
10195269dbcSPatrick VentureSortIncludes:    true
10206da562aSWilliam A. Kennington IIISortUsingDeclarations: true
103072da3eaSAndrew GeisslerSpaceAfterCStyleCast: false
104127b8abeSPatrick WilliamsSpaceAfterTemplateKeyword: true
105072da3eaSAndrew GeisslerSpaceBeforeAssignmentOperators: true
106127b8abeSPatrick WilliamsSpaceBeforeCpp11BracedList: false
107127b8abeSPatrick WilliamsSpaceBeforeCtorInitializerColon: true
108127b8abeSPatrick WilliamsSpaceBeforeInheritanceColon: true
109072da3eaSAndrew GeisslerSpaceBeforeParens: ControlStatements
110127b8abeSPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
111072da3eaSAndrew GeisslerSpaceInEmptyParentheses: false
112072da3eaSAndrew GeisslerSpacesBeforeTrailingComments: 1
113072da3eaSAndrew GeisslerSpacesInAngles:  false
114072da3eaSAndrew GeisslerSpacesInContainerLiterals: true
115072da3eaSAndrew GeisslerSpacesInCStyleCastParentheses: false
116072da3eaSAndrew GeisslerSpacesInParentheses: false
117072da3eaSAndrew GeisslerSpacesInSquareBrackets: false
118f289c65fSPatrick WilliamsStandard:        Latest
119072da3eaSAndrew GeisslerTabWidth:        4
120f289c65fSPatrick WilliamsUseCRLF: false
121072da3eaSAndrew GeisslerUseTab:          Never
122072da3eaSAndrew Geissler...
123072da3eaSAndrew Geissler
124