xref: /openbmc/pldm/.clang-format (revision 6492f524)
1cf0c6423STom Joseph---
2cf0c6423STom JosephLanguage:        Cpp
3cf0c6423STom Joseph# BasedOnStyle:  LLVM
4cf0c6423STom JosephAccessModifierOffset: -2
5cf0c6423STom JosephAlignAfterOpenBracket: Align
6cf0c6423STom JosephAlignConsecutiveAssignments: false
7cf0c6423STom JosephAlignConsecutiveDeclarations: false
8*6492f524SGeorge LiuAlignEscapedNewlines: Right
9cf0c6423STom JosephAlignOperands:   true
10cf0c6423STom JosephAlignTrailingComments: true
11cf0c6423STom JosephAllowAllParametersOfDeclarationOnNextLine: true
12cf0c6423STom JosephAllowShortBlocksOnASingleLine: false
13cf0c6423STom JosephAllowShortCaseLabelsOnASingleLine: false
14cf0c6423STom JosephAllowShortFunctionsOnASingleLine: None
15cf0c6423STom JosephAllowShortIfStatementsOnASingleLine: false
16cf0c6423STom JosephAllowShortLoopsOnASingleLine: false
17cf0c6423STom JosephAlwaysBreakAfterReturnType: None
18cf0c6423STom JosephAlwaysBreakBeforeMultilineStrings: false
19*6492f524SGeorge LiuAlwaysBreakTemplateDeclarations: Yes
20cf0c6423STom JosephBinPackArguments: true
21cf0c6423STom JosephBinPackParameters: true
22cf0c6423STom JosephBraceWrapping:
23826c9d43SDeepak Kodihalli  AfterCaseLabel:  true
24cf0c6423STom Joseph  AfterClass:      true
25cf0c6423STom Joseph  AfterControlStatement: true
26cf0c6423STom Joseph  AfterEnum:       true
27cf0c6423STom Joseph  AfterFunction:   true
28cf0c6423STom Joseph  AfterNamespace:  true
29cf0c6423STom Joseph  AfterObjCDeclaration: true
30cf0c6423STom Joseph  AfterStruct:     true
31cf0c6423STom Joseph  AfterUnion:      true
32*6492f524SGeorge Liu  AfterExternBlock: true
33cf0c6423STom Joseph  BeforeCatch:     true
34cf0c6423STom Joseph  BeforeElse:      true
35cf0c6423STom Joseph  IndentBraces:    false
36*6492f524SGeorge Liu  SplitEmptyFunction:   false
37*6492f524SGeorge Liu  SplitEmptyRecord:     false
38*6492f524SGeorge Liu  SplitEmptyNamespace:  false
39cf0c6423STom JosephBreakBeforeBinaryOperators: None
40cf0c6423STom JosephBreakBeforeBraces: Custom
41cf0c6423STom JosephBreakBeforeTernaryOperators: true
42cf0c6423STom JosephBreakConstructorInitializers: AfterColon
43*6492f524SGeorge LiuBreakInheritanceList: AfterColon
44*6492f524SGeorge LiuBreakStringLiterals: true
45cf0c6423STom JosephColumnLimit:     80
46cf0c6423STom JosephCommentPragmas:  '^ IWYU pragma:'
47*6492f524SGeorge LiuCompactNamespaces: false
48cf0c6423STom JosephConstructorInitializerAllOnOneLineOrOnePerLine: false
49cf0c6423STom JosephConstructorInitializerIndentWidth: 4
50cf0c6423STom JosephContinuationIndentWidth: 4
51cf0c6423STom JosephCpp11BracedListStyle: true
52cf0c6423STom JosephDerivePointerAlignment: false
53cf0c6423STom JosephPointerAlignment: Left
54cf0c6423STom JosephDisableFormat:   false
55cf0c6423STom JosephExperimentalAutoDetectBinPacking: false
56cf0c6423STom JosephFixNamespaceComments: true
57cf0c6423STom JosephForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
58cf0c6423STom JosephIncludeBlocks: Regroup
59cf0c6423STom JosephIncludeCategories:
60cf0c6423STom Joseph  - Regex:           '^[<"](gtest|gmock)'
61*6492f524SGeorge Liu    Priority:        7
62cf0c6423STom Joseph  - Regex:           '^"config.h"'
63cf0c6423STom Joseph    Priority:        -1
64*6492f524SGeorge Liu  - Regex:           '^".*\.h"'
65cf0c6423STom Joseph    Priority:        1
66*6492f524SGeorge Liu  - Regex:           '^".*\.hpp"'
67cf0c6423STom Joseph    Priority:        2
68*6492f524SGeorge Liu  - Regex:           '^<.*\.h>'
69cf0c6423STom Joseph    Priority:        3
70*6492f524SGeorge Liu  - Regex:           '^<.*\.hpp>'
71cf0c6423STom Joseph    Priority:        4
72*6492f524SGeorge Liu  - Regex:           '^<.*'
73*6492f524SGeorge Liu    Priority:        5
74*6492f524SGeorge Liu  - Regex:           '.*'
75*6492f524SGeorge Liu    Priority:        6
76cf0c6423STom JosephIndentCaseLabels: true
77cf0c6423STom JosephIndentWidth:     4
78cf0c6423STom JosephIndentWrappedFunctionNames: true
79cf0c6423STom JosephKeepEmptyLinesAtTheStartOfBlocks: true
80cf0c6423STom JosephMacroBlockBegin: ''
81cf0c6423STom JosephMacroBlockEnd:   ''
82cf0c6423STom JosephMaxEmptyLinesToKeep: 1
83cf0c6423STom JosephNamespaceIndentation: None
84cf0c6423STom JosephObjCBlockIndentWidth: 2
85cf0c6423STom JosephObjCSpaceAfterProperty: false
86cf0c6423STom JosephObjCSpaceBeforeProtocolList: true
87cf0c6423STom JosephPenaltyBreakBeforeFirstCallParameter: 19
88cf0c6423STom JosephPenaltyBreakComment: 300
89cf0c6423STom JosephPenaltyBreakFirstLessLess: 120
90cf0c6423STom JosephPenaltyBreakString: 1000
91cf0c6423STom JosephPenaltyExcessCharacter: 1000000
92cf0c6423STom JosephPenaltyReturnTypeOnItsOwnLine: 60
93cf0c6423STom JosephReflowComments:  true
94cf0c6423STom JosephSortIncludes:    true
95cf0c6423STom JosephSortUsingDeclarations: true
96cf0c6423STom JosephSpaceAfterCStyleCast: false
97*6492f524SGeorge LiuSpaceAfterTemplateKeyword: true
98cf0c6423STom JosephSpaceBeforeAssignmentOperators: true
99*6492f524SGeorge LiuSpaceBeforeCpp11BracedList: false
100*6492f524SGeorge LiuSpaceBeforeCtorInitializerColon: true
101*6492f524SGeorge LiuSpaceBeforeInheritanceColon: true
102cf0c6423STom JosephSpaceBeforeParens: ControlStatements
103*6492f524SGeorge LiuSpaceBeforeRangeBasedForLoopColon: true
104cf0c6423STom JosephSpaceInEmptyParentheses: false
105cf0c6423STom JosephSpacesBeforeTrailingComments: 1
106cf0c6423STom JosephSpacesInAngles:  false
107cf0c6423STom JosephSpacesInContainerLiterals: true
108cf0c6423STom JosephSpacesInCStyleCastParentheses: false
109cf0c6423STom JosephSpacesInParentheses: false
110cf0c6423STom JosephSpacesInSquareBrackets: false
111*6492f524SGeorge LiuStandard:        Latest
112cf0c6423STom JosephTabWidth:        4
113cf0c6423STom JosephUseTab:          Never
114cf0c6423STom Joseph...
115