xref: /openbmc/google-ipmi-sys/.clang-format (revision 8c0094e4)
14d49ae65SPatrick Venture---
24d49ae65SPatrick VentureLanguage:        Cpp
34d49ae65SPatrick Venture# BasedOnStyle:  LLVM
44d49ae65SPatrick VentureAccessModifierOffset: -2
54d49ae65SPatrick VentureAlignAfterOpenBracket: Align
64d49ae65SPatrick VentureAlignConsecutiveAssignments: false
74d49ae65SPatrick VentureAlignConsecutiveDeclarations: false
8444b5ea4SPatrick WilliamsAlignEscapedNewlines: Right
9444b5ea4SPatrick WilliamsAlignOperands:  Align
10444b5ea4SPatrick WilliamsAlignTrailingComments:
11444b5ea4SPatrick Williams  Kind: Always
12444b5ea4SPatrick Williams  OverEmptyLines: 1
134d49ae65SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
14444b5ea4SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
154d49ae65SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
16444b5ea4SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17bc24cd03SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18bc24cd03SPatrick WilliamsAllowShortLambdasOnASingleLine: true
194d49ae65SPatrick VentureAllowShortLoopsOnASingleLine: false
204d49ae65SPatrick VentureAlwaysBreakAfterReturnType: None
214d49ae65SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
22444b5ea4SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
234d49ae65SPatrick VentureBinPackArguments: true
244d49ae65SPatrick VentureBinPackParameters: true
25bc24cd03SPatrick WilliamsBitFieldColonSpacing: None
264d49ae65SPatrick VentureBraceWrapping:
27444b5ea4SPatrick Williams  AfterCaseLabel:  true
284d49ae65SPatrick Venture  AfterClass:      true
294d49ae65SPatrick Venture  AfterControlStatement: true
304d49ae65SPatrick Venture  AfterEnum:       true
31bc24cd03SPatrick Williams  AfterExternBlock: true
324d49ae65SPatrick Venture  AfterFunction:   true
334d49ae65SPatrick Venture  AfterNamespace:  true
344d49ae65SPatrick Venture  AfterObjCDeclaration: true
354d49ae65SPatrick Venture  AfterStruct:     true
364d49ae65SPatrick Venture  AfterUnion:      true
374d49ae65SPatrick Venture  BeforeCatch:     true
384d49ae65SPatrick Venture  BeforeElse:      true
39bc24cd03SPatrick Williams  BeforeLambdaBody: false
40bc24cd03SPatrick Williams  BeforeWhile:     false
414d49ae65SPatrick Venture  IndentBraces:    false
42444b5ea4SPatrick Williams  SplitEmptyFunction:   false
43444b5ea4SPatrick Williams  SplitEmptyRecord:     false
44444b5ea4SPatrick Williams  SplitEmptyNamespace:  false
45444b5ea4SPatrick WilliamsBreakAfterAttributes: Never
464d49ae65SPatrick VentureBreakBeforeBinaryOperators: None
474d49ae65SPatrick VentureBreakBeforeBraces: Custom
484d49ae65SPatrick VentureBreakBeforeTernaryOperators: true
494d49ae65SPatrick VentureBreakConstructorInitializers: AfterColon
50444b5ea4SPatrick WilliamsBreakInheritanceList: AfterColon
51444b5ea4SPatrick WilliamsBreakStringLiterals: false
524d49ae65SPatrick VentureColumnLimit:     80
534d49ae65SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
54444b5ea4SPatrick WilliamsCompactNamespaces: false
554d49ae65SPatrick VentureConstructorInitializerIndentWidth: 4
564d49ae65SPatrick VentureContinuationIndentWidth: 4
574d49ae65SPatrick VentureCpp11BracedListStyle: true
584d49ae65SPatrick VentureDerivePointerAlignment: false
594d49ae65SPatrick VentureDisableFormat:   false
604d49ae65SPatrick VentureFixNamespaceComments: true
61bc24cd03SPatrick WilliamsForEachMacros:
62bc24cd03SPatrick Williams  - foreach
63bc24cd03SPatrick Williams  - Q_FOREACH
64bc24cd03SPatrick Williams  - BOOST_FOREACH
654d49ae65SPatrick VentureIncludeBlocks: Regroup
664d49ae65SPatrick VentureIncludeCategories:
674d49ae65SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
68444b5ea4SPatrick Williams    Priority:        7
694d49ae65SPatrick Venture  - Regex:           '^"config.h"'
704d49ae65SPatrick Venture    Priority:        -1
71444b5ea4SPatrick Williams  - Regex:           '^".*\.h"'
724d49ae65SPatrick Venture    Priority:        1
73444b5ea4SPatrick Williams  - Regex:           '^".*\.hpp"'
744d49ae65SPatrick Venture    Priority:        2
75444b5ea4SPatrick Williams  - Regex:           '^<.*\.h>'
764d49ae65SPatrick Venture    Priority:        3
77444b5ea4SPatrick Williams  - Regex:           '^<.*\.hpp>'
784d49ae65SPatrick Venture    Priority:        4
79444b5ea4SPatrick Williams  - Regex:           '^<.*'
80444b5ea4SPatrick Williams    Priority:        5
81444b5ea4SPatrick Williams  - Regex:           '.*'
82444b5ea4SPatrick Williams    Priority:        6
834d49ae65SPatrick VentureIndentCaseLabels: true
84444b5ea4SPatrick WilliamsIndentExternBlock: NoIndent
85444b5ea4SPatrick WilliamsIndentRequiresClause: true
864d49ae65SPatrick VentureIndentWidth:     4
874d49ae65SPatrick VentureIndentWrappedFunctionNames: true
88444b5ea4SPatrick WilliamsInsertNewlineAtEOF: true
89444b5ea4SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*8c0094e4SPatrick WilliamsLambdaBodyIndentation: Signature
91444b5ea4SPatrick WilliamsLineEnding: LF
924d49ae65SPatrick VentureMacroBlockBegin: ''
934d49ae65SPatrick VentureMacroBlockEnd:   ''
944d49ae65SPatrick VentureMaxEmptyLinesToKeep: 1
954d49ae65SPatrick VentureNamespaceIndentation: None
964d49ae65SPatrick VentureObjCBlockIndentWidth: 2
974d49ae65SPatrick VentureObjCSpaceAfterProperty: false
984d49ae65SPatrick VentureObjCSpaceBeforeProtocolList: true
99bc24cd03SPatrick WilliamsPackConstructorInitializers: BinPack
100444b5ea4SPatrick WilliamsPenaltyBreakAssignment: 25
101*8c0094e4SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
1024d49ae65SPatrick VenturePenaltyBreakComment: 300
1034d49ae65SPatrick VenturePenaltyBreakFirstLessLess: 120
1044d49ae65SPatrick VenturePenaltyBreakString: 1000
105*8c0094e4SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
1064d49ae65SPatrick VenturePenaltyExcessCharacter: 1000000
1074d49ae65SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
108*8c0094e4SPatrick WilliamsPenaltyIndentedWhitespace: 1
109bc24cd03SPatrick WilliamsPointerAlignment: Left
110444b5ea4SPatrick WilliamsQualifierAlignment: Left
111444b5ea4SPatrick WilliamsReferenceAlignment: Left
1124d49ae65SPatrick VentureReflowComments:  true
113444b5ea4SPatrick WilliamsRequiresClausePosition: OwnLine
114444b5ea4SPatrick WilliamsRequiresExpressionIndentation: Keyword
115bc24cd03SPatrick WilliamsSortIncludes: CaseSensitive
1164d49ae65SPatrick VentureSortUsingDeclarations: true
1174d49ae65SPatrick VentureSpaceAfterCStyleCast: false
118444b5ea4SPatrick WilliamsSpaceAfterTemplateKeyword: true
1194d49ae65SPatrick VentureSpaceBeforeAssignmentOperators: true
120444b5ea4SPatrick WilliamsSpaceBeforeCpp11BracedList: false
121444b5ea4SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
122444b5ea4SPatrick WilliamsSpaceBeforeInheritanceColon: true
1234d49ae65SPatrick VentureSpaceBeforeParens: ControlStatements
124444b5ea4SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
1254d49ae65SPatrick VentureSpaceInEmptyParentheses: false
1264d49ae65SPatrick VentureSpacesBeforeTrailingComments: 1
127bc24cd03SPatrick WilliamsSpacesInAngles: Never
1284d49ae65SPatrick VentureSpacesInContainerLiterals: true
1294d49ae65SPatrick VentureSpacesInCStyleCastParentheses: false
1304d49ae65SPatrick VentureSpacesInParentheses: false
1314d49ae65SPatrick VentureSpacesInSquareBrackets: false
132444b5ea4SPatrick WilliamsStandard:        Latest
1334d49ae65SPatrick VentureTabWidth:        4
1344d49ae65SPatrick VentureUseTab:          Never
1354d49ae65SPatrick Venture...
1364d49ae65SPatrick Venture
137