xref: /openbmc/obmc-ikvm/.clang-format (revision 94f5f422)
1f79f6f54SGeorge Liu---
2f79f6f54SGeorge LiuLanguage:        Cpp
3f79f6f54SGeorge Liu# BasedOnStyle:  LLVM
4f79f6f54SGeorge LiuAccessModifierOffset: -2
5f79f6f54SGeorge LiuAlignAfterOpenBracket: Align
6f79f6f54SGeorge LiuAlignConsecutiveAssignments: false
7f79f6f54SGeorge LiuAlignConsecutiveDeclarations: false
8f79f6f54SGeorge LiuAlignEscapedNewlines: Right
93c110335SPatrick WilliamsAlignOperands:  Align
103c110335SPatrick WilliamsAlignTrailingComments:
113c110335SPatrick Williams  Kind: Always
123c110335SPatrick Williams  OverEmptyLines: 1
13f79f6f54SGeorge LiuAllowAllParametersOfDeclarationOnNextLine: true
143c110335SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15f79f6f54SGeorge LiuAllowShortCaseLabelsOnASingleLine: false
163c110335SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
1763cef2a2SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
1863cef2a2SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19f79f6f54SGeorge LiuAllowShortLoopsOnASingleLine: false
20f79f6f54SGeorge LiuAlwaysBreakAfterReturnType: None
21f79f6f54SGeorge LiuAlwaysBreakBeforeMultilineStrings: false
22f79f6f54SGeorge LiuAlwaysBreakTemplateDeclarations: Yes
23f79f6f54SGeorge LiuBinPackArguments: true
24f79f6f54SGeorge LiuBinPackParameters: true
2563cef2a2SPatrick WilliamsBitFieldColonSpacing: None
26f79f6f54SGeorge LiuBraceWrapping:
27f79f6f54SGeorge Liu  AfterCaseLabel:  true
28f79f6f54SGeorge Liu  AfterClass:      true
29f79f6f54SGeorge Liu  AfterControlStatement: true
30f79f6f54SGeorge Liu  AfterEnum:       true
3163cef2a2SPatrick Williams  AfterExternBlock: true
32f79f6f54SGeorge Liu  AfterFunction:   true
33f79f6f54SGeorge Liu  AfterNamespace:  true
34f79f6f54SGeorge Liu  AfterObjCDeclaration: true
35f79f6f54SGeorge Liu  AfterStruct:     true
36f79f6f54SGeorge Liu  AfterUnion:      true
37f79f6f54SGeorge Liu  BeforeCatch:     true
38f79f6f54SGeorge Liu  BeforeElse:      true
3963cef2a2SPatrick Williams  BeforeLambdaBody: false
4063cef2a2SPatrick Williams  BeforeWhile:     false
41f79f6f54SGeorge Liu  IndentBraces:    false
42f79f6f54SGeorge Liu  SplitEmptyFunction:   false
43f79f6f54SGeorge Liu  SplitEmptyRecord:     false
44f79f6f54SGeorge Liu  SplitEmptyNamespace:  false
453c110335SPatrick WilliamsBreakAfterAttributes: Never
46f79f6f54SGeorge LiuBreakBeforeBinaryOperators: None
47f79f6f54SGeorge LiuBreakBeforeBraces: Custom
48f79f6f54SGeorge LiuBreakBeforeTernaryOperators: true
49f79f6f54SGeorge LiuBreakConstructorInitializers: AfterColon
50f79f6f54SGeorge LiuBreakInheritanceList: AfterColon
51f79f6f54SGeorge LiuBreakStringLiterals: false
52f79f6f54SGeorge LiuColumnLimit:     80
53f79f6f54SGeorge LiuCommentPragmas:  '^ IWYU pragma:'
54f79f6f54SGeorge LiuCompactNamespaces: false
55f79f6f54SGeorge LiuConstructorInitializerIndentWidth: 4
56f79f6f54SGeorge LiuContinuationIndentWidth: 4
57f79f6f54SGeorge LiuCpp11BracedListStyle: true
58f79f6f54SGeorge LiuDerivePointerAlignment: false
59f79f6f54SGeorge LiuDisableFormat:   false
60f79f6f54SGeorge LiuFixNamespaceComments: true
6163cef2a2SPatrick WilliamsForEachMacros:
6263cef2a2SPatrick Williams  - foreach
6363cef2a2SPatrick Williams  - Q_FOREACH
6463cef2a2SPatrick Williams  - BOOST_FOREACH
65f79f6f54SGeorge LiuIncludeBlocks: Regroup
66f79f6f54SGeorge LiuIncludeCategories:
67f79f6f54SGeorge Liu  - Regex:           '^[<"](gtest|gmock)'
68f79f6f54SGeorge Liu    Priority:        7
69f79f6f54SGeorge Liu  - Regex:           '^"config.h"'
70f79f6f54SGeorge Liu    Priority:        -1
71f79f6f54SGeorge Liu  - Regex:           '^".*\.h"'
72f79f6f54SGeorge Liu    Priority:        1
73f79f6f54SGeorge Liu  - Regex:           '^".*\.hpp"'
74f79f6f54SGeorge Liu    Priority:        2
75f79f6f54SGeorge Liu  - Regex:           '^<.*\.h>'
76f79f6f54SGeorge Liu    Priority:        3
77f79f6f54SGeorge Liu  - Regex:           '^<.*\.hpp>'
78f79f6f54SGeorge Liu    Priority:        4
79f79f6f54SGeorge Liu  - Regex:           '^<.*'
80f79f6f54SGeorge Liu    Priority:        5
81f79f6f54SGeorge Liu  - Regex:           '.*'
82f79f6f54SGeorge Liu    Priority:        6
83f79f6f54SGeorge LiuIndentCaseLabels: true
8463cef2a2SPatrick WilliamsIndentExternBlock: NoIndent
853c110335SPatrick WilliamsIndentRequiresClause: true
86f79f6f54SGeorge LiuIndentWidth:     4
87f79f6f54SGeorge LiuIndentWrappedFunctionNames: true
883c110335SPatrick WilliamsInsertNewlineAtEOF: true
89f79f6f54SGeorge LiuKeepEmptyLinesAtTheStartOfBlocks: false
90*94f5f422SPatrick WilliamsLambdaBodyIndentation: Signature
913c110335SPatrick WilliamsLineEnding: LF
92f79f6f54SGeorge LiuMacroBlockBegin: ''
93f79f6f54SGeorge LiuMacroBlockEnd:   ''
94f79f6f54SGeorge LiuMaxEmptyLinesToKeep: 1
95f79f6f54SGeorge LiuNamespaceIndentation: None
96f79f6f54SGeorge LiuObjCBlockIndentWidth: 2
97f79f6f54SGeorge LiuObjCSpaceAfterProperty: false
98f79f6f54SGeorge LiuObjCSpaceBeforeProtocolList: true
9963cef2a2SPatrick WilliamsPackConstructorInitializers: BinPack
1003c110335SPatrick WilliamsPenaltyBreakAssignment: 25
101*94f5f422SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102f79f6f54SGeorge LiuPenaltyBreakComment: 300
103f79f6f54SGeorge LiuPenaltyBreakFirstLessLess: 120
104f79f6f54SGeorge LiuPenaltyBreakString: 1000
105*94f5f422SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106f79f6f54SGeorge LiuPenaltyExcessCharacter: 1000000
107f79f6f54SGeorge LiuPenaltyReturnTypeOnItsOwnLine: 60
108*94f5f422SPatrick WilliamsPenaltyIndentedWhitespace: 1
10963cef2a2SPatrick WilliamsPointerAlignment: Left
1103c110335SPatrick WilliamsQualifierAlignment: Left
1113c110335SPatrick WilliamsReferenceAlignment: Left
112f79f6f54SGeorge LiuReflowComments:  true
1133c110335SPatrick WilliamsRequiresClausePosition: OwnLine
1143c110335SPatrick WilliamsRequiresExpressionIndentation: Keyword
11563cef2a2SPatrick WilliamsSortIncludes: CaseSensitive
116f79f6f54SGeorge LiuSortUsingDeclarations: true
117f79f6f54SGeorge LiuSpaceAfterCStyleCast: false
118f79f6f54SGeorge LiuSpaceAfterTemplateKeyword: true
119f79f6f54SGeorge LiuSpaceBeforeAssignmentOperators: true
120f79f6f54SGeorge LiuSpaceBeforeCpp11BracedList: false
121f79f6f54SGeorge LiuSpaceBeforeCtorInitializerColon: true
122f79f6f54SGeorge LiuSpaceBeforeInheritanceColon: true
123f79f6f54SGeorge LiuSpaceBeforeParens: ControlStatements
124f79f6f54SGeorge LiuSpaceBeforeRangeBasedForLoopColon: true
125f79f6f54SGeorge LiuSpaceInEmptyParentheses: false
126f79f6f54SGeorge LiuSpacesBeforeTrailingComments: 1
12763cef2a2SPatrick WilliamsSpacesInAngles: Never
128f79f6f54SGeorge LiuSpacesInContainerLiterals: true
129f79f6f54SGeorge LiuSpacesInCStyleCastParentheses: false
130f79f6f54SGeorge LiuSpacesInParentheses: false
131f79f6f54SGeorge LiuSpacesInSquareBrackets: false
132f79f6f54SGeorge LiuStandard:        Latest
133f79f6f54SGeorge LiuTabWidth:        4
134f79f6f54SGeorge LiuUseTab:          Never
135f79f6f54SGeorge Liu...
1363c110335SPatrick Williams
137