xref: /openbmc/phosphor-led-manager/.clang-format (revision 91ac8d3aade91fb99f496c05114291fcb6bf1856)
1*91ac8d3aSPatrick Venture---
2*91ac8d3aSPatrick VentureLanguage:        Cpp
3*91ac8d3aSPatrick Venture# BasedOnStyle:  LLVM
4*91ac8d3aSPatrick VentureAccessModifierOffset: -2
5*91ac8d3aSPatrick VentureAlignAfterOpenBracket: Align
6*91ac8d3aSPatrick VentureAlignConsecutiveAssignments: false
7*91ac8d3aSPatrick VentureAlignConsecutiveDeclarations: false
8*91ac8d3aSPatrick VentureAlignEscapedNewlinesLeft: false
9*91ac8d3aSPatrick VentureAlignOperands:   true
10*91ac8d3aSPatrick VentureAlignTrailingComments: true
11*91ac8d3aSPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
12*91ac8d3aSPatrick VentureAllowShortBlocksOnASingleLine: false
13*91ac8d3aSPatrick VentureAllowShortCaseLabelsOnASingleLine: false
14*91ac8d3aSPatrick VentureAllowShortFunctionsOnASingleLine: None
15*91ac8d3aSPatrick VentureAllowShortIfStatementsOnASingleLine: false
16*91ac8d3aSPatrick VentureAllowShortLoopsOnASingleLine: false
17*91ac8d3aSPatrick VentureAlwaysBreakAfterDefinitionReturnType: None
18*91ac8d3aSPatrick VentureAlwaysBreakAfterReturnType: None
19*91ac8d3aSPatrick VentureAlwaysBreakBeforeMultilineStrings: false
20*91ac8d3aSPatrick VentureAlwaysBreakTemplateDeclarations: true
21*91ac8d3aSPatrick VentureBinPackArguments: true
22*91ac8d3aSPatrick VentureBinPackParameters: true
23*91ac8d3aSPatrick VentureBraceWrapping:
24*91ac8d3aSPatrick Venture  AfterClass:      true
25*91ac8d3aSPatrick Venture  AfterControlStatement: true
26*91ac8d3aSPatrick Venture  AfterEnum:       true
27*91ac8d3aSPatrick Venture  AfterFunction:   true
28*91ac8d3aSPatrick Venture  AfterNamespace:  true
29*91ac8d3aSPatrick Venture  AfterObjCDeclaration: true
30*91ac8d3aSPatrick Venture  AfterStruct:     true
31*91ac8d3aSPatrick Venture  AfterUnion:      true
32*91ac8d3aSPatrick Venture  BeforeCatch:     true
33*91ac8d3aSPatrick Venture  BeforeElse:      true
34*91ac8d3aSPatrick Venture  IndentBraces:    false
35*91ac8d3aSPatrick VentureBreakBeforeBinaryOperators: None
36*91ac8d3aSPatrick VentureBreakBeforeBraces: Custom
37*91ac8d3aSPatrick VentureBreakBeforeTernaryOperators: true
38*91ac8d3aSPatrick VentureBreakConstructorInitializers: AfterColon
39*91ac8d3aSPatrick VentureColumnLimit:     80
40*91ac8d3aSPatrick VentureCommentPragmas:  '^ IWYU pragma:'
41*91ac8d3aSPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
42*91ac8d3aSPatrick VentureConstructorInitializerIndentWidth: 4
43*91ac8d3aSPatrick VentureContinuationIndentWidth: 4
44*91ac8d3aSPatrick VentureCpp11BracedListStyle: true
45*91ac8d3aSPatrick VentureDerivePointerAlignment: false
46*91ac8d3aSPatrick VenturePointerAlignment: Left
47*91ac8d3aSPatrick VentureDisableFormat:   false
48*91ac8d3aSPatrick VentureExperimentalAutoDetectBinPacking: false
49*91ac8d3aSPatrick VentureFixNamespaceComments: true
50*91ac8d3aSPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
51*91ac8d3aSPatrick VentureIncludeBlocks: Regroup
52*91ac8d3aSPatrick VentureIncludeCategories:
53*91ac8d3aSPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
54*91ac8d3aSPatrick Venture    Priority:        5
55*91ac8d3aSPatrick Venture  - Regex:           '^"config.h"'
56*91ac8d3aSPatrick Venture    Priority:        -1
57*91ac8d3aSPatrick Venture  - Regex:           '^".*\.hpp"'
58*91ac8d3aSPatrick Venture    Priority:        1
59*91ac8d3aSPatrick Venture  - Regex:           '^<.*\.h>'
60*91ac8d3aSPatrick Venture    Priority:        2
61*91ac8d3aSPatrick Venture  - Regex:           '^<.*'
62*91ac8d3aSPatrick Venture    Priority:        3
63*91ac8d3aSPatrick Venture  - Regex:           '.*'
64*91ac8d3aSPatrick Venture    Priority:        4
65*91ac8d3aSPatrick VentureIndentCaseLabels: true
66*91ac8d3aSPatrick VentureIndentWidth:     4
67*91ac8d3aSPatrick VentureIndentWrappedFunctionNames: true
68*91ac8d3aSPatrick VentureKeepEmptyLinesAtTheStartOfBlocks: true
69*91ac8d3aSPatrick VentureMacroBlockBegin: ''
70*91ac8d3aSPatrick VentureMacroBlockEnd:   ''
71*91ac8d3aSPatrick VentureMaxEmptyLinesToKeep: 1
72*91ac8d3aSPatrick VentureNamespaceIndentation: None
73*91ac8d3aSPatrick VentureObjCBlockIndentWidth: 2
74*91ac8d3aSPatrick VentureObjCSpaceAfterProperty: false
75*91ac8d3aSPatrick VentureObjCSpaceBeforeProtocolList: true
76*91ac8d3aSPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
77*91ac8d3aSPatrick VenturePenaltyBreakComment: 300
78*91ac8d3aSPatrick VenturePenaltyBreakFirstLessLess: 120
79*91ac8d3aSPatrick VenturePenaltyBreakString: 1000
80*91ac8d3aSPatrick VenturePenaltyExcessCharacter: 1000000
81*91ac8d3aSPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
82*91ac8d3aSPatrick VentureReflowComments:  true
83*91ac8d3aSPatrick VentureSortIncludes:    true
84*91ac8d3aSPatrick VentureSortUsingDeclarations: true
85*91ac8d3aSPatrick VentureSpaceAfterCStyleCast: false
86*91ac8d3aSPatrick VentureSpaceBeforeAssignmentOperators: true
87*91ac8d3aSPatrick VentureSpaceBeforeParens: ControlStatements
88*91ac8d3aSPatrick VentureSpaceInEmptyParentheses: false
89*91ac8d3aSPatrick VentureSpacesBeforeTrailingComments: 1
90*91ac8d3aSPatrick VentureSpacesInAngles:  false
91*91ac8d3aSPatrick VentureSpacesInContainerLiterals: true
92*91ac8d3aSPatrick VentureSpacesInCStyleCastParentheses: false
93*91ac8d3aSPatrick VentureSpacesInParentheses: false
94*91ac8d3aSPatrick VentureSpacesInSquareBrackets: false
95*91ac8d3aSPatrick VentureStandard:        Cpp11
96*91ac8d3aSPatrick VentureTabWidth:        4
97*91ac8d3aSPatrick VentureUseTab:          Never
98*91ac8d3aSPatrick Venture...
99*91ac8d3aSPatrick Venture
100