--- Language: Cpp BasedOnStyle: Google # Indentation IndentWidth: 4 TabWidth: 4 UseTab: Never AccessModifierOffset: -4 IndentCaseLabels: true IndentPPDirectives: BeforeHash NamespaceIndentation: None # Line length ColumnLimit: 120 # Braces BreakBeforeBraces: Attach BraceWrapping: AfterCaseLabel: false AfterClass: false AfterControlStatement: Never AfterEnum: false AfterFunction: false AfterNamespace: false AfterStruct: false AfterUnion: false BeforeCatch: false BeforeElse: false BeforeLambdaBody: false IndentBraces: false SplitEmptyFunction: false SplitEmptyRecord: false SplitEmptyNamespace: false # Alignment AlignAfterOpenBracket: Align AlignConsecutiveAssignments: None AlignConsecutiveBitFields: None AlignConsecutiveDeclarations: None AlignConsecutiveMacros: None AlignEscapedNewlines: Left AlignOperands: Align AlignTrailingComments: true # Arguments and parameters AllowAllArgumentsOnNextLine: true AllowAllParametersOfDeclarationOnNextLine: true BinPackArguments: true BinPackParameters: true # Short forms AllowShortBlocksOnASingleLine: Empty AllowShortCaseLabelsOnASingleLine: false AllowShortEnumsOnASingleLine: false AllowShortFunctionsOnASingleLine: Inline AllowShortIfStatementsOnASingleLine: Never AllowShortLambdasOnASingleLine: All AllowShortLoopsOnASingleLine: false # Breaks AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: Yes BreakBeforeBinaryOperators: None BreakBeforeConceptDeclarations: true BreakBeforeTernaryOperators: true BreakConstructorInitializers: BeforeColon BreakInheritanceList: BeforeColon BreakStringLiterals: true # Constructors and initializers ConstructorInitializerIndentWidth: 4 PackConstructorInitializers: NextLine # Includes IncludeBlocks: Regroup IncludeCategories: - Regex: '^<.*\.h>' Priority: 1 - Regex: '^<.*>' Priority: 2 - Regex: '^".*"' Priority: 3 SortIncludes: CaseSensitive # Pointers and references DerivePointerAlignment: false PointerAlignment: Left ReferenceAlignment: Left # Spaces SpaceAfterCStyleCast: false SpaceAfterLogicalNot: false SpaceAfterTemplateKeyword: true SpaceAroundPointerQualifiers: Default SpaceBeforeAssignmentOperators: true SpaceBeforeCaseColon: false SpaceBeforeCpp11BracedList: false SpaceBeforeCtorInitializerColon: true SpaceBeforeInheritanceColon: true SpaceBeforeParens: ControlStatements SpaceBeforeRangeBasedForLoopColon: true SpaceBeforeSquareBrackets: false SpaceInEmptyBlock: false SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: 2 SpacesInAngles: Never SpacesInCStyleCastParentheses: false SpacesInConditionalStatement: false SpacesInContainerLiterals: false SpacesInParentheses: false SpacesInSquareBrackets: false # Miscellaneous Cpp11BracedListStyle: true EmptyLineAfterAccessModifier: Never EmptyLineBeforeAccessModifier: LogicalBlock FixNamespaceComments: true InsertBraces: false InsertTrailingCommas: None MaxEmptyLinesToKeep: 1 QualifierAlignment: Leave ReflowComments: true SeparateDefinitionBlocks: Leave SortUsingDeclarations: true Standard: c++20 ...