xref: /openbmc/phosphor-buttons/.clang-format (revision 0d038f58)
10d9377d2SPatrick Venture---
20d9377d2SPatrick VentureLanguage:        Cpp
30d9377d2SPatrick Venture# BasedOnStyle:  LLVM
40d9377d2SPatrick VentureAccessModifierOffset: -2
50d9377d2SPatrick VentureAlignAfterOpenBracket: Align
60d9377d2SPatrick VentureAlignConsecutiveAssignments: false
70d9377d2SPatrick VentureAlignConsecutiveDeclarations: false
85b98f4dbSGeorge LiuAlignEscapedNewlines: Right
9*0d038f58SPatrick WilliamsAlignOperands:  Align
10*0d038f58SPatrick WilliamsAlignTrailingComments:
11*0d038f58SPatrick Williams  Kind: Always
12*0d038f58SPatrick Williams  OverEmptyLines: 1
130d9377d2SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
14*0d038f58SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
150d9377d2SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
16*0d038f58SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
170d9377d2SPatrick VentureAllowShortIfStatementsOnASingleLine: false
180d9377d2SPatrick VentureAllowShortLoopsOnASingleLine: false
190d9377d2SPatrick VentureAlwaysBreakAfterReturnType: None
200d9377d2SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
215b98f4dbSGeorge LiuAlwaysBreakTemplateDeclarations: Yes
220d9377d2SPatrick VentureBinPackArguments: true
230d9377d2SPatrick VentureBinPackParameters: true
240d9377d2SPatrick VentureBraceWrapping:
255b98f4dbSGeorge Liu  AfterCaseLabel:  true
260d9377d2SPatrick Venture  AfterClass:      true
270d9377d2SPatrick Venture  AfterControlStatement: true
280d9377d2SPatrick Venture  AfterEnum:       true
290d9377d2SPatrick Venture  AfterFunction:   true
300d9377d2SPatrick Venture  AfterNamespace:  true
310d9377d2SPatrick Venture  AfterObjCDeclaration: true
320d9377d2SPatrick Venture  AfterStruct:     true
330d9377d2SPatrick Venture  AfterUnion:      true
345b98f4dbSGeorge Liu  AfterExternBlock: true
350d9377d2SPatrick Venture  BeforeCatch:     true
360d9377d2SPatrick Venture  BeforeElse:      true
370d9377d2SPatrick Venture  IndentBraces:    false
385b98f4dbSGeorge Liu  SplitEmptyFunction:   false
395b98f4dbSGeorge Liu  SplitEmptyRecord:     false
405b98f4dbSGeorge Liu  SplitEmptyNamespace:  false
41*0d038f58SPatrick WilliamsBreakAfterAttributes: Never
420d9377d2SPatrick VentureBreakBeforeBinaryOperators: None
430d9377d2SPatrick VentureBreakBeforeBraces: Custom
440d9377d2SPatrick VentureBreakBeforeTernaryOperators: true
450d9377d2SPatrick VentureBreakConstructorInitializers: AfterColon
465b98f4dbSGeorge LiuBreakInheritanceList: AfterColon
475b98f4dbSGeorge LiuBreakStringLiterals: false
480d9377d2SPatrick VentureColumnLimit:     80
490d9377d2SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
505b98f4dbSGeorge LiuCompactNamespaces: false
510d9377d2SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
520d9377d2SPatrick VentureConstructorInitializerIndentWidth: 4
530d9377d2SPatrick VentureContinuationIndentWidth: 4
540d9377d2SPatrick VentureCpp11BracedListStyle: true
555b98f4dbSGeorge LiuDeriveLineEnding: false
560d9377d2SPatrick VentureDerivePointerAlignment: false
570d9377d2SPatrick VenturePointerAlignment: Left
580d9377d2SPatrick VentureDisableFormat:   false
590d9377d2SPatrick VentureExperimentalAutoDetectBinPacking: false
600d9377d2SPatrick VentureFixNamespaceComments: true
610d9377d2SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
620d9377d2SPatrick VentureIncludeBlocks: Regroup
630d9377d2SPatrick VentureIncludeCategories:
640d9377d2SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
655b98f4dbSGeorge Liu    Priority:        7
660d9377d2SPatrick Venture  - Regex:           '^"config.h"'
670d9377d2SPatrick Venture    Priority:        -1
685b98f4dbSGeorge Liu  - Regex:           '^".*\.h"'
690d9377d2SPatrick Venture    Priority:        1
705b98f4dbSGeorge Liu  - Regex:           '^".*\.hpp"'
710d9377d2SPatrick Venture    Priority:        2
725b98f4dbSGeorge Liu  - Regex:           '^<.*\.h>'
730d9377d2SPatrick Venture    Priority:        3
745b98f4dbSGeorge Liu  - Regex:           '^<.*\.hpp>'
750d9377d2SPatrick Venture    Priority:        4
765b98f4dbSGeorge Liu  - Regex:           '^<.*'
775b98f4dbSGeorge Liu    Priority:        5
785b98f4dbSGeorge Liu  - Regex:           '.*'
795b98f4dbSGeorge Liu    Priority:        6
800d9377d2SPatrick VentureIndentCaseLabels: true
81*0d038f58SPatrick WilliamsIndentRequiresClause: true
820d9377d2SPatrick VentureIndentWidth:     4
830d9377d2SPatrick VentureIndentWrappedFunctionNames: true
84*0d038f58SPatrick WilliamsInsertNewlineAtEOF: true
855b98f4dbSGeorge LiuKeepEmptyLinesAtTheStartOfBlocks: false
86*0d038f58SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*0d038f58SPatrick WilliamsLineEnding: LF
880d9377d2SPatrick VentureMacroBlockBegin: ''
890d9377d2SPatrick VentureMacroBlockEnd:   ''
900d9377d2SPatrick VentureMaxEmptyLinesToKeep: 1
910d9377d2SPatrick VentureNamespaceIndentation: None
920d9377d2SPatrick VentureObjCBlockIndentWidth: 2
930d9377d2SPatrick VentureObjCSpaceAfterProperty: false
940d9377d2SPatrick VentureObjCSpaceBeforeProtocolList: true
95*0d038f58SPatrick WilliamsPenaltyBreakAssignment: 25
960d9377d2SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
970d9377d2SPatrick VenturePenaltyBreakComment: 300
980d9377d2SPatrick VenturePenaltyBreakFirstLessLess: 120
990d9377d2SPatrick VenturePenaltyBreakString: 1000
1000d9377d2SPatrick VenturePenaltyExcessCharacter: 1000000
1010d9377d2SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
102*0d038f58SPatrick WilliamsPenaltyIndentedWhitespace: 0
103*0d038f58SPatrick WilliamsQualifierAlignment: Left
104*0d038f58SPatrick WilliamsReferenceAlignment: Left
1050d9377d2SPatrick VentureReflowComments:  true
106*0d038f58SPatrick WilliamsRequiresClausePosition: OwnLine
107*0d038f58SPatrick WilliamsRequiresExpressionIndentation: Keyword
1080d9377d2SPatrick VentureSortIncludes:    true
1090d9377d2SPatrick VentureSortUsingDeclarations: true
1100d9377d2SPatrick VentureSpaceAfterCStyleCast: false
1115b98f4dbSGeorge LiuSpaceAfterTemplateKeyword: true
1120d9377d2SPatrick VentureSpaceBeforeAssignmentOperators: true
1135b98f4dbSGeorge LiuSpaceBeforeCpp11BracedList: false
1145b98f4dbSGeorge LiuSpaceBeforeCtorInitializerColon: true
1155b98f4dbSGeorge LiuSpaceBeforeInheritanceColon: true
1160d9377d2SPatrick VentureSpaceBeforeParens: ControlStatements
1175b98f4dbSGeorge LiuSpaceBeforeRangeBasedForLoopColon: true
1180d9377d2SPatrick VentureSpaceInEmptyParentheses: false
1190d9377d2SPatrick VentureSpacesBeforeTrailingComments: 1
1200d9377d2SPatrick VentureSpacesInAngles:  false
1210d9377d2SPatrick VentureSpacesInContainerLiterals: true
1220d9377d2SPatrick VentureSpacesInCStyleCastParentheses: false
1230d9377d2SPatrick VentureSpacesInParentheses: false
1240d9377d2SPatrick VentureSpacesInSquareBrackets: false
1255b98f4dbSGeorge LiuStandard:        Latest
1260d9377d2SPatrick VentureTabWidth:        4
1270d9377d2SPatrick VentureUseTab:          Never
1280d9377d2SPatrick Venture...
129*0d038f58SPatrick Williams
130