xref: /openbmc/phosphor-watchdog/.clang-format (revision 094ac2f742c578489cc6400cc5e10abb8e2953df)
18f6c5156SPatrick Venture---
28f6c5156SPatrick VentureLanguage:        Cpp
38f6c5156SPatrick Venture# BasedOnStyle:  LLVM
48f6c5156SPatrick VentureAccessModifierOffset: -2
58f6c5156SPatrick VentureAlignAfterOpenBracket: Align
68f6c5156SPatrick VentureAlignConsecutiveAssignments: false
78f6c5156SPatrick VentureAlignConsecutiveDeclarations: false
86ac6a347SPatrick WilliamsAlignEscapedNewlines: Right
96ac6a347SPatrick WilliamsAlignOperands:  Align
106ac6a347SPatrick WilliamsAlignTrailingComments:
116ac6a347SPatrick Williams  Kind: Always
126ac6a347SPatrick Williams  OverEmptyLines: 1
138f6c5156SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
146ac6a347SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
158f6c5156SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
166ac6a347SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
175c423703SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
185c423703SPatrick WilliamsAllowShortLambdasOnASingleLine: true
198f6c5156SPatrick VentureAllowShortLoopsOnASingleLine: false
208f6c5156SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
218f6c5156SPatrick VentureBinPackArguments: true
228f6c5156SPatrick VentureBinPackParameters: true
235c423703SPatrick WilliamsBitFieldColonSpacing: None
248f6c5156SPatrick VentureBraceWrapping:
256ac6a347SPatrick Williams  AfterCaseLabel:  true
268f6c5156SPatrick Venture  AfterClass:      true
278f6c5156SPatrick Venture  AfterControlStatement: true
288f6c5156SPatrick Venture  AfterEnum:       true
295c423703SPatrick Williams  AfterExternBlock: true
308f6c5156SPatrick Venture  AfterFunction:   true
318f6c5156SPatrick Venture  AfterNamespace:  true
328f6c5156SPatrick Venture  AfterObjCDeclaration: true
338f6c5156SPatrick Venture  AfterStruct:     true
348f6c5156SPatrick Venture  AfterUnion:      true
358f6c5156SPatrick Venture  BeforeCatch:     true
368f6c5156SPatrick Venture  BeforeElse:      true
375c423703SPatrick Williams  BeforeLambdaBody: false
385c423703SPatrick Williams  BeforeWhile:     false
398f6c5156SPatrick Venture  IndentBraces:    false
406ac6a347SPatrick Williams  SplitEmptyFunction:   false
416ac6a347SPatrick Williams  SplitEmptyRecord:     false
426ac6a347SPatrick Williams  SplitEmptyNamespace:  false
436ac6a347SPatrick WilliamsBreakAfterAttributes: Never
44*094ac2f7SPatrick WilliamsBreakAfterReturnType: Automatic
458f6c5156SPatrick VentureBreakBeforeBinaryOperators: None
468f6c5156SPatrick VentureBreakBeforeBraces: Custom
478f6c5156SPatrick VentureBreakBeforeTernaryOperators: true
488f6c5156SPatrick VentureBreakConstructorInitializers: AfterColon
496ac6a347SPatrick WilliamsBreakInheritanceList: AfterColon
506ac6a347SPatrick WilliamsBreakStringLiterals: false
51*094ac2f7SPatrick WilliamsBreakTemplateDeclarations: Yes
528f6c5156SPatrick VentureColumnLimit:     80
538f6c5156SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
546ac6a347SPatrick WilliamsCompactNamespaces: false
558f6c5156SPatrick VentureConstructorInitializerIndentWidth: 4
568f6c5156SPatrick VentureContinuationIndentWidth: 4
578f6c5156SPatrick VentureCpp11BracedListStyle: true
588f6c5156SPatrick VentureDerivePointerAlignment: false
598f6c5156SPatrick VentureDisableFormat:   false
608f6c5156SPatrick VentureFixNamespaceComments: true
615c423703SPatrick WilliamsForEachMacros:
625c423703SPatrick Williams  - foreach
635c423703SPatrick Williams  - Q_FOREACH
645c423703SPatrick Williams  - BOOST_FOREACH
658f6c5156SPatrick VentureIncludeBlocks: Regroup
668f6c5156SPatrick VentureIncludeCategories:
678f6c5156SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
686ac6a347SPatrick Williams    Priority:        7
698f6c5156SPatrick Venture  - Regex:           '^"config.h"'
708f6c5156SPatrick Venture    Priority:        -1
716ac6a347SPatrick Williams  - Regex:           '^".*\.h"'
728f6c5156SPatrick Venture    Priority:        1
736ac6a347SPatrick Williams  - Regex:           '^".*\.hpp"'
748f6c5156SPatrick Venture    Priority:        2
756ac6a347SPatrick Williams  - Regex:           '^<.*\.h>'
768f6c5156SPatrick Venture    Priority:        3
776ac6a347SPatrick Williams  - Regex:           '^<.*\.hpp>'
788f6c5156SPatrick Venture    Priority:        4
796ac6a347SPatrick Williams  - Regex:           '^<.*'
806ac6a347SPatrick Williams    Priority:        5
816ac6a347SPatrick Williams  - Regex:           '.*'
826ac6a347SPatrick Williams    Priority:        6
838f6c5156SPatrick VentureIndentCaseLabels: true
845c423703SPatrick WilliamsIndentExternBlock: NoIndent
856ac6a347SPatrick WilliamsIndentRequiresClause: true
868f6c5156SPatrick VentureIndentWidth:     4
878f6c5156SPatrick VentureIndentWrappedFunctionNames: true
886ac6a347SPatrick WilliamsInsertNewlineAtEOF: true
896ac6a347SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90923a9080SPatrick WilliamsLambdaBodyIndentation: Signature
916ac6a347SPatrick WilliamsLineEnding: LF
928f6c5156SPatrick VentureMacroBlockBegin: ''
938f6c5156SPatrick VentureMacroBlockEnd:   ''
948f6c5156SPatrick VentureMaxEmptyLinesToKeep: 1
958f6c5156SPatrick VentureNamespaceIndentation: None
968f6c5156SPatrick VentureObjCBlockIndentWidth: 2
978f6c5156SPatrick VentureObjCSpaceAfterProperty: false
988f6c5156SPatrick VentureObjCSpaceBeforeProtocolList: true
995c423703SPatrick WilliamsPackConstructorInitializers: BinPack
1006ac6a347SPatrick WilliamsPenaltyBreakAssignment: 25
101923a9080SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
1028f6c5156SPatrick VenturePenaltyBreakComment: 300
1038f6c5156SPatrick VenturePenaltyBreakFirstLessLess: 120
1048f6c5156SPatrick VenturePenaltyBreakString: 1000
105923a9080SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
1068f6c5156SPatrick VenturePenaltyExcessCharacter: 1000000
1078f6c5156SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
108923a9080SPatrick WilliamsPenaltyIndentedWhitespace: 1
1095c423703SPatrick WilliamsPointerAlignment: Left
1106ac6a347SPatrick WilliamsQualifierAlignment: Left
1116ac6a347SPatrick WilliamsReferenceAlignment: Left
1128f6c5156SPatrick VentureReflowComments:  true
1136ac6a347SPatrick WilliamsRequiresClausePosition: OwnLine
1146ac6a347SPatrick WilliamsRequiresExpressionIndentation: Keyword
1155c423703SPatrick WilliamsSortIncludes: CaseSensitive
1168f6c5156SPatrick VentureSortUsingDeclarations: true
1178f6c5156SPatrick VentureSpaceAfterCStyleCast: false
1186ac6a347SPatrick WilliamsSpaceAfterTemplateKeyword: true
1198f6c5156SPatrick VentureSpaceBeforeAssignmentOperators: true
1206ac6a347SPatrick WilliamsSpaceBeforeCpp11BracedList: false
1216ac6a347SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
1226ac6a347SPatrick WilliamsSpaceBeforeInheritanceColon: true
1238f6c5156SPatrick VentureSpaceBeforeParens: ControlStatements
1246ac6a347SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
1258f6c5156SPatrick VentureSpaceInEmptyParentheses: false
1268f6c5156SPatrick VentureSpacesBeforeTrailingComments: 1
1275c423703SPatrick WilliamsSpacesInAngles: Never
1288f6c5156SPatrick VentureSpacesInContainerLiterals: true
1298f6c5156SPatrick VentureSpacesInCStyleCastParentheses: false
1308f6c5156SPatrick VentureSpacesInParentheses: false
1318f6c5156SPatrick VentureSpacesInSquareBrackets: false
1326ac6a347SPatrick WilliamsStandard:        Latest
1338f6c5156SPatrick VentureTabWidth:        4
1348f6c5156SPatrick VentureUseTab:          Never
1358f6c5156SPatrick Venture...
1368f6c5156SPatrick Venture
137