xref: /openbmc/kcsbridge/.clang-format (revision 4bf990ac)
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
17be4d9e70SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18be4d9e70SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19a1c50751SHaiyue WangAllowShortLoopsOnASingleLine: false
209ce5a9a0SVernon MaueryAlwaysBreakAfterReturnType: None
219ce5a9a0SVernon MaueryAlwaysBreakBeforeMultilineStrings: false
224f5ba642SWilliam A. Kennington IIIAlwaysBreakTemplateDeclarations: Yes
239ce5a9a0SVernon MaueryBinPackArguments: true
249ce5a9a0SVernon MaueryBinPackParameters: true
25be4d9e70SPatrick WilliamsBitFieldColonSpacing: None
269ce5a9a0SVernon MaueryBraceWrapping:
274f5ba642SWilliam A. Kennington III  AfterCaseLabel:  true
289ce5a9a0SVernon Mauery  AfterClass:      true
299ce5a9a0SVernon Mauery  AfterControlStatement: true
309ce5a9a0SVernon Mauery  AfterEnum:       true
31be4d9e70SPatrick 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
39be4d9e70SPatrick Williams  BeforeLambdaBody: false
40be4d9e70SPatrick 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
61be4d9e70SPatrick WilliamsForEachMacros:
62be4d9e70SPatrick Williams  - foreach
63be4d9e70SPatrick Williams  - Q_FOREACH
64be4d9e70SPatrick 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
84be4d9e70SPatrick WilliamsIndentExternBlock: NoIndent
8543c83c56SPatrick WilliamsIndentRequiresClause: true
869ce5a9a0SVernon MaueryIndentWidth:     4
879ce5a9a0SVernon MaueryIndentWrappedFunctionNames: true
8843c83c56SPatrick WilliamsInsertNewlineAtEOF: true
8943c83c56SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*4bf990acSPatrick WilliamsLambdaBodyIndentation: Signature
9143c83c56SPatrick WilliamsLineEnding: LF
929ce5a9a0SVernon MaueryMacroBlockBegin: ''
939ce5a9a0SVernon MaueryMacroBlockEnd:   ''
949ce5a9a0SVernon MaueryMaxEmptyLinesToKeep: 1
959ce5a9a0SVernon MaueryNamespaceIndentation: None
969ce5a9a0SVernon MaueryObjCBlockIndentWidth: 2
979ce5a9a0SVernon MaueryObjCSpaceAfterProperty: false
989ce5a9a0SVernon MaueryObjCSpaceBeforeProtocolList: true
99be4d9e70SPatrick WilliamsPackConstructorInitializers: BinPack
10043c83c56SPatrick WilliamsPenaltyBreakAssignment: 25
101*4bf990acSPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
1029ce5a9a0SVernon MaueryPenaltyBreakComment: 300
1039ce5a9a0SVernon MaueryPenaltyBreakFirstLessLess: 120
1049ce5a9a0SVernon MaueryPenaltyBreakString: 1000
105*4bf990acSPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
1069ce5a9a0SVernon MaueryPenaltyExcessCharacter: 1000000
1079ce5a9a0SVernon MaueryPenaltyReturnTypeOnItsOwnLine: 60
108*4bf990acSPatrick WilliamsPenaltyIndentedWhitespace: 1
109be4d9e70SPatrick WilliamsPointerAlignment: Left
11043c83c56SPatrick WilliamsQualifierAlignment: Left
11143c83c56SPatrick WilliamsReferenceAlignment: Left
1129ce5a9a0SVernon MaueryReflowComments:  true
11343c83c56SPatrick WilliamsRequiresClausePosition: OwnLine
11443c83c56SPatrick WilliamsRequiresExpressionIndentation: Keyword
115be4d9e70SPatrick WilliamsSortIncludes: CaseSensitive
1169ce5a9a0SVernon MauerySortUsingDeclarations: true
117a1c50751SHaiyue WangSpaceAfterCStyleCast: false
1184f5ba642SWilliam A. Kennington IIISpaceAfterTemplateKeyword: true
1199ce5a9a0SVernon MauerySpaceBeforeAssignmentOperators: true
1204f5ba642SWilliam A. Kennington IIISpaceBeforeCpp11BracedList: false
1214f5ba642SWilliam A. Kennington IIISpaceBeforeCtorInitializerColon: true
1224f5ba642SWilliam A. Kennington IIISpaceBeforeInheritanceColon: true
1239ce5a9a0SVernon MauerySpaceBeforeParens: ControlStatements
1244f5ba642SWilliam A. Kennington IIISpaceBeforeRangeBasedForLoopColon: true
1259ce5a9a0SVernon MauerySpaceInEmptyParentheses: false
1269ce5a9a0SVernon MauerySpacesBeforeTrailingComments: 1
127be4d9e70SPatrick WilliamsSpacesInAngles: Never
1289ce5a9a0SVernon MauerySpacesInContainerLiterals: true
1299ce5a9a0SVernon MauerySpacesInCStyleCastParentheses: false
1309ce5a9a0SVernon MauerySpacesInParentheses: false
1319ce5a9a0SVernon MauerySpacesInSquareBrackets: false
1324f5ba642SWilliam A. Kennington IIIStandard:        Latest
1339ce5a9a0SVernon MaueryTabWidth:        4
1349ce5a9a0SVernon MaueryUseTab:          Never
1359ce5a9a0SVernon Mauery...
136a1c50751SHaiyue Wang
137