xref: /openbmc/pldm/.clang-format (revision ca1998f3)
1cf0c6423STom Joseph---
2cf0c6423STom JosephLanguage:        Cpp
3cf0c6423STom Joseph# BasedOnStyle:  LLVM
4cf0c6423STom JosephAccessModifierOffset: -2
5cf0c6423STom JosephAlignAfterOpenBracket: Align
6cf0c6423STom JosephAlignConsecutiveAssignments: false
7cf0c6423STom JosephAlignConsecutiveDeclarations: false
86492f524SGeorge 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
196492f524SGeorge 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
326492f524SGeorge Liu  AfterExternBlock: true
33cf0c6423STom Joseph  BeforeCatch:     true
34cf0c6423STom Joseph  BeforeElse:      true
35cf0c6423STom Joseph  IndentBraces:    false
366492f524SGeorge Liu  SplitEmptyFunction:   false
376492f524SGeorge Liu  SplitEmptyRecord:     false
386492f524SGeorge Liu  SplitEmptyNamespace:  false
39cf0c6423STom JosephBreakBeforeBinaryOperators: None
40cf0c6423STom JosephBreakBeforeBraces: Custom
41cf0c6423STom JosephBreakBeforeTernaryOperators: true
42cf0c6423STom JosephBreakConstructorInitializers: AfterColon
436492f524SGeorge LiuBreakInheritanceList: AfterColon
44a6678d74SGeorge LiuBreakStringLiterals: false
45cf0c6423STom JosephColumnLimit:     80
46cf0c6423STom JosephCommentPragmas:  '^ IWYU pragma:'
476492f524SGeorge LiuCompactNamespaces: false
48cf0c6423STom JosephConstructorInitializerAllOnOneLineOrOnePerLine: false
49cf0c6423STom JosephConstructorInitializerIndentWidth: 4
50cf0c6423STom JosephContinuationIndentWidth: 4
51cf0c6423STom JosephCpp11BracedListStyle: true
5266d26e36SManojkiran EdaDeriveLineEnding: false
53cf0c6423STom JosephDerivePointerAlignment: false
54cf0c6423STom JosephPointerAlignment: Left
55cf0c6423STom JosephDisableFormat:   false
56cf0c6423STom JosephExperimentalAutoDetectBinPacking: false
57cf0c6423STom JosephFixNamespaceComments: true
58cf0c6423STom JosephForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
59cf0c6423STom JosephIncludeBlocks: Regroup
60cf0c6423STom JosephIncludeCategories:
61cf0c6423STom Joseph  - Regex:           '^[<"](gtest|gmock)'
626492f524SGeorge Liu    Priority:        7
63cf0c6423STom Joseph  - Regex:           '^"config.h"'
64cf0c6423STom Joseph    Priority:        -1
656492f524SGeorge Liu  - Regex:           '^".*\.h"'
66cf0c6423STom Joseph    Priority:        1
676492f524SGeorge Liu  - Regex:           '^".*\.hpp"'
68cf0c6423STom Joseph    Priority:        2
696492f524SGeorge Liu  - Regex:           '^<.*\.h>'
70cf0c6423STom Joseph    Priority:        3
716492f524SGeorge Liu  - Regex:           '^<.*\.hpp>'
72cf0c6423STom Joseph    Priority:        4
736492f524SGeorge Liu  - Regex:           '^<.*'
746492f524SGeorge Liu    Priority:        5
756492f524SGeorge Liu  - Regex:           '.*'
766492f524SGeorge Liu    Priority:        6
77cf0c6423STom JosephIndentCaseLabels: true
78cf0c6423STom JosephIndentWidth:     4
79cf0c6423STom JosephIndentWrappedFunctionNames: true
80*ca1998f3SManojkiran EdaKeepEmptyLinesAtTheStartOfBlocks: false
81cf0c6423STom JosephMacroBlockBegin: ''
82cf0c6423STom JosephMacroBlockEnd:   ''
83cf0c6423STom JosephMaxEmptyLinesToKeep: 1
84cf0c6423STom JosephNamespaceIndentation: None
85cf0c6423STom JosephObjCBlockIndentWidth: 2
86cf0c6423STom JosephObjCSpaceAfterProperty: false
87cf0c6423STom JosephObjCSpaceBeforeProtocolList: true
88cf0c6423STom JosephPenaltyBreakBeforeFirstCallParameter: 19
89cf0c6423STom JosephPenaltyBreakComment: 300
90cf0c6423STom JosephPenaltyBreakFirstLessLess: 120
91cf0c6423STom JosephPenaltyBreakString: 1000
92cf0c6423STom JosephPenaltyExcessCharacter: 1000000
93cf0c6423STom JosephPenaltyReturnTypeOnItsOwnLine: 60
94cf0c6423STom JosephReflowComments:  true
95cf0c6423STom JosephSortIncludes:    true
96cf0c6423STom JosephSortUsingDeclarations: true
97cf0c6423STom JosephSpaceAfterCStyleCast: false
986492f524SGeorge LiuSpaceAfterTemplateKeyword: true
99cf0c6423STom JosephSpaceBeforeAssignmentOperators: true
1006492f524SGeorge LiuSpaceBeforeCpp11BracedList: false
1016492f524SGeorge LiuSpaceBeforeCtorInitializerColon: true
1026492f524SGeorge LiuSpaceBeforeInheritanceColon: true
103cf0c6423STom JosephSpaceBeforeParens: ControlStatements
1046492f524SGeorge LiuSpaceBeforeRangeBasedForLoopColon: true
105cf0c6423STom JosephSpaceInEmptyParentheses: false
106cf0c6423STom JosephSpacesBeforeTrailingComments: 1
107cf0c6423STom JosephSpacesInAngles:  false
108cf0c6423STom JosephSpacesInContainerLiterals: true
109cf0c6423STom JosephSpacesInCStyleCastParentheses: false
110cf0c6423STom JosephSpacesInParentheses: false
111cf0c6423STom JosephSpacesInSquareBrackets: false
1126492f524SGeorge LiuStandard:        Latest
113cf0c6423STom JosephTabWidth:        4
11466d26e36SManojkiran EdaUseCRLF: false
115cf0c6423STom JosephUseTab:          Never
116cf0c6423STom Joseph...
11766d26e36SManojkiran Eda
118