xref: /openbmc/google-ipmi-sys/.clang-format (revision bc24cd03)
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
17*bc24cd03SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*bc24cd03SPatrick WilliamsAllowShortLambdasOnASingleLine: true
194d49ae65SPatrick VentureAllowShortLoopsOnASingleLine: false
204d49ae65SPatrick VentureAlwaysBreakAfterReturnType: None
214d49ae65SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
22444b5ea4SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
234d49ae65SPatrick VentureBinPackArguments: true
244d49ae65SPatrick VentureBinPackParameters: true
25*bc24cd03SPatrick WilliamsBitFieldColonSpacing: None
264d49ae65SPatrick VentureBraceWrapping:
27444b5ea4SPatrick Williams  AfterCaseLabel:  true
284d49ae65SPatrick Venture  AfterClass:      true
294d49ae65SPatrick Venture  AfterControlStatement: true
304d49ae65SPatrick Venture  AfterEnum:       true
31*bc24cd03SPatrick 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
39*bc24cd03SPatrick Williams  BeforeLambdaBody: false
40*bc24cd03SPatrick 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
61*bc24cd03SPatrick WilliamsForEachMacros:
62*bc24cd03SPatrick Williams  - foreach
63*bc24cd03SPatrick Williams  - Q_FOREACH
64*bc24cd03SPatrick 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
90444b5ea4SPatrick WilliamsLambdaBodyIndentation: OuterScope
91444b5ea4SPatrick WilliamsLineEnding: LF
924d49ae65SPatrick VentureMacroBlockBegin: ''
934d49ae65SPatrick VentureMacroBlockEnd:   ''
944d49ae65SPatrick VentureMaxEmptyLinesToKeep: 1
954d49ae65SPatrick VentureNamespaceIndentation: None
964d49ae65SPatrick VentureObjCBlockIndentWidth: 2
974d49ae65SPatrick VentureObjCSpaceAfterProperty: false
984d49ae65SPatrick VentureObjCSpaceBeforeProtocolList: true
99*bc24cd03SPatrick WilliamsPackConstructorInitializers: BinPack
100444b5ea4SPatrick WilliamsPenaltyBreakAssignment: 25
1014d49ae65SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
1024d49ae65SPatrick VenturePenaltyBreakComment: 300
1034d49ae65SPatrick VenturePenaltyBreakFirstLessLess: 120
1044d49ae65SPatrick VenturePenaltyBreakString: 1000
1054d49ae65SPatrick VenturePenaltyExcessCharacter: 1000000
1064d49ae65SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
107444b5ea4SPatrick WilliamsPenaltyIndentedWhitespace: 0
108*bc24cd03SPatrick WilliamsPointerAlignment: Left
109444b5ea4SPatrick WilliamsQualifierAlignment: Left
110444b5ea4SPatrick WilliamsReferenceAlignment: Left
1114d49ae65SPatrick VentureReflowComments:  true
112444b5ea4SPatrick WilliamsRequiresClausePosition: OwnLine
113444b5ea4SPatrick WilliamsRequiresExpressionIndentation: Keyword
114*bc24cd03SPatrick WilliamsSortIncludes: CaseSensitive
1154d49ae65SPatrick VentureSortUsingDeclarations: true
1164d49ae65SPatrick VentureSpaceAfterCStyleCast: false
117444b5ea4SPatrick WilliamsSpaceAfterTemplateKeyword: true
1184d49ae65SPatrick VentureSpaceBeforeAssignmentOperators: true
119444b5ea4SPatrick WilliamsSpaceBeforeCpp11BracedList: false
120444b5ea4SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
121444b5ea4SPatrick WilliamsSpaceBeforeInheritanceColon: true
1224d49ae65SPatrick VentureSpaceBeforeParens: ControlStatements
123444b5ea4SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
1244d49ae65SPatrick VentureSpaceInEmptyParentheses: false
1254d49ae65SPatrick VentureSpacesBeforeTrailingComments: 1
126*bc24cd03SPatrick WilliamsSpacesInAngles: Never
1274d49ae65SPatrick VentureSpacesInContainerLiterals: true
1284d49ae65SPatrick VentureSpacesInCStyleCastParentheses: false
1294d49ae65SPatrick VentureSpacesInParentheses: false
1304d49ae65SPatrick VentureSpacesInSquareBrackets: false
131444b5ea4SPatrick WilliamsStandard:        Latest
1324d49ae65SPatrick VentureTabWidth:        4
1334d49ae65SPatrick VentureUseTab:          Never
1344d49ae65SPatrick Venture...
1354d49ae65SPatrick Venture
136