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