xref: /openbmc/google-ipmi-sys/.clang-format (revision 444b5ea4)
14d49ae65SPatrick Venture---
24d49ae65SPatrick VentureLanguage:        Cpp
34d49ae65SPatrick Venture# BasedOnStyle:  LLVM
44d49ae65SPatrick VentureAccessModifierOffset: -2
54d49ae65SPatrick VentureAlignAfterOpenBracket: Align
64d49ae65SPatrick VentureAlignConsecutiveAssignments: false
74d49ae65SPatrick VentureAlignConsecutiveDeclarations: false
8*444b5ea4SPatrick WilliamsAlignEscapedNewlines: Right
9*444b5ea4SPatrick WilliamsAlignOperands:  Align
10*444b5ea4SPatrick WilliamsAlignTrailingComments:
11*444b5ea4SPatrick Williams  Kind: Always
12*444b5ea4SPatrick Williams  OverEmptyLines: 1
134d49ae65SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
14*444b5ea4SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
154d49ae65SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
16*444b5ea4SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
174d49ae65SPatrick VentureAllowShortIfStatementsOnASingleLine: false
184d49ae65SPatrick VentureAllowShortLoopsOnASingleLine: false
194d49ae65SPatrick VentureAlwaysBreakAfterReturnType: None
204d49ae65SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
21*444b5ea4SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
224d49ae65SPatrick VentureBinPackArguments: true
234d49ae65SPatrick VentureBinPackParameters: true
244d49ae65SPatrick VentureBraceWrapping:
25*444b5ea4SPatrick Williams  AfterCaseLabel:  true
264d49ae65SPatrick Venture  AfterClass:      true
274d49ae65SPatrick Venture  AfterControlStatement: true
284d49ae65SPatrick Venture  AfterEnum:       true
294d49ae65SPatrick Venture  AfterFunction:   true
304d49ae65SPatrick Venture  AfterNamespace:  true
314d49ae65SPatrick Venture  AfterObjCDeclaration: true
324d49ae65SPatrick Venture  AfterStruct:     true
334d49ae65SPatrick Venture  AfterUnion:      true
34*444b5ea4SPatrick Williams  AfterExternBlock: true
354d49ae65SPatrick Venture  BeforeCatch:     true
364d49ae65SPatrick Venture  BeforeElse:      true
374d49ae65SPatrick Venture  IndentBraces:    false
38*444b5ea4SPatrick Williams  SplitEmptyFunction:   false
39*444b5ea4SPatrick Williams  SplitEmptyRecord:     false
40*444b5ea4SPatrick Williams  SplitEmptyNamespace:  false
41*444b5ea4SPatrick WilliamsBreakAfterAttributes: Never
424d49ae65SPatrick VentureBreakBeforeBinaryOperators: None
434d49ae65SPatrick VentureBreakBeforeBraces: Custom
444d49ae65SPatrick VentureBreakBeforeTernaryOperators: true
454d49ae65SPatrick VentureBreakConstructorInitializers: AfterColon
46*444b5ea4SPatrick WilliamsBreakInheritanceList: AfterColon
47*444b5ea4SPatrick WilliamsBreakStringLiterals: false
484d49ae65SPatrick VentureColumnLimit:     80
494d49ae65SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
50*444b5ea4SPatrick WilliamsCompactNamespaces: false
514d49ae65SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
524d49ae65SPatrick VentureConstructorInitializerIndentWidth: 4
534d49ae65SPatrick VentureContinuationIndentWidth: 4
544d49ae65SPatrick VentureCpp11BracedListStyle: true
55*444b5ea4SPatrick WilliamsDeriveLineEnding: false
564d49ae65SPatrick VentureDerivePointerAlignment: false
574d49ae65SPatrick VenturePointerAlignment: Left
584d49ae65SPatrick VentureDisableFormat:   false
594d49ae65SPatrick VentureExperimentalAutoDetectBinPacking: false
604d49ae65SPatrick VentureFixNamespaceComments: true
614d49ae65SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
624d49ae65SPatrick VentureIncludeBlocks: Regroup
634d49ae65SPatrick VentureIncludeCategories:
644d49ae65SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
65*444b5ea4SPatrick Williams    Priority:        7
664d49ae65SPatrick Venture  - Regex:           '^"config.h"'
674d49ae65SPatrick Venture    Priority:        -1
68*444b5ea4SPatrick Williams  - Regex:           '^".*\.h"'
694d49ae65SPatrick Venture    Priority:        1
70*444b5ea4SPatrick Williams  - Regex:           '^".*\.hpp"'
714d49ae65SPatrick Venture    Priority:        2
72*444b5ea4SPatrick Williams  - Regex:           '^<.*\.h>'
734d49ae65SPatrick Venture    Priority:        3
74*444b5ea4SPatrick Williams  - Regex:           '^<.*\.hpp>'
754d49ae65SPatrick Venture    Priority:        4
76*444b5ea4SPatrick Williams  - Regex:           '^<.*'
77*444b5ea4SPatrick Williams    Priority:        5
78*444b5ea4SPatrick Williams  - Regex:           '.*'
79*444b5ea4SPatrick Williams    Priority:        6
804d49ae65SPatrick VentureIndentCaseLabels: true
81*444b5ea4SPatrick WilliamsIndentExternBlock: NoIndent
82*444b5ea4SPatrick WilliamsIndentRequiresClause: true
834d49ae65SPatrick VentureIndentWidth:     4
844d49ae65SPatrick VentureIndentWrappedFunctionNames: true
85*444b5ea4SPatrick WilliamsInsertNewlineAtEOF: true
86*444b5ea4SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
87*444b5ea4SPatrick WilliamsLambdaBodyIndentation: OuterScope
88*444b5ea4SPatrick WilliamsLineEnding: LF
894d49ae65SPatrick VentureMacroBlockBegin: ''
904d49ae65SPatrick VentureMacroBlockEnd:   ''
914d49ae65SPatrick VentureMaxEmptyLinesToKeep: 1
924d49ae65SPatrick VentureNamespaceIndentation: None
934d49ae65SPatrick VentureObjCBlockIndentWidth: 2
944d49ae65SPatrick VentureObjCSpaceAfterProperty: false
954d49ae65SPatrick VentureObjCSpaceBeforeProtocolList: true
96*444b5ea4SPatrick WilliamsPenaltyBreakAssignment: 25
974d49ae65SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
984d49ae65SPatrick VenturePenaltyBreakComment: 300
994d49ae65SPatrick VenturePenaltyBreakFirstLessLess: 120
1004d49ae65SPatrick VenturePenaltyBreakString: 1000
1014d49ae65SPatrick VenturePenaltyExcessCharacter: 1000000
1024d49ae65SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
103*444b5ea4SPatrick WilliamsPenaltyIndentedWhitespace: 0
104*444b5ea4SPatrick WilliamsQualifierAlignment: Left
105*444b5ea4SPatrick WilliamsReferenceAlignment: Left
1064d49ae65SPatrick VentureReflowComments:  true
107*444b5ea4SPatrick WilliamsRequiresClausePosition: OwnLine
108*444b5ea4SPatrick WilliamsRequiresExpressionIndentation: Keyword
1094d49ae65SPatrick VentureSortIncludes:    true
1104d49ae65SPatrick VentureSortUsingDeclarations: true
1114d49ae65SPatrick VentureSpaceAfterCStyleCast: false
112*444b5ea4SPatrick WilliamsSpaceAfterTemplateKeyword: true
1134d49ae65SPatrick VentureSpaceBeforeAssignmentOperators: true
114*444b5ea4SPatrick WilliamsSpaceBeforeCpp11BracedList: false
115*444b5ea4SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
116*444b5ea4SPatrick WilliamsSpaceBeforeInheritanceColon: true
1174d49ae65SPatrick VentureSpaceBeforeParens: ControlStatements
118*444b5ea4SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
1194d49ae65SPatrick VentureSpaceInEmptyParentheses: false
1204d49ae65SPatrick VentureSpacesBeforeTrailingComments: 1
1214d49ae65SPatrick VentureSpacesInAngles:  false
1224d49ae65SPatrick VentureSpacesInContainerLiterals: true
1234d49ae65SPatrick VentureSpacesInCStyleCastParentheses: false
1244d49ae65SPatrick VentureSpacesInParentheses: false
1254d49ae65SPatrick VentureSpacesInSquareBrackets: false
126*444b5ea4SPatrick WilliamsStandard:        Latest
1274d49ae65SPatrick VentureTabWidth:        4
1284d49ae65SPatrick VentureUseTab:          Never
1294d49ae65SPatrick Venture...
1304d49ae65SPatrick Venture
131