xref: /openbmc/slpd-lite/.clang-format (revision aa902c6e7777130d81496297d3ef8e90cabcfe6f)
1537ff140SPatrick Venture---
2537ff140SPatrick VentureLanguage:        Cpp
3537ff140SPatrick Venture# BasedOnStyle:  LLVM
4537ff140SPatrick VentureAccessModifierOffset: -2
5537ff140SPatrick VentureAlignAfterOpenBracket: Align
6537ff140SPatrick VentureAlignConsecutiveAssignments: false
7537ff140SPatrick VentureAlignConsecutiveDeclarations: false
8ee12f48fSManojkiran EdaAlignEscapedNewlines: Right
9*aa902c6eSPatrick WilliamsAlignOperands:  Align
10537ff140SPatrick VentureAlignTrailingComments: true
11537ff140SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
12*aa902c6eSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
13537ff140SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
14*aa902c6eSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
15537ff140SPatrick VentureAllowShortIfStatementsOnASingleLine: false
16537ff140SPatrick VentureAllowShortLoopsOnASingleLine: false
17537ff140SPatrick VentureAlwaysBreakAfterReturnType: None
18537ff140SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
19ee12f48fSManojkiran EdaAlwaysBreakTemplateDeclarations: Yes
20537ff140SPatrick VentureBinPackArguments: true
21537ff140SPatrick VentureBinPackParameters: true
22537ff140SPatrick VentureBraceWrapping:
23ee12f48fSManojkiran Eda  AfterCaseLabel:  true
24537ff140SPatrick Venture  AfterClass:      true
25537ff140SPatrick Venture  AfterControlStatement: true
26537ff140SPatrick Venture  AfterEnum:       true
27537ff140SPatrick Venture  AfterFunction:   true
28537ff140SPatrick Venture  AfterNamespace:  true
29537ff140SPatrick Venture  AfterObjCDeclaration: true
30537ff140SPatrick Venture  AfterStruct:     true
31537ff140SPatrick Venture  AfterUnion:      true
32ee12f48fSManojkiran Eda  AfterExternBlock: true
33537ff140SPatrick Venture  BeforeCatch:     true
34537ff140SPatrick Venture  BeforeElse:      true
35537ff140SPatrick Venture  IndentBraces:    false
36ee12f48fSManojkiran Eda  SplitEmptyFunction:   false
37ee12f48fSManojkiran Eda  SplitEmptyRecord:     false
38ee12f48fSManojkiran Eda  SplitEmptyNamespace:  false
39537ff140SPatrick VentureBreakBeforeBinaryOperators: None
40537ff140SPatrick VentureBreakBeforeBraces: Custom
41537ff140SPatrick VentureBreakBeforeTernaryOperators: true
42537ff140SPatrick VentureBreakConstructorInitializers: AfterColon
43ee12f48fSManojkiran EdaBreakInheritanceList: AfterColon
44ee12f48fSManojkiran EdaBreakStringLiterals: false
45537ff140SPatrick VentureColumnLimit:     80
46537ff140SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
47ee12f48fSManojkiran EdaCompactNamespaces: false
48537ff140SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
49537ff140SPatrick VentureConstructorInitializerIndentWidth: 4
50537ff140SPatrick VentureContinuationIndentWidth: 4
51537ff140SPatrick VentureCpp11BracedListStyle: true
52*aa902c6eSPatrick WilliamsDeriveLineEnding: false
53537ff140SPatrick VentureDerivePointerAlignment: false
54537ff140SPatrick VenturePointerAlignment: Left
55537ff140SPatrick VentureDisableFormat:   false
56537ff140SPatrick VentureExperimentalAutoDetectBinPacking: false
57537ff140SPatrick VentureFixNamespaceComments: true
58537ff140SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
59537ff140SPatrick VentureIncludeBlocks: Regroup
60537ff140SPatrick VentureIncludeCategories:
61537ff140SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
62ee12f48fSManojkiran Eda    Priority:        7
63537ff140SPatrick Venture  - Regex:           '^"config.h"'
64537ff140SPatrick Venture    Priority:        -1
65ee12f48fSManojkiran Eda  - Regex:           '^".*\.h"'
66537ff140SPatrick Venture    Priority:        1
67ee12f48fSManojkiran Eda  - Regex:           '^".*\.hpp"'
68537ff140SPatrick Venture    Priority:        2
69ee12f48fSManojkiran Eda  - Regex:           '^<.*\.h>'
70537ff140SPatrick Venture    Priority:        3
71ee12f48fSManojkiran Eda  - Regex:           '^<.*\.hpp>'
72537ff140SPatrick Venture    Priority:        4
73ee12f48fSManojkiran Eda  - Regex:           '^<.*'
74ee12f48fSManojkiran Eda    Priority:        5
75ee12f48fSManojkiran Eda  - Regex:           '.*'
76ee12f48fSManojkiran Eda    Priority:        6
77537ff140SPatrick VentureIndentCaseLabels: true
78*aa902c6eSPatrick WilliamsIndentRequiresClause: true
79537ff140SPatrick VentureIndentWidth:     4
80537ff140SPatrick VentureIndentWrappedFunctionNames: true
81*aa902c6eSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
82*aa902c6eSPatrick WilliamsLambdaBodyIndentation: OuterScope
83537ff140SPatrick VentureMacroBlockBegin: ''
84537ff140SPatrick VentureMacroBlockEnd:   ''
85537ff140SPatrick VentureMaxEmptyLinesToKeep: 1
86537ff140SPatrick VentureNamespaceIndentation: None
87537ff140SPatrick VentureObjCBlockIndentWidth: 2
88537ff140SPatrick VentureObjCSpaceAfterProperty: false
89537ff140SPatrick VentureObjCSpaceBeforeProtocolList: true
90*aa902c6eSPatrick WilliamsPenaltyBreakAssignment: 25
91537ff140SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
92537ff140SPatrick VenturePenaltyBreakComment: 300
93537ff140SPatrick VenturePenaltyBreakFirstLessLess: 120
94537ff140SPatrick VenturePenaltyBreakString: 1000
95537ff140SPatrick VenturePenaltyExcessCharacter: 1000000
96537ff140SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
97*aa902c6eSPatrick WilliamsPenaltyIndentedWhitespace: 0
98*aa902c6eSPatrick WilliamsQualifierAlignment: Left
99*aa902c6eSPatrick WilliamsReferenceAlignment: Left
100537ff140SPatrick VentureReflowComments:  true
101*aa902c6eSPatrick WilliamsRequiresClausePosition: OwnLine
102537ff140SPatrick VentureSortIncludes:    true
103537ff140SPatrick VentureSortUsingDeclarations: true
104537ff140SPatrick VentureSpaceAfterCStyleCast: false
105ee12f48fSManojkiran EdaSpaceAfterTemplateKeyword: true
106537ff140SPatrick VentureSpaceBeforeAssignmentOperators: true
107ee12f48fSManojkiran EdaSpaceBeforeCpp11BracedList: false
108ee12f48fSManojkiran EdaSpaceBeforeCtorInitializerColon: true
109ee12f48fSManojkiran EdaSpaceBeforeInheritanceColon: true
110537ff140SPatrick VentureSpaceBeforeParens: ControlStatements
111ee12f48fSManojkiran EdaSpaceBeforeRangeBasedForLoopColon: true
112537ff140SPatrick VentureSpaceInEmptyParentheses: false
113537ff140SPatrick VentureSpacesBeforeTrailingComments: 1
114537ff140SPatrick VentureSpacesInAngles:  false
115537ff140SPatrick VentureSpacesInContainerLiterals: true
116537ff140SPatrick VentureSpacesInCStyleCastParentheses: false
117537ff140SPatrick VentureSpacesInParentheses: false
118537ff140SPatrick VentureSpacesInSquareBrackets: false
119ee12f48fSManojkiran EdaStandard:        Latest
120537ff140SPatrick VentureTabWidth:        4
121*aa902c6eSPatrick WilliamsUseCRLF: false
122537ff140SPatrick VentureUseTab:          Never
123537ff140SPatrick Venture...
124537ff140SPatrick Venture
125