xref: /openbmc/slpd-lite/.clang-format (revision ee12f48f)
1537ff140SPatrick Venture---
2537ff140SPatrick VentureLanguage:        Cpp
3537ff140SPatrick Venture# BasedOnStyle:  LLVM
4537ff140SPatrick VentureAccessModifierOffset: -2
5537ff140SPatrick VentureAlignAfterOpenBracket: Align
6537ff140SPatrick VentureAlignConsecutiveAssignments: false
7537ff140SPatrick VentureAlignConsecutiveDeclarations: false
8*ee12f48fSManojkiran EdaAlignEscapedNewlines: Right
9537ff140SPatrick VentureAlignOperands:   true
10537ff140SPatrick VentureAlignTrailingComments: true
11537ff140SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
12537ff140SPatrick VentureAllowShortBlocksOnASingleLine: false
13537ff140SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
14537ff140SPatrick VentureAllowShortFunctionsOnASingleLine: None
15537ff140SPatrick VentureAllowShortIfStatementsOnASingleLine: false
16537ff140SPatrick VentureAllowShortLoopsOnASingleLine: false
17537ff140SPatrick VentureAlwaysBreakAfterReturnType: None
18537ff140SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
19*ee12f48fSManojkiran EdaAlwaysBreakTemplateDeclarations: Yes
20537ff140SPatrick VentureBinPackArguments: true
21537ff140SPatrick VentureBinPackParameters: true
22537ff140SPatrick VentureBraceWrapping:
23*ee12f48fSManojkiran 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
32*ee12f48fSManojkiran Eda  AfterExternBlock: true
33537ff140SPatrick Venture  BeforeCatch:     true
34537ff140SPatrick Venture  BeforeElse:      true
35537ff140SPatrick Venture  IndentBraces:    false
36*ee12f48fSManojkiran Eda  SplitEmptyFunction:   false
37*ee12f48fSManojkiran Eda  SplitEmptyRecord:     false
38*ee12f48fSManojkiran Eda  SplitEmptyNamespace:  false
39537ff140SPatrick VentureBreakBeforeBinaryOperators: None
40537ff140SPatrick VentureBreakBeforeBraces: Custom
41537ff140SPatrick VentureBreakBeforeTernaryOperators: true
42537ff140SPatrick VentureBreakConstructorInitializers: AfterColon
43*ee12f48fSManojkiran EdaBreakInheritanceList: AfterColon
44*ee12f48fSManojkiran EdaBreakStringLiterals: false
45537ff140SPatrick VentureColumnLimit:     80
46537ff140SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
47*ee12f48fSManojkiran EdaCompactNamespaces: false
48537ff140SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
49537ff140SPatrick VentureConstructorInitializerIndentWidth: 4
50537ff140SPatrick VentureContinuationIndentWidth: 4
51537ff140SPatrick VentureCpp11BracedListStyle: true
52537ff140SPatrick VentureDerivePointerAlignment: false
53537ff140SPatrick VenturePointerAlignment: Left
54537ff140SPatrick VentureDisableFormat:   false
55537ff140SPatrick VentureExperimentalAutoDetectBinPacking: false
56537ff140SPatrick VentureFixNamespaceComments: true
57537ff140SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
58537ff140SPatrick VentureIncludeBlocks: Regroup
59537ff140SPatrick VentureIncludeCategories:
60537ff140SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
61*ee12f48fSManojkiran Eda    Priority:        7
62537ff140SPatrick Venture  - Regex:           '^"config.h"'
63537ff140SPatrick Venture    Priority:        -1
64*ee12f48fSManojkiran Eda  - Regex:           '^".*\.h"'
65537ff140SPatrick Venture    Priority:        1
66*ee12f48fSManojkiran Eda  - Regex:           '^".*\.hpp"'
67537ff140SPatrick Venture    Priority:        2
68*ee12f48fSManojkiran Eda  - Regex:           '^<.*\.h>'
69537ff140SPatrick Venture    Priority:        3
70*ee12f48fSManojkiran Eda  - Regex:           '^<.*\.hpp>'
71537ff140SPatrick Venture    Priority:        4
72*ee12f48fSManojkiran Eda  - Regex:           '^<.*'
73*ee12f48fSManojkiran Eda    Priority:        5
74*ee12f48fSManojkiran Eda  - Regex:           '.*'
75*ee12f48fSManojkiran Eda    Priority:        6
76537ff140SPatrick VentureIndentCaseLabels: true
77537ff140SPatrick VentureIndentWidth:     4
78537ff140SPatrick VentureIndentWrappedFunctionNames: true
79537ff140SPatrick VentureKeepEmptyLinesAtTheStartOfBlocks: true
80537ff140SPatrick VentureMacroBlockBegin: ''
81537ff140SPatrick VentureMacroBlockEnd:   ''
82537ff140SPatrick VentureMaxEmptyLinesToKeep: 1
83537ff140SPatrick VentureNamespaceIndentation: None
84537ff140SPatrick VentureObjCBlockIndentWidth: 2
85537ff140SPatrick VentureObjCSpaceAfterProperty: false
86537ff140SPatrick VentureObjCSpaceBeforeProtocolList: true
87537ff140SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
88537ff140SPatrick VenturePenaltyBreakComment: 300
89537ff140SPatrick VenturePenaltyBreakFirstLessLess: 120
90537ff140SPatrick VenturePenaltyBreakString: 1000
91537ff140SPatrick VenturePenaltyExcessCharacter: 1000000
92537ff140SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
93537ff140SPatrick VentureReflowComments:  true
94537ff140SPatrick VentureSortIncludes:    true
95537ff140SPatrick VentureSortUsingDeclarations: true
96537ff140SPatrick VentureSpaceAfterCStyleCast: false
97*ee12f48fSManojkiran EdaSpaceAfterTemplateKeyword: true
98537ff140SPatrick VentureSpaceBeforeAssignmentOperators: true
99*ee12f48fSManojkiran EdaSpaceBeforeCpp11BracedList: false
100*ee12f48fSManojkiran EdaSpaceBeforeCtorInitializerColon: true
101*ee12f48fSManojkiran EdaSpaceBeforeInheritanceColon: true
102537ff140SPatrick VentureSpaceBeforeParens: ControlStatements
103*ee12f48fSManojkiran EdaSpaceBeforeRangeBasedForLoopColon: true
104537ff140SPatrick VentureSpaceInEmptyParentheses: false
105537ff140SPatrick VentureSpacesBeforeTrailingComments: 1
106537ff140SPatrick VentureSpacesInAngles:  false
107537ff140SPatrick VentureSpacesInContainerLiterals: true
108537ff140SPatrick VentureSpacesInCStyleCastParentheses: false
109537ff140SPatrick VentureSpacesInParentheses: false
110537ff140SPatrick VentureSpacesInSquareBrackets: false
111*ee12f48fSManojkiran EdaStandard:        Latest
112537ff140SPatrick VentureTabWidth:        4
113537ff140SPatrick VentureUseTab:          Never
114537ff140SPatrick Venture...
115537ff140SPatrick Venture
116