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