xref: /openbmc/phosphor-buttons/.clang-format (revision d36b6b1d)
10d9377d2SPatrick Venture---
20d9377d2SPatrick VentureLanguage:        Cpp
30d9377d2SPatrick Venture# BasedOnStyle:  LLVM
40d9377d2SPatrick VentureAccessModifierOffset: -2
50d9377d2SPatrick VentureAlignAfterOpenBracket: Align
60d9377d2SPatrick VentureAlignConsecutiveAssignments: false
70d9377d2SPatrick VentureAlignConsecutiveDeclarations: false
85b98f4dbSGeorge LiuAlignEscapedNewlines: Right
90d038f58SPatrick WilliamsAlignOperands:  Align
100d038f58SPatrick WilliamsAlignTrailingComments:
110d038f58SPatrick Williams  Kind: Always
120d038f58SPatrick Williams  OverEmptyLines: 1
130d9377d2SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
140d038f58SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
150d9377d2SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
160d038f58SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
1761538147SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
1861538147SPatrick WilliamsAllowShortLambdasOnASingleLine: true
190d9377d2SPatrick VentureAllowShortLoopsOnASingleLine: false
200d9377d2SPatrick VentureAlwaysBreakAfterReturnType: None
210d9377d2SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
225b98f4dbSGeorge LiuAlwaysBreakTemplateDeclarations: Yes
230d9377d2SPatrick VentureBinPackArguments: true
240d9377d2SPatrick VentureBinPackParameters: true
2561538147SPatrick WilliamsBitFieldColonSpacing: None
260d9377d2SPatrick VentureBraceWrapping:
275b98f4dbSGeorge Liu  AfterCaseLabel:  true
280d9377d2SPatrick Venture  AfterClass:      true
290d9377d2SPatrick Venture  AfterControlStatement: true
300d9377d2SPatrick Venture  AfterEnum:       true
3161538147SPatrick Williams  AfterExternBlock: true
320d9377d2SPatrick Venture  AfterFunction:   true
330d9377d2SPatrick Venture  AfterNamespace:  true
340d9377d2SPatrick Venture  AfterObjCDeclaration: true
350d9377d2SPatrick Venture  AfterStruct:     true
360d9377d2SPatrick Venture  AfterUnion:      true
370d9377d2SPatrick Venture  BeforeCatch:     true
380d9377d2SPatrick Venture  BeforeElse:      true
3961538147SPatrick Williams  BeforeLambdaBody: false
4061538147SPatrick Williams  BeforeWhile:     false
410d9377d2SPatrick Venture  IndentBraces:    false
425b98f4dbSGeorge Liu  SplitEmptyFunction:   false
435b98f4dbSGeorge Liu  SplitEmptyRecord:     false
445b98f4dbSGeorge Liu  SplitEmptyNamespace:  false
450d038f58SPatrick WilliamsBreakAfterAttributes: Never
460d9377d2SPatrick VentureBreakBeforeBinaryOperators: None
470d9377d2SPatrick VentureBreakBeforeBraces: Custom
480d9377d2SPatrick VentureBreakBeforeTernaryOperators: true
490d9377d2SPatrick VentureBreakConstructorInitializers: AfterColon
505b98f4dbSGeorge LiuBreakInheritanceList: AfterColon
515b98f4dbSGeorge LiuBreakStringLiterals: false
520d9377d2SPatrick VentureColumnLimit:     80
530d9377d2SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
545b98f4dbSGeorge LiuCompactNamespaces: false
550d9377d2SPatrick VentureConstructorInitializerIndentWidth: 4
560d9377d2SPatrick VentureContinuationIndentWidth: 4
570d9377d2SPatrick VentureCpp11BracedListStyle: true
580d9377d2SPatrick VentureDerivePointerAlignment: false
590d9377d2SPatrick VentureDisableFormat:   false
600d9377d2SPatrick VentureFixNamespaceComments: true
6161538147SPatrick WilliamsForEachMacros:
6261538147SPatrick Williams  - foreach
6361538147SPatrick Williams  - Q_FOREACH
6461538147SPatrick Williams  - BOOST_FOREACH
650d9377d2SPatrick VentureIncludeBlocks: Regroup
660d9377d2SPatrick VentureIncludeCategories:
670d9377d2SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
685b98f4dbSGeorge Liu    Priority:        7
690d9377d2SPatrick Venture  - Regex:           '^"config.h"'
700d9377d2SPatrick Venture    Priority:        -1
715b98f4dbSGeorge Liu  - Regex:           '^".*\.h"'
720d9377d2SPatrick Venture    Priority:        1
735b98f4dbSGeorge Liu  - Regex:           '^".*\.hpp"'
740d9377d2SPatrick Venture    Priority:        2
755b98f4dbSGeorge Liu  - Regex:           '^<.*\.h>'
760d9377d2SPatrick Venture    Priority:        3
775b98f4dbSGeorge Liu  - Regex:           '^<.*\.hpp>'
780d9377d2SPatrick Venture    Priority:        4
795b98f4dbSGeorge Liu  - Regex:           '^<.*'
805b98f4dbSGeorge Liu    Priority:        5
815b98f4dbSGeorge Liu  - Regex:           '.*'
825b98f4dbSGeorge Liu    Priority:        6
830d9377d2SPatrick VentureIndentCaseLabels: true
8461538147SPatrick WilliamsIndentExternBlock: NoIndent
850d038f58SPatrick WilliamsIndentRequiresClause: true
860d9377d2SPatrick VentureIndentWidth:     4
870d9377d2SPatrick VentureIndentWrappedFunctionNames: true
880d038f58SPatrick WilliamsInsertNewlineAtEOF: true
895b98f4dbSGeorge LiuKeepEmptyLinesAtTheStartOfBlocks: false
90*d36b6b1dSPatrick WilliamsLambdaBodyIndentation: Signature
910d038f58SPatrick WilliamsLineEnding: LF
920d9377d2SPatrick VentureMacroBlockBegin: ''
930d9377d2SPatrick VentureMacroBlockEnd:   ''
940d9377d2SPatrick VentureMaxEmptyLinesToKeep: 1
950d9377d2SPatrick VentureNamespaceIndentation: None
960d9377d2SPatrick VentureObjCBlockIndentWidth: 2
970d9377d2SPatrick VentureObjCSpaceAfterProperty: false
980d9377d2SPatrick VentureObjCSpaceBeforeProtocolList: true
9961538147SPatrick WilliamsPackConstructorInitializers: BinPack
1000d038f58SPatrick WilliamsPenaltyBreakAssignment: 25
101*d36b6b1dSPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
1020d9377d2SPatrick VenturePenaltyBreakComment: 300
1030d9377d2SPatrick VenturePenaltyBreakFirstLessLess: 120
1040d9377d2SPatrick VenturePenaltyBreakString: 1000
105*d36b6b1dSPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
1060d9377d2SPatrick VenturePenaltyExcessCharacter: 1000000
1070d9377d2SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
108*d36b6b1dSPatrick WilliamsPenaltyIndentedWhitespace: 1
10961538147SPatrick WilliamsPointerAlignment: Left
1100d038f58SPatrick WilliamsQualifierAlignment: Left
1110d038f58SPatrick WilliamsReferenceAlignment: Left
1120d9377d2SPatrick VentureReflowComments:  true
1130d038f58SPatrick WilliamsRequiresClausePosition: OwnLine
1140d038f58SPatrick WilliamsRequiresExpressionIndentation: Keyword
11561538147SPatrick WilliamsSortIncludes: CaseSensitive
1160d9377d2SPatrick VentureSortUsingDeclarations: true
1170d9377d2SPatrick VentureSpaceAfterCStyleCast: false
1185b98f4dbSGeorge LiuSpaceAfterTemplateKeyword: true
1190d9377d2SPatrick VentureSpaceBeforeAssignmentOperators: true
1205b98f4dbSGeorge LiuSpaceBeforeCpp11BracedList: false
1215b98f4dbSGeorge LiuSpaceBeforeCtorInitializerColon: true
1225b98f4dbSGeorge LiuSpaceBeforeInheritanceColon: true
1230d9377d2SPatrick VentureSpaceBeforeParens: ControlStatements
1245b98f4dbSGeorge LiuSpaceBeforeRangeBasedForLoopColon: true
1250d9377d2SPatrick VentureSpaceInEmptyParentheses: false
1260d9377d2SPatrick VentureSpacesBeforeTrailingComments: 1
12761538147SPatrick WilliamsSpacesInAngles: Never
1280d9377d2SPatrick VentureSpacesInContainerLiterals: true
1290d9377d2SPatrick VentureSpacesInCStyleCastParentheses: false
1300d9377d2SPatrick VentureSpacesInParentheses: false
1310d9377d2SPatrick VentureSpacesInSquareBrackets: false
1325b98f4dbSGeorge LiuStandard:        Latest
1330d9377d2SPatrick VentureTabWidth:        4
1340d9377d2SPatrick VentureUseTab:          Never
1350d9377d2SPatrick Venture...
1360d038f58SPatrick Williams
137