xref: /openbmc/sdbusplus/.clang-format (revision 06f265f6)
1072da3eaSAndrew Geissler---
2072da3eaSAndrew GeisslerLanguage:        Cpp
3072da3eaSAndrew Geissler# BasedOnStyle:  LLVM
4072da3eaSAndrew GeisslerAccessModifierOffset: -2
5072da3eaSAndrew GeisslerAlignAfterOpenBracket: Align
6072da3eaSAndrew GeisslerAlignConsecutiveAssignments: false
7072da3eaSAndrew GeisslerAlignConsecutiveDeclarations: false
8127b8abeSPatrick WilliamsAlignEscapedNewlines: Right
941f42f6bSPatrick WilliamsAlignOperands:  Align
10d2149044SPatrick WilliamsAlignTrailingComments:
11d2149044SPatrick Williams  Kind: Always
12d2149044SPatrick Williams  OverEmptyLines: 1
13072da3eaSAndrew GeisslerAllowAllParametersOfDeclarationOnNextLine: true
14f289c65fSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15072da3eaSAndrew GeisslerAllowShortCaseLabelsOnASingleLine: false
16f289c65fSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
176db88387SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
186db88387SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19072da3eaSAndrew GeisslerAllowShortLoopsOnASingleLine: false
20072da3eaSAndrew GeisslerAlwaysBreakAfterReturnType: None
21072da3eaSAndrew GeisslerAlwaysBreakBeforeMultilineStrings: false
22127b8abeSPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
23072da3eaSAndrew GeisslerBinPackArguments: true
24072da3eaSAndrew GeisslerBinPackParameters: true
256db88387SPatrick WilliamsBitFieldColonSpacing: None
26072da3eaSAndrew GeisslerBraceWrapping:
2701ac5ca2SPatrick Williams  AfterCaseLabel:  true
28072da3eaSAndrew Geissler  AfterClass:      true
29072da3eaSAndrew Geissler  AfterControlStatement: true
30072da3eaSAndrew Geissler  AfterEnum:       true
316db88387SPatrick Williams  AfterExternBlock: true
32072da3eaSAndrew Geissler  AfterFunction:   true
33072da3eaSAndrew Geissler  AfterNamespace:  true
34072da3eaSAndrew Geissler  AfterObjCDeclaration: true
35072da3eaSAndrew Geissler  AfterStruct:     true
36072da3eaSAndrew Geissler  AfterUnion:      true
37072da3eaSAndrew Geissler  BeforeCatch:     true
38072da3eaSAndrew Geissler  BeforeElse:      true
396db88387SPatrick Williams  BeforeLambdaBody: false
406db88387SPatrick Williams  BeforeWhile:     false
41072da3eaSAndrew Geissler  IndentBraces:    false
42127b8abeSPatrick Williams  SplitEmptyFunction:   false
43127b8abeSPatrick Williams  SplitEmptyRecord:     false
44127b8abeSPatrick Williams  SplitEmptyNamespace:  false
45d2149044SPatrick WilliamsBreakAfterAttributes: Never
46072da3eaSAndrew GeisslerBreakBeforeBinaryOperators: None
47072da3eaSAndrew GeisslerBreakBeforeBraces: Custom
48072da3eaSAndrew GeisslerBreakBeforeTernaryOperators: true
49072da3eaSAndrew GeisslerBreakConstructorInitializers: AfterColon
50127b8abeSPatrick WilliamsBreakInheritanceList: AfterColon
51f289c65fSPatrick WilliamsBreakStringLiterals: false
52072da3eaSAndrew GeisslerColumnLimit:     80
53072da3eaSAndrew GeisslerCommentPragmas:  '^ IWYU pragma:'
54127b8abeSPatrick WilliamsCompactNamespaces: false
55072da3eaSAndrew GeisslerConstructorInitializerIndentWidth: 4
56072da3eaSAndrew GeisslerContinuationIndentWidth: 4
57072da3eaSAndrew GeisslerCpp11BracedListStyle: true
58e0d6965eSWilliam A. Kennington IIIDerivePointerAlignment: false
59072da3eaSAndrew GeisslerDisableFormat:   false
60072da3eaSAndrew GeisslerFixNamespaceComments: true
616db88387SPatrick WilliamsForEachMacros:
626db88387SPatrick Williams  - foreach
636db88387SPatrick Williams  - Q_FOREACH
646db88387SPatrick Williams  - BOOST_FOREACH
6595269dbcSPatrick VentureIncludeBlocks: Regroup
6695269dbcSPatrick VentureIncludeCategories:
6795269dbcSPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
68127b8abeSPatrick Williams    Priority:        7
6995269dbcSPatrick Venture  - Regex:           '^"config.h"'
7095269dbcSPatrick Venture    Priority:        -1
71127b8abeSPatrick Williams  - Regex:           '^".*\.h"'
7295269dbcSPatrick Venture    Priority:        1
73127b8abeSPatrick Williams  - Regex:           '^".*\.hpp"'
7495269dbcSPatrick Venture    Priority:        2
75127b8abeSPatrick Williams  - Regex:           '^<.*\.h>'
7695269dbcSPatrick Venture    Priority:        3
77127b8abeSPatrick Williams  - Regex:           '^<.*\.hpp>'
7895269dbcSPatrick Venture    Priority:        4
79127b8abeSPatrick Williams  - Regex:           '^<.*'
80127b8abeSPatrick Williams    Priority:        5
81127b8abeSPatrick Williams  - Regex:           '.*'
82127b8abeSPatrick Williams    Priority:        6
83072da3eaSAndrew GeisslerIndentCaseLabels: true
846db88387SPatrick WilliamsIndentExternBlock: NoIndent
8541f42f6bSPatrick WilliamsIndentRequiresClause: true
86072da3eaSAndrew GeisslerIndentWidth:     4
87f9c02dbdSAdriana KobylakIndentWrappedFunctionNames: true
88d2149044SPatrick WilliamsInsertNewlineAtEOF: true
89f289c65fSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*06f265f6SPatrick WilliamsLambdaBodyIndentation: Signature
91d2149044SPatrick WilliamsLineEnding: LF
92072da3eaSAndrew GeisslerMacroBlockBegin: ''
93072da3eaSAndrew GeisslerMacroBlockEnd:   ''
94072da3eaSAndrew GeisslerMaxEmptyLinesToKeep: 1
95072da3eaSAndrew GeisslerNamespaceIndentation: None
96072da3eaSAndrew GeisslerObjCBlockIndentWidth: 2
97072da3eaSAndrew GeisslerObjCSpaceAfterProperty: false
98072da3eaSAndrew GeisslerObjCSpaceBeforeProtocolList: true
996db88387SPatrick WilliamsPackConstructorInitializers: BinPack
1001a25a10dSPatrick WilliamsPenaltyBreakAssignment: 25
101*06f265f6SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102072da3eaSAndrew GeisslerPenaltyBreakComment: 300
103072da3eaSAndrew GeisslerPenaltyBreakFirstLessLess: 120
104072da3eaSAndrew GeisslerPenaltyBreakString: 1000
105*06f265f6SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106072da3eaSAndrew GeisslerPenaltyExcessCharacter: 1000000
107072da3eaSAndrew GeisslerPenaltyReturnTypeOnItsOwnLine: 60
108*06f265f6SPatrick WilliamsPenaltyIndentedWhitespace: 1
1096db88387SPatrick WilliamsPointerAlignment: Left
11041f42f6bSPatrick WilliamsQualifierAlignment: Left
11141f42f6bSPatrick WilliamsReferenceAlignment: Left
112072da3eaSAndrew GeisslerReflowComments:  true
11341f42f6bSPatrick WilliamsRequiresClausePosition: OwnLine
114d2149044SPatrick WilliamsRequiresExpressionIndentation: Keyword
1156db88387SPatrick WilliamsSortIncludes: CaseSensitive
11606da562aSWilliam A. Kennington IIISortUsingDeclarations: true
117072da3eaSAndrew GeisslerSpaceAfterCStyleCast: false
118127b8abeSPatrick WilliamsSpaceAfterTemplateKeyword: true
119072da3eaSAndrew GeisslerSpaceBeforeAssignmentOperators: true
120127b8abeSPatrick WilliamsSpaceBeforeCpp11BracedList: false
121127b8abeSPatrick WilliamsSpaceBeforeCtorInitializerColon: true
122127b8abeSPatrick WilliamsSpaceBeforeInheritanceColon: true
123072da3eaSAndrew GeisslerSpaceBeforeParens: ControlStatements
124127b8abeSPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
125072da3eaSAndrew GeisslerSpaceInEmptyParentheses: false
126072da3eaSAndrew GeisslerSpacesBeforeTrailingComments: 1
1276db88387SPatrick WilliamsSpacesInAngles: Never
128072da3eaSAndrew GeisslerSpacesInContainerLiterals: true
129072da3eaSAndrew GeisslerSpacesInCStyleCastParentheses: false
130072da3eaSAndrew GeisslerSpacesInParentheses: false
131072da3eaSAndrew GeisslerSpacesInSquareBrackets: false
132f289c65fSPatrick WilliamsStandard:        Latest
133072da3eaSAndrew GeisslerTabWidth:        4
134072da3eaSAndrew GeisslerUseTab:          Never
135072da3eaSAndrew Geissler...
136072da3eaSAndrew Geissler
137