xref: /openbmc/phosphor-watchdog/.clang-format (revision 6ac6a347132c431b4ab05ffee0d1bd15a532fba9)
18f6c5156SPatrick Venture---
28f6c5156SPatrick VentureLanguage:        Cpp
38f6c5156SPatrick Venture# BasedOnStyle:  LLVM
48f6c5156SPatrick VentureAccessModifierOffset: -2
58f6c5156SPatrick VentureAlignAfterOpenBracket: Align
68f6c5156SPatrick VentureAlignConsecutiveAssignments: false
78f6c5156SPatrick VentureAlignConsecutiveDeclarations: false
8*6ac6a347SPatrick WilliamsAlignEscapedNewlines: Right
9*6ac6a347SPatrick WilliamsAlignOperands:  Align
10*6ac6a347SPatrick WilliamsAlignTrailingComments:
11*6ac6a347SPatrick Williams  Kind: Always
12*6ac6a347SPatrick Williams  OverEmptyLines: 1
138f6c5156SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
14*6ac6a347SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
158f6c5156SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
16*6ac6a347SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
178f6c5156SPatrick VentureAllowShortIfStatementsOnASingleLine: false
188f6c5156SPatrick VentureAllowShortLoopsOnASingleLine: false
198f6c5156SPatrick VentureAlwaysBreakAfterReturnType: None
208f6c5156SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
21*6ac6a347SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
228f6c5156SPatrick VentureBinPackArguments: true
238f6c5156SPatrick VentureBinPackParameters: true
248f6c5156SPatrick VentureBraceWrapping:
25*6ac6a347SPatrick Williams  AfterCaseLabel:  true
268f6c5156SPatrick Venture  AfterClass:      true
278f6c5156SPatrick Venture  AfterControlStatement: true
288f6c5156SPatrick Venture  AfterEnum:       true
298f6c5156SPatrick Venture  AfterFunction:   true
308f6c5156SPatrick Venture  AfterNamespace:  true
318f6c5156SPatrick Venture  AfterObjCDeclaration: true
328f6c5156SPatrick Venture  AfterStruct:     true
338f6c5156SPatrick Venture  AfterUnion:      true
34*6ac6a347SPatrick Williams  AfterExternBlock: true
358f6c5156SPatrick Venture  BeforeCatch:     true
368f6c5156SPatrick Venture  BeforeElse:      true
378f6c5156SPatrick Venture  IndentBraces:    false
38*6ac6a347SPatrick Williams  SplitEmptyFunction:   false
39*6ac6a347SPatrick Williams  SplitEmptyRecord:     false
40*6ac6a347SPatrick Williams  SplitEmptyNamespace:  false
41*6ac6a347SPatrick WilliamsBreakAfterAttributes: Never
428f6c5156SPatrick VentureBreakBeforeBinaryOperators: None
438f6c5156SPatrick VentureBreakBeforeBraces: Custom
448f6c5156SPatrick VentureBreakBeforeTernaryOperators: true
458f6c5156SPatrick VentureBreakConstructorInitializers: AfterColon
46*6ac6a347SPatrick WilliamsBreakInheritanceList: AfterColon
47*6ac6a347SPatrick WilliamsBreakStringLiterals: false
488f6c5156SPatrick VentureColumnLimit:     80
498f6c5156SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
50*6ac6a347SPatrick WilliamsCompactNamespaces: false
518f6c5156SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
528f6c5156SPatrick VentureConstructorInitializerIndentWidth: 4
538f6c5156SPatrick VentureContinuationIndentWidth: 4
548f6c5156SPatrick VentureCpp11BracedListStyle: true
55*6ac6a347SPatrick WilliamsDeriveLineEnding: false
568f6c5156SPatrick VentureDerivePointerAlignment: false
578f6c5156SPatrick VenturePointerAlignment: Left
588f6c5156SPatrick VentureDisableFormat:   false
598f6c5156SPatrick VentureExperimentalAutoDetectBinPacking: false
608f6c5156SPatrick VentureFixNamespaceComments: true
618f6c5156SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
628f6c5156SPatrick VentureIncludeBlocks: Regroup
638f6c5156SPatrick VentureIncludeCategories:
648f6c5156SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
65*6ac6a347SPatrick Williams    Priority:        7
668f6c5156SPatrick Venture  - Regex:           '^"config.h"'
678f6c5156SPatrick Venture    Priority:        -1
68*6ac6a347SPatrick Williams  - Regex:           '^".*\.h"'
698f6c5156SPatrick Venture    Priority:        1
70*6ac6a347SPatrick Williams  - Regex:           '^".*\.hpp"'
718f6c5156SPatrick Venture    Priority:        2
72*6ac6a347SPatrick Williams  - Regex:           '^<.*\.h>'
738f6c5156SPatrick Venture    Priority:        3
74*6ac6a347SPatrick Williams  - Regex:           '^<.*\.hpp>'
758f6c5156SPatrick Venture    Priority:        4
76*6ac6a347SPatrick Williams  - Regex:           '^<.*'
77*6ac6a347SPatrick Williams    Priority:        5
78*6ac6a347SPatrick Williams  - Regex:           '.*'
79*6ac6a347SPatrick Williams    Priority:        6
808f6c5156SPatrick VentureIndentCaseLabels: true
81*6ac6a347SPatrick WilliamsIndentRequiresClause: true
828f6c5156SPatrick VentureIndentWidth:     4
838f6c5156SPatrick VentureIndentWrappedFunctionNames: true
84*6ac6a347SPatrick WilliamsInsertNewlineAtEOF: true
85*6ac6a347SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
86*6ac6a347SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*6ac6a347SPatrick WilliamsLineEnding: LF
888f6c5156SPatrick VentureMacroBlockBegin: ''
898f6c5156SPatrick VentureMacroBlockEnd:   ''
908f6c5156SPatrick VentureMaxEmptyLinesToKeep: 1
918f6c5156SPatrick VentureNamespaceIndentation: None
928f6c5156SPatrick VentureObjCBlockIndentWidth: 2
938f6c5156SPatrick VentureObjCSpaceAfterProperty: false
948f6c5156SPatrick VentureObjCSpaceBeforeProtocolList: true
95*6ac6a347SPatrick WilliamsPenaltyBreakAssignment: 25
968f6c5156SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
978f6c5156SPatrick VenturePenaltyBreakComment: 300
988f6c5156SPatrick VenturePenaltyBreakFirstLessLess: 120
998f6c5156SPatrick VenturePenaltyBreakString: 1000
1008f6c5156SPatrick VenturePenaltyExcessCharacter: 1000000
1018f6c5156SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
102*6ac6a347SPatrick WilliamsPenaltyIndentedWhitespace: 0
103*6ac6a347SPatrick WilliamsQualifierAlignment: Left
104*6ac6a347SPatrick WilliamsReferenceAlignment: Left
1058f6c5156SPatrick VentureReflowComments:  true
106*6ac6a347SPatrick WilliamsRequiresClausePosition: OwnLine
107*6ac6a347SPatrick WilliamsRequiresExpressionIndentation: Keyword
1088f6c5156SPatrick VentureSortIncludes:    true
1098f6c5156SPatrick VentureSortUsingDeclarations: true
1108f6c5156SPatrick VentureSpaceAfterCStyleCast: false
111*6ac6a347SPatrick WilliamsSpaceAfterTemplateKeyword: true
1128f6c5156SPatrick VentureSpaceBeforeAssignmentOperators: true
113*6ac6a347SPatrick WilliamsSpaceBeforeCpp11BracedList: false
114*6ac6a347SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
115*6ac6a347SPatrick WilliamsSpaceBeforeInheritanceColon: true
1168f6c5156SPatrick VentureSpaceBeforeParens: ControlStatements
117*6ac6a347SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
1188f6c5156SPatrick VentureSpaceInEmptyParentheses: false
1198f6c5156SPatrick VentureSpacesBeforeTrailingComments: 1
1208f6c5156SPatrick VentureSpacesInAngles:  false
1218f6c5156SPatrick VentureSpacesInContainerLiterals: true
1228f6c5156SPatrick VentureSpacesInCStyleCastParentheses: false
1238f6c5156SPatrick VentureSpacesInParentheses: false
1248f6c5156SPatrick VentureSpacesInSquareBrackets: false
125*6ac6a347SPatrick WilliamsStandard:        Latest
1268f6c5156SPatrick VentureTabWidth:        4
1278f6c5156SPatrick VentureUseTab:          Never
1288f6c5156SPatrick Venture...
1298f6c5156SPatrick Venture
130