xref: /openbmc/bmcweb/.clang-format (revision 1ccd57c4)
1---
2Language:        Cpp
3# BasedOnStyle:  Google
4AccessModifierOffset: -1
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
8AlignEscapedNewlinesLeft: true
9AlignOperands:   true
10AlignTrailingComments: true
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortBlocksOnASingleLine: false
13AllowShortCaseLabelsOnASingleLine: false
14AllowShortFunctionsOnASingleLine: All
15AllowShortIfStatementsOnASingleLine: true
16AllowShortLoopsOnASingleLine: true
17AlwaysBreakAfterDefinitionReturnType: None
18AlwaysBreakAfterReturnType: None
19AlwaysBreakBeforeMultilineStrings: true
20AlwaysBreakTemplateDeclarations: true
21BinPackArguments: true
22BinPackParameters: true
23BraceWrapping:
24  AfterClass:      false
25  AfterControlStatement: false
26  AfterEnum:       false
27  AfterFunction:   false
28  AfterNamespace:  false
29  AfterObjCDeclaration: false
30  AfterStruct:     false
31  AfterUnion:      false
32  BeforeCatch:     false
33  BeforeElse:      false
34  IndentBraces:    false
35BreakBeforeBinaryOperators: None
36BreakBeforeBraces: Attach
37BreakBeforeTernaryOperators: true
38BreakConstructorInitializersBeforeComma: false
39ColumnLimit:     80
40CommentPragmas:  '^ IWYU pragma:'
41ConstructorInitializerAllOnOneLineOrOnePerLine: true
42ConstructorInitializerIndentWidth: 4
43ContinuationIndentWidth: 4
44Cpp11BracedListStyle: true
45DerivePointerAlignment: true
46DisableFormat:   false
47ExperimentalAutoDetectBinPacking: false
48ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
49IncludeCategories:
50  - Regex:           '^<.*\.h>'
51    Priority:        1
52  - Regex:           '^<.*'
53    Priority:        2
54  - Regex:           '.*'
55    Priority:        3
56IndentCaseLabels: true
57IndentWidth:     2
58IndentWrappedFunctionNames: false
59KeepEmptyLinesAtTheStartOfBlocks: false
60MacroBlockBegin: ''
61MacroBlockEnd:   ''
62MaxEmptyLinesToKeep: 1
63NamespaceIndentation: None
64ObjCBlockIndentWidth: 2
65ObjCSpaceAfterProperty: false
66ObjCSpaceBeforeProtocolList: false
67PenaltyBreakBeforeFirstCallParameter: 1
68PenaltyBreakComment: 300
69PenaltyBreakFirstLessLess: 120
70PenaltyBreakString: 1000
71PenaltyExcessCharacter: 1000000
72PenaltyReturnTypeOnItsOwnLine: 200
73PointerAlignment: Left
74ReflowComments:  true
75SortIncludes:    true
76SpaceAfterCStyleCast: false
77SpaceBeforeAssignmentOperators: true
78SpaceBeforeParens: ControlStatements
79SpaceInEmptyParentheses: false
80SpacesBeforeTrailingComments: 2
81SpacesInAngles:  false
82SpacesInContainerLiterals: true
83SpacesInCStyleCastParentheses: false
84SpacesInParentheses: false
85SpacesInSquareBrackets: false
86Standard:        Auto
87TabWidth:        8
88UseTab:          Never
89...
90
91