xref: /openbmc/slpd-lite/.clang-format (revision 1a6b1c2b)
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
1799f391baSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
1899f391baSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19537ff140SPatrick VentureAllowShortLoopsOnASingleLine: false
20537ff140SPatrick VentureAlwaysBreakAfterReturnType: None
21537ff140SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
22ee12f48fSManojkiran EdaAlwaysBreakTemplateDeclarations: Yes
23537ff140SPatrick VentureBinPackArguments: true
24537ff140SPatrick VentureBinPackParameters: true
2599f391baSPatrick WilliamsBitFieldColonSpacing: None
26537ff140SPatrick VentureBraceWrapping:
27ee12f48fSManojkiran Eda  AfterCaseLabel:  true
28537ff140SPatrick Venture  AfterClass:      true
29537ff140SPatrick Venture  AfterControlStatement: true
30537ff140SPatrick Venture  AfterEnum:       true
3199f391baSPatrick 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
3999f391baSPatrick Williams  BeforeLambdaBody: false
4099f391baSPatrick 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
6199f391baSPatrick WilliamsForEachMacros:
6299f391baSPatrick Williams  - foreach
6399f391baSPatrick Williams  - Q_FOREACH
6499f391baSPatrick 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
8499f391baSPatrick WilliamsIndentExternBlock: NoIndent
85aa902c6eSPatrick WilliamsIndentRequiresClause: true
86537ff140SPatrick VentureIndentWidth:     4
87537ff140SPatrick VentureIndentWrappedFunctionNames: true
8816424ed3SPatrick WilliamsInsertNewlineAtEOF: true
89aa902c6eSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*1a6b1c2bSPatrick WilliamsLambdaBodyIndentation: Signature
9116424ed3SPatrick WilliamsLineEnding: LF
92537ff140SPatrick VentureMacroBlockBegin: ''
93537ff140SPatrick VentureMacroBlockEnd:   ''
94537ff140SPatrick VentureMaxEmptyLinesToKeep: 1
95537ff140SPatrick VentureNamespaceIndentation: None
96537ff140SPatrick VentureObjCBlockIndentWidth: 2
97537ff140SPatrick VentureObjCSpaceAfterProperty: false
98537ff140SPatrick VentureObjCSpaceBeforeProtocolList: true
9999f391baSPatrick WilliamsPackConstructorInitializers: BinPack
100aa902c6eSPatrick WilliamsPenaltyBreakAssignment: 25
101*1a6b1c2bSPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102537ff140SPatrick VenturePenaltyBreakComment: 300
103537ff140SPatrick VenturePenaltyBreakFirstLessLess: 120
104537ff140SPatrick VenturePenaltyBreakString: 1000
105*1a6b1c2bSPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106537ff140SPatrick VenturePenaltyExcessCharacter: 1000000
107537ff140SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
108*1a6b1c2bSPatrick WilliamsPenaltyIndentedWhitespace: 1
10999f391baSPatrick WilliamsPointerAlignment: Left
110aa902c6eSPatrick WilliamsQualifierAlignment: Left
111aa902c6eSPatrick WilliamsReferenceAlignment: Left
112537ff140SPatrick VentureReflowComments:  true
113aa902c6eSPatrick WilliamsRequiresClausePosition: OwnLine
11416424ed3SPatrick WilliamsRequiresExpressionIndentation: Keyword
11599f391baSPatrick WilliamsSortIncludes: CaseSensitive
116537ff140SPatrick VentureSortUsingDeclarations: true
117537ff140SPatrick VentureSpaceAfterCStyleCast: false
118ee12f48fSManojkiran EdaSpaceAfterTemplateKeyword: true
119537ff140SPatrick VentureSpaceBeforeAssignmentOperators: true
120ee12f48fSManojkiran EdaSpaceBeforeCpp11BracedList: false
121ee12f48fSManojkiran EdaSpaceBeforeCtorInitializerColon: true
122ee12f48fSManojkiran EdaSpaceBeforeInheritanceColon: true
123537ff140SPatrick VentureSpaceBeforeParens: ControlStatements
124ee12f48fSManojkiran EdaSpaceBeforeRangeBasedForLoopColon: true
125537ff140SPatrick VentureSpaceInEmptyParentheses: false
126537ff140SPatrick VentureSpacesBeforeTrailingComments: 1
12799f391baSPatrick WilliamsSpacesInAngles: Never
128537ff140SPatrick VentureSpacesInContainerLiterals: true
129537ff140SPatrick VentureSpacesInCStyleCastParentheses: false
130537ff140SPatrick VentureSpacesInParentheses: false
131537ff140SPatrick VentureSpacesInSquareBrackets: false
132ee12f48fSManojkiran EdaStandard:        Latest
133537ff140SPatrick VentureTabWidth:        4
134537ff140SPatrick VentureUseTab:          Never
135537ff140SPatrick Venture...
136537ff140SPatrick Venture
137