xref: /openbmc/libbej/.clang-format (revision 6f3082ea)
18bc8ba8eSkasunath---
28bc8ba8eSkasunathLanguage:        Cpp
38bc8ba8eSkasunath# BasedOnStyle:  LLVM
48bc8ba8eSkasunathAccessModifierOffset: -2
58bc8ba8eSkasunathAlignAfterOpenBracket: Align
68bc8ba8eSkasunathAlignConsecutiveAssignments: false
78bc8ba8eSkasunathAlignConsecutiveDeclarations: false
88bc8ba8eSkasunathAlignEscapedNewlines: Right
9435526a5SPatrick WilliamsAlignOperands:  Align
10435526a5SPatrick WilliamsAlignTrailingComments:
11435526a5SPatrick Williams  Kind: Always
12435526a5SPatrick Williams  OverEmptyLines: 1
138bc8ba8eSkasunathAllowAllParametersOfDeclarationOnNextLine: true
14435526a5SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
158bc8ba8eSkasunathAllowShortCaseLabelsOnASingleLine: false
16435526a5SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17*6f3082eaSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*6f3082eaSPatrick WilliamsAllowShortLambdasOnASingleLine: true
198bc8ba8eSkasunathAllowShortLoopsOnASingleLine: false
208bc8ba8eSkasunathAlwaysBreakAfterReturnType: None
218bc8ba8eSkasunathAlwaysBreakBeforeMultilineStrings: false
228bc8ba8eSkasunathAlwaysBreakTemplateDeclarations: Yes
238bc8ba8eSkasunathBinPackArguments: true
248bc8ba8eSkasunathBinPackParameters: true
25*6f3082eaSPatrick WilliamsBitFieldColonSpacing: None
268bc8ba8eSkasunathBraceWrapping:
278bc8ba8eSkasunath  AfterCaseLabel:  true
288bc8ba8eSkasunath  AfterClass:      true
298bc8ba8eSkasunath  AfterControlStatement: true
308bc8ba8eSkasunath  AfterEnum:       true
31*6f3082eaSPatrick Williams  AfterExternBlock: true
328bc8ba8eSkasunath  AfterFunction:   true
338bc8ba8eSkasunath  AfterNamespace:  true
348bc8ba8eSkasunath  AfterObjCDeclaration: true
358bc8ba8eSkasunath  AfterStruct:     true
368bc8ba8eSkasunath  AfterUnion:      true
378bc8ba8eSkasunath  BeforeCatch:     true
388bc8ba8eSkasunath  BeforeElse:      true
39*6f3082eaSPatrick Williams  BeforeLambdaBody: false
40*6f3082eaSPatrick Williams  BeforeWhile:     false
418bc8ba8eSkasunath  IndentBraces:    false
428bc8ba8eSkasunath  SplitEmptyFunction:   false
438bc8ba8eSkasunath  SplitEmptyRecord:     false
448bc8ba8eSkasunath  SplitEmptyNamespace:  false
45435526a5SPatrick WilliamsBreakAfterAttributes: Never
468bc8ba8eSkasunathBreakBeforeBinaryOperators: None
478bc8ba8eSkasunathBreakBeforeBraces: Custom
488bc8ba8eSkasunathBreakBeforeTernaryOperators: true
498bc8ba8eSkasunathBreakConstructorInitializers: AfterColon
508bc8ba8eSkasunathBreakInheritanceList: AfterColon
51435526a5SPatrick WilliamsBreakStringLiterals: false
528bc8ba8eSkasunathColumnLimit:     80
538bc8ba8eSkasunathCommentPragmas:  '^ IWYU pragma:'
548bc8ba8eSkasunathCompactNamespaces: false
558bc8ba8eSkasunathConstructorInitializerIndentWidth: 4
568bc8ba8eSkasunathContinuationIndentWidth: 4
578bc8ba8eSkasunathCpp11BracedListStyle: true
588bc8ba8eSkasunathDerivePointerAlignment: false
598bc8ba8eSkasunathDisableFormat:   false
608bc8ba8eSkasunathFixNamespaceComments: true
61*6f3082eaSPatrick WilliamsForEachMacros:
62*6f3082eaSPatrick Williams  - foreach
63*6f3082eaSPatrick Williams  - Q_FOREACH
64*6f3082eaSPatrick Williams  - BOOST_FOREACH
658bc8ba8eSkasunathIncludeBlocks: Regroup
668bc8ba8eSkasunathIncludeCategories:
678bc8ba8eSkasunath  - Regex:           '^[<"](gtest|gmock)'
688bc8ba8eSkasunath    Priority:        7
698bc8ba8eSkasunath  - Regex:           '^"config.h"'
708bc8ba8eSkasunath    Priority:        -1
718bc8ba8eSkasunath  - Regex:           '^".*\.h"'
728bc8ba8eSkasunath    Priority:        1
738bc8ba8eSkasunath  - Regex:           '^".*\.hpp"'
748bc8ba8eSkasunath    Priority:        2
758bc8ba8eSkasunath  - Regex:           '^<.*\.h>'
768bc8ba8eSkasunath    Priority:        3
778bc8ba8eSkasunath  - Regex:           '^<.*\.hpp>'
788bc8ba8eSkasunath    Priority:        4
798bc8ba8eSkasunath  - Regex:           '^<.*'
808bc8ba8eSkasunath    Priority:        5
818bc8ba8eSkasunath  - Regex:           '.*'
828bc8ba8eSkasunath    Priority:        6
838bc8ba8eSkasunathIndentCaseLabels: true
84*6f3082eaSPatrick WilliamsIndentExternBlock: NoIndent
85435526a5SPatrick WilliamsIndentRequiresClause: true
868bc8ba8eSkasunathIndentWidth:     4
878bc8ba8eSkasunathIndentWrappedFunctionNames: true
88435526a5SPatrick WilliamsInsertNewlineAtEOF: true
89435526a5SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90435526a5SPatrick WilliamsLambdaBodyIndentation: OuterScope
91435526a5SPatrick WilliamsLineEnding: LF
928bc8ba8eSkasunathMacroBlockBegin: ''
938bc8ba8eSkasunathMacroBlockEnd:   ''
948bc8ba8eSkasunathMaxEmptyLinesToKeep: 1
958bc8ba8eSkasunathNamespaceIndentation: None
968bc8ba8eSkasunathObjCBlockIndentWidth: 2
978bc8ba8eSkasunathObjCSpaceAfterProperty: false
988bc8ba8eSkasunathObjCSpaceBeforeProtocolList: true
99*6f3082eaSPatrick WilliamsPackConstructorInitializers: BinPack
100435526a5SPatrick WilliamsPenaltyBreakAssignment: 25
1018bc8ba8eSkasunathPenaltyBreakBeforeFirstCallParameter: 19
1028bc8ba8eSkasunathPenaltyBreakComment: 300
1038bc8ba8eSkasunathPenaltyBreakFirstLessLess: 120
1048bc8ba8eSkasunathPenaltyBreakString: 1000
1058bc8ba8eSkasunathPenaltyExcessCharacter: 1000000
1068bc8ba8eSkasunathPenaltyReturnTypeOnItsOwnLine: 60
107435526a5SPatrick WilliamsPenaltyIndentedWhitespace: 0
108*6f3082eaSPatrick WilliamsPointerAlignment: Left
109435526a5SPatrick WilliamsQualifierAlignment: Left
110435526a5SPatrick WilliamsReferenceAlignment: Left
1118bc8ba8eSkasunathReflowComments:  true
112435526a5SPatrick WilliamsRequiresClausePosition: OwnLine
113435526a5SPatrick WilliamsRequiresExpressionIndentation: Keyword
114*6f3082eaSPatrick WilliamsSortIncludes: CaseSensitive
1158bc8ba8eSkasunathSortUsingDeclarations: true
1168bc8ba8eSkasunathSpaceAfterCStyleCast: false
1178bc8ba8eSkasunathSpaceAfterTemplateKeyword: true
1188bc8ba8eSkasunathSpaceBeforeAssignmentOperators: true
1198bc8ba8eSkasunathSpaceBeforeCpp11BracedList: false
1208bc8ba8eSkasunathSpaceBeforeCtorInitializerColon: true
1218bc8ba8eSkasunathSpaceBeforeInheritanceColon: true
1228bc8ba8eSkasunathSpaceBeforeParens: ControlStatements
1238bc8ba8eSkasunathSpaceBeforeRangeBasedForLoopColon: true
1248bc8ba8eSkasunathSpaceInEmptyParentheses: false
1258bc8ba8eSkasunathSpacesBeforeTrailingComments: 1
126*6f3082eaSPatrick WilliamsSpacesInAngles: Never
1278bc8ba8eSkasunathSpacesInContainerLiterals: true
1288bc8ba8eSkasunathSpacesInCStyleCastParentheses: false
1298bc8ba8eSkasunathSpacesInParentheses: false
1308bc8ba8eSkasunathSpacesInSquareBrackets: false
1318bc8ba8eSkasunathStandard:        Latest
1328bc8ba8eSkasunathTabWidth:        4
1338bc8ba8eSkasunathUseTab:          Never
1348bc8ba8eSkasunath...
1358bc8ba8eSkasunath
136