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