xref: /openbmc/slpd-lite/.clang-format (revision 99f391ba)
1537ff140SPatrick Venture---
2537ff140SPatrick VentureLanguage:        Cpp
3537ff140SPatrick Venture# BasedOnStyle:  LLVM
4537ff140SPatrick VentureAccessModifierOffset: -2
5537ff140SPatrick VentureAlignAfterOpenBracket: Align
6537ff140SPatrick VentureAlignConsecutiveAssignments: false
7537ff140SPatrick VentureAlignConsecutiveDeclarations: false
8ee12f48fSManojkiran EdaAlignEscapedNewlines: Right
9aa902c6eSPatrick WilliamsAlignOperands:  Align
1016424ed3SPatrick WilliamsAlignTrailingComments:
1116424ed3SPatrick Williams  Kind: Always
1216424ed3SPatrick Williams  OverEmptyLines: 1
13537ff140SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
14aa902c6eSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15537ff140SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
16aa902c6eSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17*99f391baSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*99f391baSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19537ff140SPatrick VentureAllowShortLoopsOnASingleLine: false
20537ff140SPatrick VentureAlwaysBreakAfterReturnType: None
21537ff140SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
22ee12f48fSManojkiran EdaAlwaysBreakTemplateDeclarations: Yes
23537ff140SPatrick VentureBinPackArguments: true
24537ff140SPatrick VentureBinPackParameters: true
25*99f391baSPatrick WilliamsBitFieldColonSpacing: None
26537ff140SPatrick VentureBraceWrapping:
27ee12f48fSManojkiran Eda  AfterCaseLabel:  true
28537ff140SPatrick Venture  AfterClass:      true
29537ff140SPatrick Venture  AfterControlStatement: true
30537ff140SPatrick Venture  AfterEnum:       true
31*99f391baSPatrick Williams  AfterExternBlock: true
32537ff140SPatrick Venture  AfterFunction:   true
33537ff140SPatrick Venture  AfterNamespace:  true
34537ff140SPatrick Venture  AfterObjCDeclaration: true
35537ff140SPatrick Venture  AfterStruct:     true
36537ff140SPatrick Venture  AfterUnion:      true
37537ff140SPatrick Venture  BeforeCatch:     true
38537ff140SPatrick Venture  BeforeElse:      true
39*99f391baSPatrick Williams  BeforeLambdaBody: false
40*99f391baSPatrick Williams  BeforeWhile:     false
41537ff140SPatrick Venture  IndentBraces:    false
42ee12f48fSManojkiran Eda  SplitEmptyFunction:   false
43ee12f48fSManojkiran Eda  SplitEmptyRecord:     false
44ee12f48fSManojkiran Eda  SplitEmptyNamespace:  false
4516424ed3SPatrick WilliamsBreakAfterAttributes: Never
46537ff140SPatrick VentureBreakBeforeBinaryOperators: None
47537ff140SPatrick VentureBreakBeforeBraces: Custom
48537ff140SPatrick VentureBreakBeforeTernaryOperators: true
49537ff140SPatrick VentureBreakConstructorInitializers: AfterColon
50ee12f48fSManojkiran EdaBreakInheritanceList: AfterColon
51ee12f48fSManojkiran EdaBreakStringLiterals: false
52537ff140SPatrick VentureColumnLimit:     80
53537ff140SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
54ee12f48fSManojkiran EdaCompactNamespaces: false
55537ff140SPatrick VentureConstructorInitializerIndentWidth: 4
56537ff140SPatrick VentureContinuationIndentWidth: 4
57537ff140SPatrick VentureCpp11BracedListStyle: true
58537ff140SPatrick VentureDerivePointerAlignment: false
59537ff140SPatrick VentureDisableFormat:   false
60537ff140SPatrick VentureFixNamespaceComments: true
61*99f391baSPatrick WilliamsForEachMacros:
62*99f391baSPatrick Williams  - foreach
63*99f391baSPatrick Williams  - Q_FOREACH
64*99f391baSPatrick Williams  - BOOST_FOREACH
65537ff140SPatrick VentureIncludeBlocks: Regroup
66537ff140SPatrick VentureIncludeCategories:
67537ff140SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
68ee12f48fSManojkiran Eda    Priority:        7
69537ff140SPatrick Venture  - Regex:           '^"config.h"'
70537ff140SPatrick Venture    Priority:        -1
71ee12f48fSManojkiran Eda  - Regex:           '^".*\.h"'
72537ff140SPatrick Venture    Priority:        1
73ee12f48fSManojkiran Eda  - Regex:           '^".*\.hpp"'
74537ff140SPatrick Venture    Priority:        2
75ee12f48fSManojkiran Eda  - Regex:           '^<.*\.h>'
76537ff140SPatrick Venture    Priority:        3
77ee12f48fSManojkiran Eda  - Regex:           '^<.*\.hpp>'
78537ff140SPatrick Venture    Priority:        4
79ee12f48fSManojkiran Eda  - Regex:           '^<.*'
80ee12f48fSManojkiran Eda    Priority:        5
81ee12f48fSManojkiran Eda  - Regex:           '.*'
82ee12f48fSManojkiran Eda    Priority:        6
83537ff140SPatrick VentureIndentCaseLabels: true
84*99f391baSPatrick WilliamsIndentExternBlock: NoIndent
85aa902c6eSPatrick WilliamsIndentRequiresClause: true
86537ff140SPatrick VentureIndentWidth:     4
87537ff140SPatrick VentureIndentWrappedFunctionNames: true
8816424ed3SPatrick WilliamsInsertNewlineAtEOF: true
89aa902c6eSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90aa902c6eSPatrick WilliamsLambdaBodyIndentation: OuterScope
9116424ed3SPatrick WilliamsLineEnding: LF
92537ff140SPatrick VentureMacroBlockBegin: ''
93537ff140SPatrick VentureMacroBlockEnd:   ''
94537ff140SPatrick VentureMaxEmptyLinesToKeep: 1
95537ff140SPatrick VentureNamespaceIndentation: None
96537ff140SPatrick VentureObjCBlockIndentWidth: 2
97537ff140SPatrick VentureObjCSpaceAfterProperty: false
98537ff140SPatrick VentureObjCSpaceBeforeProtocolList: true
99*99f391baSPatrick WilliamsPackConstructorInitializers: BinPack
100aa902c6eSPatrick WilliamsPenaltyBreakAssignment: 25
101537ff140SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
102537ff140SPatrick VenturePenaltyBreakComment: 300
103537ff140SPatrick VenturePenaltyBreakFirstLessLess: 120
104537ff140SPatrick VenturePenaltyBreakString: 1000
105537ff140SPatrick VenturePenaltyExcessCharacter: 1000000
106537ff140SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
107aa902c6eSPatrick WilliamsPenaltyIndentedWhitespace: 0
108*99f391baSPatrick WilliamsPointerAlignment: Left
109aa902c6eSPatrick WilliamsQualifierAlignment: Left
110aa902c6eSPatrick WilliamsReferenceAlignment: Left
111537ff140SPatrick VentureReflowComments:  true
112aa902c6eSPatrick WilliamsRequiresClausePosition: OwnLine
11316424ed3SPatrick WilliamsRequiresExpressionIndentation: Keyword
114*99f391baSPatrick WilliamsSortIncludes: CaseSensitive
115537ff140SPatrick VentureSortUsingDeclarations: true
116537ff140SPatrick VentureSpaceAfterCStyleCast: false
117ee12f48fSManojkiran EdaSpaceAfterTemplateKeyword: true
118537ff140SPatrick VentureSpaceBeforeAssignmentOperators: true
119ee12f48fSManojkiran EdaSpaceBeforeCpp11BracedList: false
120ee12f48fSManojkiran EdaSpaceBeforeCtorInitializerColon: true
121ee12f48fSManojkiran EdaSpaceBeforeInheritanceColon: true
122537ff140SPatrick VentureSpaceBeforeParens: ControlStatements
123ee12f48fSManojkiran EdaSpaceBeforeRangeBasedForLoopColon: true
124537ff140SPatrick VentureSpaceInEmptyParentheses: false
125537ff140SPatrick VentureSpacesBeforeTrailingComments: 1
126*99f391baSPatrick WilliamsSpacesInAngles: Never
127537ff140SPatrick VentureSpacesInContainerLiterals: true
128537ff140SPatrick VentureSpacesInCStyleCastParentheses: false
129537ff140SPatrick VentureSpacesInParentheses: false
130537ff140SPatrick VentureSpacesInSquareBrackets: false
131ee12f48fSManojkiran EdaStandard:        Latest
132537ff140SPatrick VentureTabWidth:        4
133537ff140SPatrick VentureUseTab:          Never
134537ff140SPatrick Venture...
135537ff140SPatrick Venture
136