xref: /openbmc/phosphor-fan-presence/.clang-format (revision c9ec25e603d1ee03818c0f7cdec70c3aa79d74d5)
107ba4f09SMatthew Barth---
207ba4f09SMatthew BarthLanguage:        Cpp
307ba4f09SMatthew Barth# BasedOnStyle:  LLVM
407ba4f09SMatthew BarthAccessModifierOffset: -2
507ba4f09SMatthew BarthAlignAfterOpenBracket: Align
607ba4f09SMatthew BarthAlignConsecutiveAssignments: false
707ba4f09SMatthew BarthAlignConsecutiveDeclarations: false
807ba4f09SMatthew BarthAlignEscapedNewlines: Right
907ba4f09SMatthew BarthAlignOperands:   true
1007ba4f09SMatthew BarthAlignTrailingComments: true
1107ba4f09SMatthew BarthAllowAllParametersOfDeclarationOnNextLine: true
1207ba4f09SMatthew BarthAllowShortBlocksOnASingleLine: false
1307ba4f09SMatthew BarthAllowShortCaseLabelsOnASingleLine: false
1407ba4f09SMatthew BarthAllowShortFunctionsOnASingleLine: None
1507ba4f09SMatthew BarthAllowShortIfStatementsOnASingleLine: false
1607ba4f09SMatthew BarthAllowShortLoopsOnASingleLine: false
1707ba4f09SMatthew BarthAlwaysBreakAfterReturnType: None
1807ba4f09SMatthew BarthAlwaysBreakBeforeMultilineStrings: false
1907ba4f09SMatthew BarthAlwaysBreakTemplateDeclarations: Yes
2007ba4f09SMatthew BarthBinPackArguments: true
2107ba4f09SMatthew BarthBinPackParameters: true
2207ba4f09SMatthew BarthBraceWrapping:
2307ba4f09SMatthew Barth  AfterCaseLabel:  true
2407ba4f09SMatthew Barth  AfterClass:      true
2507ba4f09SMatthew Barth  AfterControlStatement: true
2607ba4f09SMatthew Barth  AfterEnum:       true
2707ba4f09SMatthew Barth  AfterFunction:   true
2807ba4f09SMatthew Barth  AfterNamespace:  true
2907ba4f09SMatthew Barth  AfterObjCDeclaration: true
3007ba4f09SMatthew Barth  AfterStruct:     true
3107ba4f09SMatthew Barth  AfterUnion:      true
3207ba4f09SMatthew Barth  AfterExternBlock: true
3307ba4f09SMatthew Barth  BeforeCatch:     true
3407ba4f09SMatthew Barth  BeforeElse:      true
3507ba4f09SMatthew Barth  IndentBraces:    false
3607ba4f09SMatthew Barth  SplitEmptyFunction:   false
3707ba4f09SMatthew Barth  SplitEmptyRecord:     false
3807ba4f09SMatthew Barth  SplitEmptyNamespace:  false
3907ba4f09SMatthew BarthBreakBeforeBinaryOperators: None
4007ba4f09SMatthew BarthBreakBeforeBraces: Custom
4107ba4f09SMatthew BarthBreakBeforeTernaryOperators: true
4207ba4f09SMatthew BarthBreakConstructorInitializers: AfterColon
4307ba4f09SMatthew BarthBreakInheritanceList: AfterColon
4407ba4f09SMatthew BarthBreakStringLiterals: true
4507ba4f09SMatthew BarthColumnLimit:     80
4607ba4f09SMatthew BarthCommentPragmas:  '^ IWYU pragma:'
4707ba4f09SMatthew BarthCompactNamespaces: false
4807ba4f09SMatthew BarthConstructorInitializerAllOnOneLineOrOnePerLine: false
4907ba4f09SMatthew BarthConstructorInitializerIndentWidth: 4
5007ba4f09SMatthew BarthContinuationIndentWidth: 4
5107ba4f09SMatthew BarthCpp11BracedListStyle: true
5207ba4f09SMatthew BarthDerivePointerAlignment: false
5307ba4f09SMatthew BarthPointerAlignment: Left
5407ba4f09SMatthew BarthDisableFormat:   false
5507ba4f09SMatthew BarthExperimentalAutoDetectBinPacking: false
5607ba4f09SMatthew BarthFixNamespaceComments: true
5707ba4f09SMatthew BarthForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
5807ba4f09SMatthew BarthIncludeBlocks: Regroup
5907ba4f09SMatthew BarthIncludeCategories:
6007ba4f09SMatthew Barth  - Regex:           '^[<"](gtest|gmock)'
6107ba4f09SMatthew Barth    Priority:        7
6207ba4f09SMatthew Barth  - Regex:           '^"config.h"'
6307ba4f09SMatthew Barth    Priority:        -1
6407ba4f09SMatthew Barth  - Regex:           '^".*\.h"'
6507ba4f09SMatthew Barth    Priority:        1
6607ba4f09SMatthew Barth  - Regex:           '^".*\.hpp"'
6707ba4f09SMatthew Barth    Priority:        2
6807ba4f09SMatthew Barth  - Regex:           '^<.*\.h>'
6907ba4f09SMatthew Barth    Priority:        3
7007ba4f09SMatthew Barth  - Regex:           '^<.*\.hpp>'
7107ba4f09SMatthew Barth    Priority:        4
7207ba4f09SMatthew Barth  - Regex:           '^<.*'
7307ba4f09SMatthew Barth    Priority:        5
7407ba4f09SMatthew Barth  - Regex:           '.*'
7507ba4f09SMatthew Barth    Priority:        6
7607ba4f09SMatthew BarthIndentCaseLabels: true
7707ba4f09SMatthew BarthIndentWidth:     4
7807ba4f09SMatthew BarthIndentWrappedFunctionNames: true
7907ba4f09SMatthew BarthKeepEmptyLinesAtTheStartOfBlocks: true
8007ba4f09SMatthew BarthMacroBlockBegin: ''
8107ba4f09SMatthew BarthMacroBlockEnd:   ''
8207ba4f09SMatthew BarthMaxEmptyLinesToKeep: 1
8307ba4f09SMatthew BarthNamespaceIndentation: None
8407ba4f09SMatthew BarthObjCBlockIndentWidth: 2
8507ba4f09SMatthew BarthObjCSpaceAfterProperty: false
8607ba4f09SMatthew BarthObjCSpaceBeforeProtocolList: true
8707ba4f09SMatthew BarthPenaltyBreakBeforeFirstCallParameter: 19
8807ba4f09SMatthew BarthPenaltyBreakComment: 300
8907ba4f09SMatthew BarthPenaltyBreakFirstLessLess: 120
9007ba4f09SMatthew BarthPenaltyBreakString: 1000
9107ba4f09SMatthew BarthPenaltyExcessCharacter: 1000000
9207ba4f09SMatthew BarthPenaltyReturnTypeOnItsOwnLine: 60
9307ba4f09SMatthew BarthReflowComments:  true
9407ba4f09SMatthew BarthSortIncludes:    true
9507ba4f09SMatthew BarthSortUsingDeclarations: true
9607ba4f09SMatthew BarthSpaceAfterCStyleCast: false
9707ba4f09SMatthew BarthSpaceAfterTemplateKeyword: true
9807ba4f09SMatthew BarthSpaceBeforeAssignmentOperators: true
9907ba4f09SMatthew BarthSpaceBeforeCpp11BracedList: false
10007ba4f09SMatthew BarthSpaceBeforeCtorInitializerColon: true
10107ba4f09SMatthew BarthSpaceBeforeInheritanceColon: true
10207ba4f09SMatthew BarthSpaceBeforeParens: ControlStatements
10307ba4f09SMatthew BarthSpaceBeforeRangeBasedForLoopColon: true
10407ba4f09SMatthew BarthSpaceInEmptyParentheses: false
10507ba4f09SMatthew BarthSpacesBeforeTrailingComments: 1
10607ba4f09SMatthew BarthSpacesInAngles:  false
10707ba4f09SMatthew BarthSpacesInContainerLiterals: true
10807ba4f09SMatthew BarthSpacesInCStyleCastParentheses: false
10907ba4f09SMatthew BarthSpacesInParentheses: false
11007ba4f09SMatthew BarthSpacesInSquareBrackets: false
111*c9ec25e6SMatthew BarthStandard:        Latest
11207ba4f09SMatthew BarthTabWidth:        4
11307ba4f09SMatthew BarthUseTab:          Never
11407ba4f09SMatthew Barth...
11507ba4f09SMatthew Barth
116