mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 07:41:05 +08:00
88e9f82bee
Co-authored-by: Vittorio Romeo <vittorio.romeo@outlook.com> Co-authored-by: Chris Thrasher <chrisjthrasher@gmail.com> Co-authored-by: kimci86 <kimci86@hotmail.fr>
168 lines
3.9 KiB
YAML
168 lines
3.9 KiB
YAML
---
|
|
# Project
|
|
Standard: c++17
|
|
ColumnLimit: 120
|
|
|
|
# Indentation
|
|
AccessModifierOffset: -4
|
|
BitFieldColonSpacing: Both
|
|
ContinuationIndentWidth: 4
|
|
IndentCaseLabels: true
|
|
IndentCaseBlocks: false
|
|
IndentExternBlock: Indent
|
|
IndentPPDirectives: None
|
|
IndentRequires: true
|
|
IndentWidth: 4
|
|
IndentWrappedFunctionNames: true
|
|
TabWidth: 4
|
|
UseTab: Never
|
|
|
|
# Alignment
|
|
AlignAfterOpenBracket: Align
|
|
AlignConsecutiveAssignments: Consecutive
|
|
AlignConsecutiveBitFields: Consecutive
|
|
AlignConsecutiveDeclarations: Consecutive
|
|
AlignConsecutiveMacros: Consecutive
|
|
AlignEscapedNewlines: Left
|
|
AlignOperands: Align
|
|
AlignTrailingComments: true
|
|
|
|
# Allow
|
|
AllowAllArgumentsOnNextLine: false
|
|
AllowAllConstructorInitializersOnNextLine: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowShortBlocksOnASingleLine: Never
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
AllowShortEnumsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: None
|
|
AllowShortIfStatementsOnASingleLine: Never
|
|
AllowShortLoopsOnASingleLine: false
|
|
AllowShortLambdasOnASingleLine: All
|
|
|
|
# Break
|
|
AlwaysBreakAfterReturnType: None
|
|
AlwaysBreakBeforeMultilineStrings: true
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
BreakBeforeConceptDeclarations: true
|
|
BreakBeforeTernaryOperators: true
|
|
BreakConstructorInitializers: AfterColon
|
|
BreakBeforeBinaryOperators: None
|
|
BreakInheritanceList: AfterColon
|
|
BreakStringLiterals: true
|
|
|
|
# Initializers & arguments
|
|
BinPackArguments: false
|
|
BinPackParameters: false
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
ConstructorInitializerIndentWidth: 0
|
|
Cpp11BracedListStyle: true
|
|
|
|
# Braces
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
AfterCaseLabel: true
|
|
AfterClass: true
|
|
AfterControlStatement: Always
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterNamespace: true
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
AfterExternBlock: true
|
|
BeforeCatch: false
|
|
BeforeElse: true
|
|
BeforeLambdaBody: true
|
|
BeforeWhile: false
|
|
IndentBraces: false
|
|
SplitEmptyFunction: true
|
|
SplitEmptyRecord: true
|
|
SplitEmptyNamespace: true
|
|
|
|
# Namespaces
|
|
CompactNamespaces: false
|
|
FixNamespaceComments: true
|
|
NamespaceIndentation: None
|
|
|
|
# Derive
|
|
DeriveLineEnding: false
|
|
DerivePointerAlignment: false
|
|
|
|
# Empty lines
|
|
EmptyLineBeforeAccessModifier: Always
|
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
|
MaxEmptyLinesToKeep: 2
|
|
|
|
# Sorting
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Priority: 1
|
|
Regex: '^<SFML\/Config.hpp>$'
|
|
- Priority: 2
|
|
Regex: '^<SFML\/(.+)\/Export.hpp>$'
|
|
- Priority: 3
|
|
Regex: '^<SFML\/'
|
|
- Priority: 4
|
|
Regex: '^<(glad|gl|X11|jni|android|stb_|GLES2|vorbis|doctest)'
|
|
- Priority: 5
|
|
Regex: '^<(.+)>$'
|
|
SortIncludes: true
|
|
SortUsingDeclarations: true
|
|
|
|
# Penalties
|
|
PenaltyBreakAssignment: 1000
|
|
PenaltyBreakBeforeFirstCallParameter: 1000
|
|
PenaltyBreakComment: 200
|
|
PenaltyBreakFirstLessLess: 100
|
|
PenaltyBreakString: 1
|
|
PenaltyBreakTemplateDeclaration: 0
|
|
PenaltyExcessCharacter: 5
|
|
PenaltyIndentedWhitespace: 1
|
|
PenaltyReturnTypeOnItsOwnLine: 500
|
|
|
|
# Pointer alignment
|
|
PointerAlignment: Left
|
|
|
|
# Comments
|
|
ReflowComments: false
|
|
|
|
# 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: 1
|
|
SpacesInAngles: false
|
|
SpacesInCStyleCastParentheses: false
|
|
SpacesInConditionalStatement: false
|
|
SpacesInContainerLiterals: false
|
|
SpacesInParentheses: false
|
|
SpacesInSquareBrackets: false
|
|
|
|
# Line endings
|
|
UseCRLF: false
|
|
|
|
---
|
|
Language: ObjC
|
|
IndentWidth: 4
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
AfterObjCDeclaration: true
|
|
|
|
ObjCBinPackProtocolList: Never
|
|
ObjCBlockIndentWidth: 4
|
|
ObjCBreakBeforeNestedBlockParam: true
|
|
ObjCSpaceAfterProperty: true
|
|
ObjCSpaceBeforeProtocolList: false
|
|
|
|
...
|