xref: /openbmc/libbej/.clang-format (revision be27f2e9)
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
176f3082eaSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
186f3082eaSPatrick WilliamsAllowShortLambdasOnASingleLine: true
198bc8ba8eSkasunathAllowShortLoopsOnASingleLine: false
208bc8ba8eSkasunathAlwaysBreakAfterReturnType: None
218bc8ba8eSkasunathAlwaysBreakBeforeMultilineStrings: false
228bc8ba8eSkasunathAlwaysBreakTemplateDeclarations: Yes
238bc8ba8eSkasunathBinPackArguments: true
248bc8ba8eSkasunathBinPackParameters: true
256f3082eaSPatrick WilliamsBitFieldColonSpacing: None
268bc8ba8eSkasunathBraceWrapping:
278bc8ba8eSkasunath  AfterCaseLabel:  true
288bc8ba8eSkasunath  AfterClass:      true
298bc8ba8eSkasunath  AfterControlStatement: true
308bc8ba8eSkasunath  AfterEnum:       true
316f3082eaSPatrick Williams  AfterExternBlock: true
328bc8ba8eSkasunath  AfterFunction:   true
338bc8ba8eSkasunath  AfterNamespace:  true
348bc8ba8eSkasunath  AfterObjCDeclaration: true
358bc8ba8eSkasunath  AfterStruct:     true
368bc8ba8eSkasunath  AfterUnion:      true
378bc8ba8eSkasunath  BeforeCatch:     true
388bc8ba8eSkasunath  BeforeElse:      true
396f3082eaSPatrick Williams  BeforeLambdaBody: false
406f3082eaSPatrick 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
616f3082eaSPatrick WilliamsForEachMacros:
626f3082eaSPatrick Williams  - foreach
636f3082eaSPatrick Williams  - Q_FOREACH
646f3082eaSPatrick 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
846f3082eaSPatrick WilliamsIndentExternBlock: NoIndent
85435526a5SPatrick WilliamsIndentRequiresClause: true
868bc8ba8eSkasunathIndentWidth:     4
878bc8ba8eSkasunathIndentWrappedFunctionNames: true
88435526a5SPatrick WilliamsInsertNewlineAtEOF: true
89435526a5SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*be27f2e9SPatrick WilliamsLambdaBodyIndentation: Signature
91435526a5SPatrick WilliamsLineEnding: LF
928bc8ba8eSkasunathMacroBlockBegin: ''
938bc8ba8eSkasunathMacroBlockEnd:   ''
948bc8ba8eSkasunathMaxEmptyLinesToKeep: 1
958bc8ba8eSkasunathNamespaceIndentation: None
968bc8ba8eSkasunathObjCBlockIndentWidth: 2
978bc8ba8eSkasunathObjCSpaceAfterProperty: false
988bc8ba8eSkasunathObjCSpaceBeforeProtocolList: true
996f3082eaSPatrick WilliamsPackConstructorInitializers: BinPack
100435526a5SPatrick WilliamsPenaltyBreakAssignment: 25
101*be27f2e9SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
1028bc8ba8eSkasunathPenaltyBreakComment: 300
1038bc8ba8eSkasunathPenaltyBreakFirstLessLess: 120
1048bc8ba8eSkasunathPenaltyBreakString: 1000
105*be27f2e9SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
1068bc8ba8eSkasunathPenaltyExcessCharacter: 1000000
1078bc8ba8eSkasunathPenaltyReturnTypeOnItsOwnLine: 60
108*be27f2e9SPatrick WilliamsPenaltyIndentedWhitespace: 1
1096f3082eaSPatrick WilliamsPointerAlignment: Left
110435526a5SPatrick WilliamsQualifierAlignment: Left
111435526a5SPatrick WilliamsReferenceAlignment: Left
1128bc8ba8eSkasunathReflowComments:  true
113435526a5SPatrick WilliamsRequiresClausePosition: OwnLine
114435526a5SPatrick WilliamsRequiresExpressionIndentation: Keyword
1156f3082eaSPatrick WilliamsSortIncludes: CaseSensitive
1168bc8ba8eSkasunathSortUsingDeclarations: true
1178bc8ba8eSkasunathSpaceAfterCStyleCast: false
1188bc8ba8eSkasunathSpaceAfterTemplateKeyword: true
1198bc8ba8eSkasunathSpaceBeforeAssignmentOperators: true
1208bc8ba8eSkasunathSpaceBeforeCpp11BracedList: false
1218bc8ba8eSkasunathSpaceBeforeCtorInitializerColon: true
1228bc8ba8eSkasunathSpaceBeforeInheritanceColon: true
1238bc8ba8eSkasunathSpaceBeforeParens: ControlStatements
1248bc8ba8eSkasunathSpaceBeforeRangeBasedForLoopColon: true
1258bc8ba8eSkasunathSpaceInEmptyParentheses: false
1268bc8ba8eSkasunathSpacesBeforeTrailingComments: 1
1276f3082eaSPatrick WilliamsSpacesInAngles: Never
1288bc8ba8eSkasunathSpacesInContainerLiterals: true
1298bc8ba8eSkasunathSpacesInCStyleCastParentheses: false
1308bc8ba8eSkasunathSpacesInParentheses: false
1318bc8ba8eSkasunathSpacesInSquareBrackets: false
1328bc8ba8eSkasunathStandard:        Latest
1338bc8ba8eSkasunathTabWidth:        4
1348bc8ba8eSkasunathUseTab:          Never
1358bc8ba8eSkasunath...
1368bc8ba8eSkasunath
137