xref: /openbmc/phosphor-fan-presence/.clang-format (revision 07ba4f09ab911638395e329dd2739f06a369271d)
1*07ba4f09SMatthew Barth---
2*07ba4f09SMatthew BarthLanguage:        Cpp
3*07ba4f09SMatthew Barth# BasedOnStyle:  LLVM
4*07ba4f09SMatthew BarthAccessModifierOffset: -2
5*07ba4f09SMatthew BarthAlignAfterOpenBracket: Align
6*07ba4f09SMatthew BarthAlignConsecutiveAssignments: false
7*07ba4f09SMatthew BarthAlignConsecutiveDeclarations: false
8*07ba4f09SMatthew BarthAlignEscapedNewlines: Right
9*07ba4f09SMatthew BarthAlignOperands:   true
10*07ba4f09SMatthew BarthAlignTrailingComments: true
11*07ba4f09SMatthew BarthAllowAllParametersOfDeclarationOnNextLine: true
12*07ba4f09SMatthew BarthAllowShortBlocksOnASingleLine: false
13*07ba4f09SMatthew BarthAllowShortCaseLabelsOnASingleLine: false
14*07ba4f09SMatthew BarthAllowShortFunctionsOnASingleLine: None
15*07ba4f09SMatthew BarthAllowShortIfStatementsOnASingleLine: false
16*07ba4f09SMatthew BarthAllowShortLoopsOnASingleLine: false
17*07ba4f09SMatthew BarthAlwaysBreakAfterReturnType: None
18*07ba4f09SMatthew BarthAlwaysBreakBeforeMultilineStrings: false
19*07ba4f09SMatthew BarthAlwaysBreakTemplateDeclarations: Yes
20*07ba4f09SMatthew BarthBinPackArguments: true
21*07ba4f09SMatthew BarthBinPackParameters: true
22*07ba4f09SMatthew BarthBraceWrapping:
23*07ba4f09SMatthew Barth  AfterCaseLabel:  true
24*07ba4f09SMatthew Barth  AfterClass:      true
25*07ba4f09SMatthew Barth  AfterControlStatement: true
26*07ba4f09SMatthew Barth  AfterEnum:       true
27*07ba4f09SMatthew Barth  AfterFunction:   true
28*07ba4f09SMatthew Barth  AfterNamespace:  true
29*07ba4f09SMatthew Barth  AfterObjCDeclaration: true
30*07ba4f09SMatthew Barth  AfterStruct:     true
31*07ba4f09SMatthew Barth  AfterUnion:      true
32*07ba4f09SMatthew Barth  AfterExternBlock: true
33*07ba4f09SMatthew Barth  BeforeCatch:     true
34*07ba4f09SMatthew Barth  BeforeElse:      true
35*07ba4f09SMatthew Barth  IndentBraces:    false
36*07ba4f09SMatthew Barth  SplitEmptyFunction:   false
37*07ba4f09SMatthew Barth  SplitEmptyRecord:     false
38*07ba4f09SMatthew Barth  SplitEmptyNamespace:  false
39*07ba4f09SMatthew BarthBreakBeforeBinaryOperators: None
40*07ba4f09SMatthew BarthBreakBeforeBraces: Custom
41*07ba4f09SMatthew BarthBreakBeforeTernaryOperators: true
42*07ba4f09SMatthew BarthBreakConstructorInitializers: AfterColon
43*07ba4f09SMatthew BarthBreakInheritanceList: AfterColon
44*07ba4f09SMatthew BarthBreakStringLiterals: true
45*07ba4f09SMatthew BarthColumnLimit:     80
46*07ba4f09SMatthew BarthCommentPragmas:  '^ IWYU pragma:'
47*07ba4f09SMatthew BarthCompactNamespaces: false
48*07ba4f09SMatthew BarthConstructorInitializerAllOnOneLineOrOnePerLine: false
49*07ba4f09SMatthew BarthConstructorInitializerIndentWidth: 4
50*07ba4f09SMatthew BarthContinuationIndentWidth: 4
51*07ba4f09SMatthew BarthCpp11BracedListStyle: true
52*07ba4f09SMatthew BarthDerivePointerAlignment: false
53*07ba4f09SMatthew BarthPointerAlignment: Left
54*07ba4f09SMatthew BarthDisableFormat:   false
55*07ba4f09SMatthew BarthExperimentalAutoDetectBinPacking: false
56*07ba4f09SMatthew BarthFixNamespaceComments: true
57*07ba4f09SMatthew BarthForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
58*07ba4f09SMatthew BarthIncludeBlocks: Regroup
59*07ba4f09SMatthew BarthIncludeCategories:
60*07ba4f09SMatthew Barth  - Regex:           '^[<"](gtest|gmock)'
61*07ba4f09SMatthew Barth    Priority:        7
62*07ba4f09SMatthew Barth  - Regex:           '^"config.h"'
63*07ba4f09SMatthew Barth    Priority:        -1
64*07ba4f09SMatthew Barth  - Regex:           '^".*\.h"'
65*07ba4f09SMatthew Barth    Priority:        1
66*07ba4f09SMatthew Barth  - Regex:           '^".*\.hpp"'
67*07ba4f09SMatthew Barth    Priority:        2
68*07ba4f09SMatthew Barth  - Regex:           '^<.*\.h>'
69*07ba4f09SMatthew Barth    Priority:        3
70*07ba4f09SMatthew Barth  - Regex:           '^<.*\.hpp>'
71*07ba4f09SMatthew Barth    Priority:        4
72*07ba4f09SMatthew Barth  - Regex:           '^<.*'
73*07ba4f09SMatthew Barth    Priority:        5
74*07ba4f09SMatthew Barth  - Regex:           '.*'
75*07ba4f09SMatthew Barth    Priority:        6
76*07ba4f09SMatthew BarthIndentCaseLabels: true
77*07ba4f09SMatthew BarthIndentWidth:     4
78*07ba4f09SMatthew BarthIndentWrappedFunctionNames: true
79*07ba4f09SMatthew BarthKeepEmptyLinesAtTheStartOfBlocks: true
80*07ba4f09SMatthew BarthMacroBlockBegin: ''
81*07ba4f09SMatthew BarthMacroBlockEnd:   ''
82*07ba4f09SMatthew BarthMaxEmptyLinesToKeep: 1
83*07ba4f09SMatthew BarthNamespaceIndentation: None
84*07ba4f09SMatthew BarthObjCBlockIndentWidth: 2
85*07ba4f09SMatthew BarthObjCSpaceAfterProperty: false
86*07ba4f09SMatthew BarthObjCSpaceBeforeProtocolList: true
87*07ba4f09SMatthew BarthPenaltyBreakBeforeFirstCallParameter: 19
88*07ba4f09SMatthew BarthPenaltyBreakComment: 300
89*07ba4f09SMatthew BarthPenaltyBreakFirstLessLess: 120
90*07ba4f09SMatthew BarthPenaltyBreakString: 1000
91*07ba4f09SMatthew BarthPenaltyExcessCharacter: 1000000
92*07ba4f09SMatthew BarthPenaltyReturnTypeOnItsOwnLine: 60
93*07ba4f09SMatthew BarthReflowComments:  true
94*07ba4f09SMatthew BarthSortIncludes:    true
95*07ba4f09SMatthew BarthSortUsingDeclarations: true
96*07ba4f09SMatthew BarthSpaceAfterCStyleCast: false
97*07ba4f09SMatthew BarthSpaceAfterTemplateKeyword: true
98*07ba4f09SMatthew BarthSpaceBeforeAssignmentOperators: true
99*07ba4f09SMatthew BarthSpaceBeforeCpp11BracedList: false
100*07ba4f09SMatthew BarthSpaceBeforeCtorInitializerColon: true
101*07ba4f09SMatthew BarthSpaceBeforeInheritanceColon: true
102*07ba4f09SMatthew BarthSpaceBeforeParens: ControlStatements
103*07ba4f09SMatthew BarthSpaceBeforeRangeBasedForLoopColon: true
104*07ba4f09SMatthew BarthSpaceInEmptyParentheses: false
105*07ba4f09SMatthew BarthSpacesBeforeTrailingComments: 1
106*07ba4f09SMatthew BarthSpacesInAngles:  false
107*07ba4f09SMatthew BarthSpacesInContainerLiterals: true
108*07ba4f09SMatthew BarthSpacesInCStyleCastParentheses: false
109*07ba4f09SMatthew BarthSpacesInParentheses: false
110*07ba4f09SMatthew BarthSpacesInSquareBrackets: false
111*07ba4f09SMatthew BarthStandard:        Cpp11
112*07ba4f09SMatthew BarthTabWidth:        4
113*07ba4f09SMatthew BarthUseTab:          Never
114*07ba4f09SMatthew Barth...
115*07ba4f09SMatthew Barth
116