xref: /openbmc/libpldm/tests/.clang-format (revision 9c766792)
1*9c766792SAndrew Jeffery---
2*9c766792SAndrew JefferyLanguage:        Cpp
3*9c766792SAndrew Jeffery# BasedOnStyle:  LLVM
4*9c766792SAndrew JefferyAccessModifierOffset: -2
5*9c766792SAndrew JefferyAlignAfterOpenBracket: Align
6*9c766792SAndrew JefferyAlignConsecutiveAssignments: false
7*9c766792SAndrew JefferyAlignConsecutiveDeclarations: false
8*9c766792SAndrew JefferyAlignEscapedNewlinesLeft: false
9*9c766792SAndrew JefferyAlignOperands:   true
10*9c766792SAndrew JefferyAlignTrailingComments: true
11*9c766792SAndrew JefferyAllowAllParametersOfDeclarationOnNextLine: true
12*9c766792SAndrew JefferyAllowShortBlocksOnASingleLine: false
13*9c766792SAndrew JefferyAllowShortCaseLabelsOnASingleLine: false
14*9c766792SAndrew JefferyAllowShortFunctionsOnASingleLine: None
15*9c766792SAndrew JefferyAllowShortIfStatementsOnASingleLine: false
16*9c766792SAndrew JefferyAllowShortLoopsOnASingleLine: false
17*9c766792SAndrew JefferyAlwaysBreakAfterDefinitionReturnType: None
18*9c766792SAndrew JefferyAlwaysBreakAfterReturnType: None
19*9c766792SAndrew JefferyAlwaysBreakBeforeMultilineStrings: false
20*9c766792SAndrew JefferyAlwaysBreakTemplateDeclarations: true
21*9c766792SAndrew JefferyBinPackArguments: true
22*9c766792SAndrew JefferyBinPackParameters: true
23*9c766792SAndrew JefferyBraceWrapping:
24*9c766792SAndrew Jeffery  AfterClass:      true
25*9c766792SAndrew Jeffery  AfterControlStatement: true
26*9c766792SAndrew Jeffery  AfterEnum:       true
27*9c766792SAndrew Jeffery  AfterFunction:   true
28*9c766792SAndrew Jeffery  AfterNamespace:  true
29*9c766792SAndrew Jeffery  AfterObjCDeclaration: true
30*9c766792SAndrew Jeffery  AfterStruct:     true
31*9c766792SAndrew Jeffery  AfterUnion:      true
32*9c766792SAndrew Jeffery  BeforeCatch:     true
33*9c766792SAndrew Jeffery  BeforeElse:      true
34*9c766792SAndrew Jeffery  IndentBraces:    false
35*9c766792SAndrew JefferyBreakBeforeBinaryOperators: None
36*9c766792SAndrew JefferyBreakBeforeBraces: Custom
37*9c766792SAndrew JefferyBreakBeforeTernaryOperators: true
38*9c766792SAndrew JefferyBreakConstructorInitializers: AfterColon
39*9c766792SAndrew JefferyColumnLimit:     80
40*9c766792SAndrew JefferyCommentPragmas:  '^ IWYU pragma:'
41*9c766792SAndrew JefferyConstructorInitializerAllOnOneLineOrOnePerLine: false
42*9c766792SAndrew JefferyConstructorInitializerIndentWidth: 4
43*9c766792SAndrew JefferyContinuationIndentWidth: 4
44*9c766792SAndrew JefferyCpp11BracedListStyle: true
45*9c766792SAndrew JefferyDerivePointerAlignment: false
46*9c766792SAndrew JefferyPointerAlignment: Left
47*9c766792SAndrew JefferyDisableFormat:   false
48*9c766792SAndrew JefferyExperimentalAutoDetectBinPacking: false
49*9c766792SAndrew JefferyFixNamespaceComments: true
50*9c766792SAndrew JefferyForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
51*9c766792SAndrew JefferyIncludeBlocks: Regroup
52*9c766792SAndrew JefferyIncludeCategories:
53*9c766792SAndrew Jeffery  - Regex:           '^[<"](gtest|gmock)'
54*9c766792SAndrew Jeffery    Priority:        5
55*9c766792SAndrew Jeffery  - Regex:           '^"config.h"'
56*9c766792SAndrew Jeffery    Priority:        -1
57*9c766792SAndrew Jeffery  - Regex:           '^".*\.hpp"'
58*9c766792SAndrew Jeffery    Priority:        1
59*9c766792SAndrew Jeffery  - Regex:           '^<.*\.h>'
60*9c766792SAndrew Jeffery    Priority:        2
61*9c766792SAndrew Jeffery  - Regex:           '^<.*'
62*9c766792SAndrew Jeffery    Priority:        3
63*9c766792SAndrew Jeffery  - Regex:           '.*'
64*9c766792SAndrew Jeffery    Priority:        4
65*9c766792SAndrew JefferyIndentCaseLabels: true
66*9c766792SAndrew JefferyIndentWidth:     4
67*9c766792SAndrew JefferyIndentWrappedFunctionNames: true
68*9c766792SAndrew JefferyKeepEmptyLinesAtTheStartOfBlocks: true
69*9c766792SAndrew JefferyMacroBlockBegin: ''
70*9c766792SAndrew JefferyMacroBlockEnd:   ''
71*9c766792SAndrew JefferyMaxEmptyLinesToKeep: 1
72*9c766792SAndrew JefferyNamespaceIndentation: None
73*9c766792SAndrew JefferyObjCBlockIndentWidth: 2
74*9c766792SAndrew JefferyObjCSpaceAfterProperty: false
75*9c766792SAndrew JefferyObjCSpaceBeforeProtocolList: true
76*9c766792SAndrew JefferyPenaltyBreakBeforeFirstCallParameter: 19
77*9c766792SAndrew JefferyPenaltyBreakComment: 300
78*9c766792SAndrew JefferyPenaltyBreakFirstLessLess: 120
79*9c766792SAndrew JefferyPenaltyBreakString: 1000
80*9c766792SAndrew JefferyPenaltyExcessCharacter: 1000000
81*9c766792SAndrew JefferyPenaltyReturnTypeOnItsOwnLine: 60
82*9c766792SAndrew JefferyReflowComments:  true
83*9c766792SAndrew JefferySortIncludes:    true
84*9c766792SAndrew JefferySortUsingDeclarations: true
85*9c766792SAndrew JefferySpaceAfterCStyleCast: false
86*9c766792SAndrew JefferySpaceBeforeAssignmentOperators: true
87*9c766792SAndrew JefferySpaceBeforeParens: ControlStatements
88*9c766792SAndrew JefferySpaceInEmptyParentheses: false
89*9c766792SAndrew JefferySpacesBeforeTrailingComments: 1
90*9c766792SAndrew JefferySpacesInAngles:  false
91*9c766792SAndrew JefferySpacesInContainerLiterals: true
92*9c766792SAndrew JefferySpacesInCStyleCastParentheses: false
93*9c766792SAndrew JefferySpacesInParentheses: false
94*9c766792SAndrew JefferySpacesInSquareBrackets: false
95*9c766792SAndrew JefferyStandard:        Cpp11
96*9c766792SAndrew JefferyTabWidth:        4
97*9c766792SAndrew JefferyUseTab:          Never
98*9c766792SAndrew Jeffery...
99