|
| 1 | +# Project |
| 2 | +Language: Cpp |
| 3 | +Standard: c++20 |
| 4 | + |
| 5 | +ColumnLimit: 120 |
| 6 | + |
| 7 | +# Indentation |
| 8 | +AccessModifierOffset: -2 |
| 9 | +BitFieldColonSpacing: Both |
| 10 | +ContinuationIndentWidth: 2 |
| 11 | +IndentCaseLabels: true |
| 12 | +IndentCaseBlocks: false |
| 13 | +IndentExternBlock: Indent |
| 14 | +IndentPPDirectives: BeforeHash |
| 15 | +IndentRequires: true |
| 16 | +IndentWidth: 2 |
| 17 | +IndentWrappedFunctionNames: true |
| 18 | +TabWidth: 2 |
| 19 | +UseTab: Never |
| 20 | +# Alignment |
| 21 | + |
| 22 | +AlignAfterOpenBracket: Align |
| 23 | +AlignConsecutiveAssignments: Consecutive |
| 24 | +AlignConsecutiveBitFields: Consecutive |
| 25 | +AlignConsecutiveDeclarations: Consecutive |
| 26 | +AlignConsecutiveMacros: Consecutive |
| 27 | +AlignEscapedNewlines: Left |
| 28 | +AlignOperands: DontAlign |
| 29 | +AlignTrailingComments: true |
| 30 | + |
| 31 | +# Allow |
| 32 | +AllowAllArgumentsOnNextLine: false |
| 33 | +AllowAllConstructorInitializersOnNextLine: true |
| 34 | +AllowAllParametersOfDeclarationOnNextLine: false |
| 35 | +AllowShortBlocksOnASingleLine: Never |
| 36 | +AllowShortCaseLabelsOnASingleLine: false |
| 37 | +AllowShortEnumsOnASingleLine: false |
| 38 | +AllowShortFunctionsOnASingleLine: true |
| 39 | +AllowShortIfStatementsOnASingleLine: Never |
| 40 | +AllowShortLoopsOnASingleLine: false |
| 41 | +AllowShortLambdasOnASingleLine: All |
| 42 | + |
| 43 | +# Break |
| 44 | +AlwaysBreakAfterReturnType: None |
| 45 | +AlwaysBreakBeforeMultilineStrings: true |
| 46 | +AlwaysBreakTemplateDeclarations: Yes |
| 47 | +BreakBeforeConceptDeclarations: true |
| 48 | +BreakBeforeTernaryOperators: true |
| 49 | +BreakConstructorInitializers: BeforeComma |
| 50 | +BreakBeforeBinaryOperators: None |
| 51 | +BreakInheritanceList: AfterColon |
| 52 | +BreakStringLiterals: true |
| 53 | + |
| 54 | +# Initializers & arguments |
| 55 | +BinPackArguments: false |
| 56 | +BinPackParameters: false |
| 57 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 58 | +ConstructorInitializerIndentWidth: 0 |
| 59 | +Cpp11BracedListStyle: true |
| 60 | +# Braces |
| 61 | +BreakBeforeBraces: Stroustrup |
| 62 | +# BraceWrapping: |
| 63 | +# AfterCaseLabel: false |
| 64 | +# AfterClass: false |
| 65 | +# AfterControlStatement: Always |
| 66 | +# AfterEnum: false |
| 67 | +# AfterFunction: true |
| 68 | +# AfterNamespace: false |
| 69 | +# AfterStruct: false |
| 70 | +# AfterUnion: false |
| 71 | +# AfterExternBlock: false |
| 72 | +# BeforeCatch: false |
| 73 | +# BeforeElse: false |
| 74 | +# BeforeLambdaBody: true |
| 75 | +# BeforeWhile: false |
| 76 | +# IndentBraces: false |
| 77 | +# SplitEmptyFunction: true |
| 78 | +# SplitEmptyRecord: true |
| 79 | +# SplitEmptyNamespace: true |
| 80 | + |
| 81 | +# Namespaces |
| 82 | +ShortNamespaceLines: 0 |
| 83 | +CompactNamespaces: false |
| 84 | +FixNamespaceComments: true |
| 85 | +NamespaceIndentation: Inner |
| 86 | + |
| 87 | +# Derive |
| 88 | +DeriveLineEnding: false |
| 89 | +DerivePointerAlignment: false |
| 90 | + |
| 91 | +# Empty lines |
| 92 | +EmptyLineBeforeAccessModifier: Leave |
| 93 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 94 | +MaxEmptyLinesToKeep: 2 |
| 95 | + |
| 96 | + |
| 97 | +# Sorting |
| 98 | +SortUsingDeclarations: true |
| 99 | + |
| 100 | +# Penalties |
| 101 | +PenaltyBreakAssignment: 1000 |
| 102 | +PenaltyBreakBeforeFirstCallParameter: 1000 |
| 103 | +PenaltyBreakComment: 200 |
| 104 | +PenaltyBreakFirstLessLess: 100 |
| 105 | +PenaltyBreakString: 1 |
| 106 | +PenaltyBreakTemplateDeclaration: 0 |
| 107 | +PenaltyExcessCharacter: 5 |
| 108 | +PenaltyIndentedWhitespace: 1 |
| 109 | +PenaltyReturnTypeOnItsOwnLine: 5000000 |
| 110 | + |
| 111 | +# Pointer alignment |
| 112 | +PointerAlignment: Left |
| 113 | + |
| 114 | +# Comments |
| 115 | +ReflowComments: false |
| 116 | + |
| 117 | +# Spaces |
| 118 | +SpaceAfterCStyleCast: false |
| 119 | +SpaceAfterLogicalNot: false |
| 120 | +SpaceAfterTemplateKeyword: false |
| 121 | +SpaceAroundPointerQualifiers: Default |
| 122 | +SpaceBeforeAssignmentOperators: true |
| 123 | +SpaceBeforeCaseColon: false |
| 124 | +SpaceBeforeCpp11BracedList: false |
| 125 | +SpaceBeforeCtorInitializerColon: true |
| 126 | +SpaceBeforeInheritanceColon: true |
| 127 | +SpaceBeforeParens: ControlStatements |
| 128 | +SpaceBeforeRangeBasedForLoopColon: true |
| 129 | +SpaceBeforeSquareBrackets: false |
| 130 | +SpaceInEmptyBlock: false |
| 131 | +SpaceInEmptyParentheses: false |
| 132 | +SpacesBeforeTrailingComments: 1 |
| 133 | +SpacesInAngles: false |
| 134 | +SpacesInCStyleCastParentheses: false |
| 135 | +SpacesInConditionalStatement: false |
| 136 | +SpacesInContainerLiterals: false |
| 137 | +SpacesInParentheses: false |
| 138 | +SpacesInSquareBrackets: false |
| 139 | + |
| 140 | +# Line endings |
| 141 | +UseCRLF: false |
| 142 | + |
| 143 | +# Qualifiers (const, volatile, static, etc) |
| 144 | +QualifierAlignment: Custom |
| 145 | +QualifierOrder: ['static', 'inline', 'constexpr', 'const', 'volatile', 'type'] |
0 commit comments