xref: /openbmc/phosphor-fan-presence/.clang-format (revision 61b7329603e737b76b04b98746d69c1f410761b8)
107ba4f09SMatthew Barth---
207ba4f09SMatthew BarthLanguage:        Cpp
307ba4f09SMatthew Barth# BasedOnStyle:  LLVM
407ba4f09SMatthew BarthAccessModifierOffset: -2
507ba4f09SMatthew BarthAlignAfterOpenBracket: Align
607ba4f09SMatthew BarthAlignConsecutiveAssignments: false
707ba4f09SMatthew BarthAlignConsecutiveDeclarations: false
807ba4f09SMatthew BarthAlignEscapedNewlines: Right
9*61b73296SPatrick WilliamsAlignOperands:  Align
10*61b73296SPatrick WilliamsAlignTrailingComments:
11*61b73296SPatrick Williams  Kind: Always
12*61b73296SPatrick Williams  OverEmptyLines: 1
1307ba4f09SMatthew BarthAllowAllParametersOfDeclarationOnNextLine: true
14*61b73296SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
1507ba4f09SMatthew BarthAllowShortCaseLabelsOnASingleLine: false
16*61b73296SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
1707ba4f09SMatthew BarthAllowShortIfStatementsOnASingleLine: false
1807ba4f09SMatthew BarthAllowShortLoopsOnASingleLine: false
1907ba4f09SMatthew BarthAlwaysBreakAfterReturnType: None
2007ba4f09SMatthew BarthAlwaysBreakBeforeMultilineStrings: false
2107ba4f09SMatthew BarthAlwaysBreakTemplateDeclarations: Yes
2207ba4f09SMatthew BarthBinPackArguments: true
2307ba4f09SMatthew BarthBinPackParameters: true
2407ba4f09SMatthew BarthBraceWrapping:
2507ba4f09SMatthew Barth  AfterCaseLabel:  true
2607ba4f09SMatthew Barth  AfterClass:      true
2707ba4f09SMatthew Barth  AfterControlStatement: true
2807ba4f09SMatthew Barth  AfterEnum:       true
2907ba4f09SMatthew Barth  AfterFunction:   true
3007ba4f09SMatthew Barth  AfterNamespace:  true
3107ba4f09SMatthew Barth  AfterObjCDeclaration: true
3207ba4f09SMatthew Barth  AfterStruct:     true
3307ba4f09SMatthew Barth  AfterUnion:      true
3407ba4f09SMatthew Barth  AfterExternBlock: true
3507ba4f09SMatthew Barth  BeforeCatch:     true
3607ba4f09SMatthew Barth  BeforeElse:      true
3707ba4f09SMatthew Barth  IndentBraces:    false
3807ba4f09SMatthew Barth  SplitEmptyFunction:   false
3907ba4f09SMatthew Barth  SplitEmptyRecord:     false
4007ba4f09SMatthew Barth  SplitEmptyNamespace:  false
41*61b73296SPatrick WilliamsBreakAfterAttributes: Never
4207ba4f09SMatthew BarthBreakBeforeBinaryOperators: None
4307ba4f09SMatthew BarthBreakBeforeBraces: Custom
4407ba4f09SMatthew BarthBreakBeforeTernaryOperators: true
4507ba4f09SMatthew BarthBreakConstructorInitializers: AfterColon
4607ba4f09SMatthew BarthBreakInheritanceList: AfterColon
47*61b73296SPatrick WilliamsBreakStringLiterals: false
4807ba4f09SMatthew BarthColumnLimit:     80
4907ba4f09SMatthew BarthCommentPragmas:  '^ IWYU pragma:'
5007ba4f09SMatthew BarthCompactNamespaces: false
5107ba4f09SMatthew BarthConstructorInitializerAllOnOneLineOrOnePerLine: false
5207ba4f09SMatthew BarthConstructorInitializerIndentWidth: 4
5307ba4f09SMatthew BarthContinuationIndentWidth: 4
5407ba4f09SMatthew BarthCpp11BracedListStyle: true
55*61b73296SPatrick WilliamsDeriveLineEnding: false
5607ba4f09SMatthew BarthDerivePointerAlignment: false
5707ba4f09SMatthew BarthPointerAlignment: Left
5807ba4f09SMatthew BarthDisableFormat:   false
5907ba4f09SMatthew BarthExperimentalAutoDetectBinPacking: false
6007ba4f09SMatthew BarthFixNamespaceComments: true
6107ba4f09SMatthew BarthForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
6207ba4f09SMatthew BarthIncludeBlocks: Regroup
6307ba4f09SMatthew BarthIncludeCategories:
6407ba4f09SMatthew Barth  - Regex:           '^[<"](gtest|gmock)'
6507ba4f09SMatthew Barth    Priority:        7
6607ba4f09SMatthew Barth  - Regex:           '^"config.h"'
6707ba4f09SMatthew Barth    Priority:        -1
6807ba4f09SMatthew Barth  - Regex:           '^".*\.h"'
6907ba4f09SMatthew Barth    Priority:        1
7007ba4f09SMatthew Barth  - Regex:           '^".*\.hpp"'
7107ba4f09SMatthew Barth    Priority:        2
7207ba4f09SMatthew Barth  - Regex:           '^<.*\.h>'
7307ba4f09SMatthew Barth    Priority:        3
7407ba4f09SMatthew Barth  - Regex:           '^<.*\.hpp>'
7507ba4f09SMatthew Barth    Priority:        4
7607ba4f09SMatthew Barth  - Regex:           '^<.*'
7707ba4f09SMatthew Barth    Priority:        5
7807ba4f09SMatthew Barth  - Regex:           '.*'
7907ba4f09SMatthew Barth    Priority:        6
8007ba4f09SMatthew BarthIndentCaseLabels: true
81*61b73296SPatrick WilliamsIndentRequiresClause: true
8207ba4f09SMatthew BarthIndentWidth:     4
8307ba4f09SMatthew BarthIndentWrappedFunctionNames: true
84*61b73296SPatrick WilliamsInsertNewlineAtEOF: true
85*61b73296SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
86*61b73296SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*61b73296SPatrick WilliamsLineEnding: LF
8807ba4f09SMatthew BarthMacroBlockBegin: ''
8907ba4f09SMatthew BarthMacroBlockEnd:   ''
9007ba4f09SMatthew BarthMaxEmptyLinesToKeep: 1
9107ba4f09SMatthew BarthNamespaceIndentation: None
9207ba4f09SMatthew BarthObjCBlockIndentWidth: 2
9307ba4f09SMatthew BarthObjCSpaceAfterProperty: false
9407ba4f09SMatthew BarthObjCSpaceBeforeProtocolList: true
95*61b73296SPatrick WilliamsPenaltyBreakAssignment: 25
9607ba4f09SMatthew BarthPenaltyBreakBeforeFirstCallParameter: 19
9707ba4f09SMatthew BarthPenaltyBreakComment: 300
9807ba4f09SMatthew BarthPenaltyBreakFirstLessLess: 120
9907ba4f09SMatthew BarthPenaltyBreakString: 1000
10007ba4f09SMatthew BarthPenaltyExcessCharacter: 1000000
10107ba4f09SMatthew BarthPenaltyReturnTypeOnItsOwnLine: 60
102*61b73296SPatrick WilliamsPenaltyIndentedWhitespace: 0
103*61b73296SPatrick WilliamsQualifierAlignment: Left
104*61b73296SPatrick WilliamsReferenceAlignment: Left
10507ba4f09SMatthew BarthReflowComments:  true
106*61b73296SPatrick WilliamsRequiresClausePosition: OwnLine
107*61b73296SPatrick WilliamsRequiresExpressionIndentation: Keyword
10807ba4f09SMatthew BarthSortIncludes:    true
10907ba4f09SMatthew BarthSortUsingDeclarations: true
11007ba4f09SMatthew BarthSpaceAfterCStyleCast: false
11107ba4f09SMatthew BarthSpaceAfterTemplateKeyword: true
11207ba4f09SMatthew BarthSpaceBeforeAssignmentOperators: true
11307ba4f09SMatthew BarthSpaceBeforeCpp11BracedList: false
11407ba4f09SMatthew BarthSpaceBeforeCtorInitializerColon: true
11507ba4f09SMatthew BarthSpaceBeforeInheritanceColon: true
11607ba4f09SMatthew BarthSpaceBeforeParens: ControlStatements
11707ba4f09SMatthew BarthSpaceBeforeRangeBasedForLoopColon: true
11807ba4f09SMatthew BarthSpaceInEmptyParentheses: false
11907ba4f09SMatthew BarthSpacesBeforeTrailingComments: 1
12007ba4f09SMatthew BarthSpacesInAngles:  false
12107ba4f09SMatthew BarthSpacesInContainerLiterals: true
12207ba4f09SMatthew BarthSpacesInCStyleCastParentheses: false
12307ba4f09SMatthew BarthSpacesInParentheses: false
12407ba4f09SMatthew BarthSpacesInSquareBrackets: false
125c9ec25e6SMatthew BarthStandard:        Latest
12607ba4f09SMatthew BarthTabWidth:        4
12707ba4f09SMatthew BarthUseTab:          Never
12807ba4f09SMatthew Barth...
12907ba4f09SMatthew Barth
130