# From https://github.com/man-group/sparrow with sparrow-specific regexes removed. BasedOnStyle: Mozilla AccessModifierOffset: '-4' AlignAfterOpenBracket: BlockIndent AlignEscapedNewlines: Left AllowAllArgumentsOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false AllowShortBlocksOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false AllowShortFunctionsOnASingleLine: false AllowShortIfStatementsOnASingleLine: false # Forbid one line lambdas because clang-format makes a weird split when # single instructions lambdas are too long. AllowShortLambdasOnASingleLine: Empty AllowShortLoopsOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None AlwaysBreakTemplateDeclarations: Yes BinPackArguments: false BinPackParameters: false BreakBeforeBinaryOperators: NonAssignment BreakBeforeBraces: Allman BreakBeforeTernaryOperators: true BreakConstructorInitializers: BeforeComma BreakInheritanceList: AfterComma BreakStringLiterals: false ColumnLimit: '110' ConstructorInitializerIndentWidth: '4' ContinuationIndentWidth: '4' Cpp11BracedListStyle: true DerivePointerAlignment: false DisableFormat: false EmptyLineAfterAccessModifier: Always EmptyLineBeforeAccessModifier: Always ExperimentalAutoDetectBinPacking: true IncludeBlocks: Regroup IncludeCategories: - Regex: <[^.]+> Priority: 1 - Regex: <.+> Priority: 2 - Regex: '".+"' Priority: 5 IndentCaseLabels: true IndentPPDirectives: AfterHash IndentWidth: '4' IndentWrappedFunctionNames: false InsertBraces: true InsertTrailingCommas: Wrapped KeepEmptyLinesAtTheStartOfBlocks: false LambdaBodyIndentation: Signature Language: Cpp MaxEmptyLinesToKeep: '2' NamespaceIndentation: All ObjCBlockIndentWidth: '4' ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: false PackConstructorInitializers: Never PenaltyBreakAssignment: 100000 PenaltyBreakBeforeFirstCallParameter: 0 PenaltyBreakComment: 10 PenaltyBreakOpenParenthesis: 0 PenaltyBreakTemplateDeclaration: 0 PenaltyExcessCharacter: 10 PenaltyIndentedWhitespace: 0 PenaltyReturnTypeOnItsOwnLine: 10 PointerAlignment: Left QualifierAlignment: Custom # Experimental QualifierOrder: [inline, static, constexpr, const, volatile, type] ReflowComments: true SeparateDefinitionBlocks: Always SortIncludes: CaseInsensitive SortUsingDeclarations: true SpaceAfterCStyleCast: true SpaceAfterTemplateKeyword: true SpaceBeforeAssignmentOperators: true SpaceBeforeParens: ControlStatements SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: '2' SpacesInAngles: false SpacesInCStyleCastParentheses: false SpacesInContainerLiterals: false SpacesInParentheses: false SpacesInSquareBrackets: false Standard: c++20 TabWidth: '4' UseTab: Never