xref: /openbmc/kcsbridge/.clang-format (revision be4d9e70)
1a1c50751SHaiyue Wang---
2a1c50751SHaiyue WangLanguage:        Cpp
39ce5a9a0SVernon Mauery# BasedOnStyle:  LLVM
49ce5a9a0SVernon MaueryAccessModifierOffset: -2
59ce5a9a0SVernon MaueryAlignAfterOpenBracket: Align
69ce5a9a0SVernon MaueryAlignConsecutiveAssignments: false
79ce5a9a0SVernon MaueryAlignConsecutiveDeclarations: false
84f5ba642SWilliam A. Kennington IIIAlignEscapedNewlines: Right
943c83c56SPatrick WilliamsAlignOperands:  Align
1043c83c56SPatrick WilliamsAlignTrailingComments:
1143c83c56SPatrick Williams  Kind: Always
1243c83c56SPatrick Williams  OverEmptyLines: 1
139ce5a9a0SVernon MaueryAllowAllParametersOfDeclarationOnNextLine: true
1443c83c56SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
159ce5a9a0SVernon MaueryAllowShortCaseLabelsOnASingleLine: false
1643c83c56SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17*be4d9e70SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*be4d9e70SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19a1c50751SHaiyue WangAllowShortLoopsOnASingleLine: false
209ce5a9a0SVernon MaueryAlwaysBreakAfterReturnType: None
219ce5a9a0SVernon MaueryAlwaysBreakBeforeMultilineStrings: false
224f5ba642SWilliam A. Kennington IIIAlwaysBreakTemplateDeclarations: Yes
239ce5a9a0SVernon MaueryBinPackArguments: true
249ce5a9a0SVernon MaueryBinPackParameters: true
25*be4d9e70SPatrick WilliamsBitFieldColonSpacing: None
269ce5a9a0SVernon MaueryBraceWrapping:
274f5ba642SWilliam A. Kennington III  AfterCaseLabel:  true
289ce5a9a0SVernon Mauery  AfterClass:      true
299ce5a9a0SVernon Mauery  AfterControlStatement: true
309ce5a9a0SVernon Mauery  AfterEnum:       true
31*be4d9e70SPatrick Williams  AfterExternBlock: true
329ce5a9a0SVernon Mauery  AfterFunction:   true
339ce5a9a0SVernon Mauery  AfterNamespace:  true
349ce5a9a0SVernon Mauery  AfterObjCDeclaration: true
359ce5a9a0SVernon Mauery  AfterStruct:     true
369ce5a9a0SVernon Mauery  AfterUnion:      true
379ce5a9a0SVernon Mauery  BeforeCatch:     true
389ce5a9a0SVernon Mauery  BeforeElse:      true
39*be4d9e70SPatrick Williams  BeforeLambdaBody: false
40*be4d9e70SPatrick Williams  BeforeWhile:     false
419ce5a9a0SVernon Mauery  IndentBraces:    false
424f5ba642SWilliam A. Kennington III  SplitEmptyFunction:   false
434f5ba642SWilliam A. Kennington III  SplitEmptyRecord:     false
444f5ba642SWilliam A. Kennington III  SplitEmptyNamespace:  false
4543c83c56SPatrick WilliamsBreakAfterAttributes: Never
469ce5a9a0SVernon MaueryBreakBeforeBinaryOperators: None
479ce5a9a0SVernon MaueryBreakBeforeBraces: Custom
489ce5a9a0SVernon MaueryBreakBeforeTernaryOperators: true
499ce5a9a0SVernon MaueryBreakConstructorInitializers: AfterColon
504f5ba642SWilliam A. Kennington IIIBreakInheritanceList: AfterColon
5143c83c56SPatrick WilliamsBreakStringLiterals: false
529ce5a9a0SVernon MaueryColumnLimit:     80
539ce5a9a0SVernon MaueryCommentPragmas:  '^ IWYU pragma:'
544f5ba642SWilliam A. Kennington IIICompactNamespaces: false
559ce5a9a0SVernon MaueryConstructorInitializerIndentWidth: 4
569ce5a9a0SVernon MaueryContinuationIndentWidth: 4
579ce5a9a0SVernon MaueryCpp11BracedListStyle: true
589ce5a9a0SVernon MaueryDerivePointerAlignment: false
599ce5a9a0SVernon MaueryDisableFormat:   false
609ce5a9a0SVernon MaueryFixNamespaceComments: true
61*be4d9e70SPatrick WilliamsForEachMacros:
62*be4d9e70SPatrick Williams  - foreach
63*be4d9e70SPatrick Williams  - Q_FOREACH
64*be4d9e70SPatrick Williams  - BOOST_FOREACH
659ce5a9a0SVernon MaueryIncludeBlocks: Regroup
669ce5a9a0SVernon MaueryIncludeCategories:
679ce5a9a0SVernon Mauery  - Regex:           '^[<"](gtest|gmock)'
684f5ba642SWilliam A. Kennington III    Priority:        7
699ce5a9a0SVernon Mauery  - Regex:           '^"config.h"'
709ce5a9a0SVernon Mauery    Priority:        -1
714f5ba642SWilliam A. Kennington III  - Regex:           '^".*\.h"'
729ce5a9a0SVernon Mauery    Priority:        1
734f5ba642SWilliam A. Kennington III  - Regex:           '^".*\.hpp"'
749ce5a9a0SVernon Mauery    Priority:        2
754f5ba642SWilliam A. Kennington III  - Regex:           '^<.*\.h>'
769ce5a9a0SVernon Mauery    Priority:        3
774f5ba642SWilliam A. Kennington III  - Regex:           '^<.*\.hpp>'
789ce5a9a0SVernon Mauery    Priority:        4
794f5ba642SWilliam A. Kennington III  - Regex:           '^<.*'
804f5ba642SWilliam A. Kennington III    Priority:        5
814f5ba642SWilliam A. Kennington III  - Regex:           '.*'
824f5ba642SWilliam A. Kennington III    Priority:        6
839ce5a9a0SVernon MaueryIndentCaseLabels: true
84*be4d9e70SPatrick WilliamsIndentExternBlock: NoIndent
8543c83c56SPatrick WilliamsIndentRequiresClause: true
869ce5a9a0SVernon MaueryIndentWidth:     4
879ce5a9a0SVernon MaueryIndentWrappedFunctionNames: true
8843c83c56SPatrick WilliamsInsertNewlineAtEOF: true
8943c83c56SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
9043c83c56SPatrick WilliamsLambdaBodyIndentation: OuterScope
9143c83c56SPatrick WilliamsLineEnding: LF
929ce5a9a0SVernon MaueryMacroBlockBegin: ''
939ce5a9a0SVernon MaueryMacroBlockEnd:   ''
949ce5a9a0SVernon MaueryMaxEmptyLinesToKeep: 1
959ce5a9a0SVernon MaueryNamespaceIndentation: None
969ce5a9a0SVernon MaueryObjCBlockIndentWidth: 2
979ce5a9a0SVernon MaueryObjCSpaceAfterProperty: false
989ce5a9a0SVernon MaueryObjCSpaceBeforeProtocolList: true
99*be4d9e70SPatrick WilliamsPackConstructorInitializers: BinPack
10043c83c56SPatrick WilliamsPenaltyBreakAssignment: 25
1019ce5a9a0SVernon MaueryPenaltyBreakBeforeFirstCallParameter: 19
1029ce5a9a0SVernon MaueryPenaltyBreakComment: 300
1039ce5a9a0SVernon MaueryPenaltyBreakFirstLessLess: 120
1049ce5a9a0SVernon MaueryPenaltyBreakString: 1000
1059ce5a9a0SVernon MaueryPenaltyExcessCharacter: 1000000
1069ce5a9a0SVernon MaueryPenaltyReturnTypeOnItsOwnLine: 60
10743c83c56SPatrick WilliamsPenaltyIndentedWhitespace: 0
108*be4d9e70SPatrick WilliamsPointerAlignment: Left
10943c83c56SPatrick WilliamsQualifierAlignment: Left
11043c83c56SPatrick WilliamsReferenceAlignment: Left
1119ce5a9a0SVernon MaueryReflowComments:  true
11243c83c56SPatrick WilliamsRequiresClausePosition: OwnLine
11343c83c56SPatrick WilliamsRequiresExpressionIndentation: Keyword
114*be4d9e70SPatrick WilliamsSortIncludes: CaseSensitive
1159ce5a9a0SVernon MauerySortUsingDeclarations: true
116a1c50751SHaiyue WangSpaceAfterCStyleCast: false
1174f5ba642SWilliam A. Kennington IIISpaceAfterTemplateKeyword: true
1189ce5a9a0SVernon MauerySpaceBeforeAssignmentOperators: true
1194f5ba642SWilliam A. Kennington IIISpaceBeforeCpp11BracedList: false
1204f5ba642SWilliam A. Kennington IIISpaceBeforeCtorInitializerColon: true
1214f5ba642SWilliam A. Kennington IIISpaceBeforeInheritanceColon: true
1229ce5a9a0SVernon MauerySpaceBeforeParens: ControlStatements
1234f5ba642SWilliam A. Kennington IIISpaceBeforeRangeBasedForLoopColon: true
1249ce5a9a0SVernon MauerySpaceInEmptyParentheses: false
1259ce5a9a0SVernon MauerySpacesBeforeTrailingComments: 1
126*be4d9e70SPatrick WilliamsSpacesInAngles: Never
1279ce5a9a0SVernon MauerySpacesInContainerLiterals: true
1289ce5a9a0SVernon MauerySpacesInCStyleCastParentheses: false
1299ce5a9a0SVernon MauerySpacesInParentheses: false
1309ce5a9a0SVernon MauerySpacesInSquareBrackets: false
1314f5ba642SWilliam A. Kennington IIIStandard:        Latest
1329ce5a9a0SVernon MaueryTabWidth:        4
1339ce5a9a0SVernon MaueryUseTab:          Never
1349ce5a9a0SVernon Mauery...
135a1c50751SHaiyue Wang
136