mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
135 lines
3.1 KiB
Text
135 lines
3.1 KiB
Text
|
# This only works with clang-format 14+!
|
||
|
# Based on WebKit style.
|
||
|
---
|
||
|
Language: Cpp
|
||
|
IndentWidth: 4
|
||
|
|
||
|
AlignAfterOpenBracket: BlockIndent
|
||
|
AlignEscapedNewlines: Left
|
||
|
AlignOperands: DontAlign
|
||
|
|
||
|
AllowAllArgumentsOnNextLine: true
|
||
|
AllowAllParametersOfDeclarationOnNextLine: true
|
||
|
|
||
|
AllowShortBlocksOnASingleLine: Empty
|
||
|
AllowShortFunctionsOnASingleLine: Empty
|
||
|
AllowShortLambdasOnASingleLine: Empty
|
||
|
|
||
|
AllowShortCaseLabelsOnASingleLine: false
|
||
|
AllowShortEnumsOnASingleLine: false
|
||
|
|
||
|
AllowShortIfStatementsOnASingleLine: OnlyFirstIf
|
||
|
AlwaysBreakAfterReturnType: None
|
||
|
|
||
|
AlwaysBreakBeforeMultilineStrings: true
|
||
|
AlwaysBreakTemplateDeclarations: Yes
|
||
|
|
||
|
BinPackArguments: true
|
||
|
BinPackParameters: true
|
||
|
|
||
|
BraceWrapping:
|
||
|
AfterCaseLabel: false
|
||
|
AfterClass: false
|
||
|
AfterControlStatement: Never
|
||
|
AfterEnum: false
|
||
|
AfterFunction: false
|
||
|
AfterNamespace: false
|
||
|
AfterStruct: false
|
||
|
AfterUnion: false
|
||
|
AfterExternBlock: false
|
||
|
|
||
|
BeforeCatch: true
|
||
|
BeforeElse: true
|
||
|
|
||
|
BeforeLambdaBody: false
|
||
|
BeforeWhile: false
|
||
|
|
||
|
BreakBeforeBinaryOperators: NonAssignment
|
||
|
BreakBeforeBraces: Custom
|
||
|
BreakBeforeConceptDeclarations: true
|
||
|
BreakBeforeTernaryOperators: true
|
||
|
BreakConstructorInitializers: AfterColon
|
||
|
BreakInheritanceList: AfterColon
|
||
|
BreakStringLiterals: true
|
||
|
ColumnLimit: 100
|
||
|
CompactNamespaces: false
|
||
|
ConstructorInitializerIndentWidth: 4
|
||
|
ContinuationIndentWidth: 4
|
||
|
Cpp11BracedListStyle: false
|
||
|
|
||
|
DeriveLineEnding: false
|
||
|
UseCRLF: false
|
||
|
UseTab: Never
|
||
|
|
||
|
PointerAlignment: Left
|
||
|
ReferenceAlignment: Pointer
|
||
|
|
||
|
EmptyLineBeforeAccessModifier: Always
|
||
|
FixNamespaceComments: false
|
||
|
|
||
|
IncludeBlocks: Regroup
|
||
|
IncludeCategories:
|
||
|
- Regex: '^".*"'
|
||
|
Priority: 1
|
||
|
|
||
|
- Regex: '^<.*>'
|
||
|
Priority: 2
|
||
|
|
||
|
IndentAccessModifiers: false
|
||
|
AccessModifierOffset: -4
|
||
|
IndentCaseBlocks: false
|
||
|
IndentCaseLabels: false
|
||
|
IndentExternBlock: Indent
|
||
|
IndentGotoLabels: true
|
||
|
IndentPPDirectives: BeforeHash
|
||
|
IndentWrappedFunctionNames: true
|
||
|
# InsertBraces: true
|
||
|
InsertTrailingCommas: None
|
||
|
|
||
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||
|
MaxEmptyLinesToKeep: 1
|
||
|
LambdaBodyIndentation: Signature
|
||
|
NamespaceIndentation: All
|
||
|
|
||
|
PPIndentWidth: -1
|
||
|
|
||
|
PenaltyBreakAssignment: 2
|
||
|
PenaltyBreakBeforeFirstCallParameter: 19
|
||
|
PenaltyBreakComment: 300
|
||
|
PenaltyBreakFirstLessLess: 120
|
||
|
PenaltyBreakString: 1000
|
||
|
PenaltyBreakTemplateDeclaration: 10
|
||
|
PenaltyExcessCharacter: 1000000
|
||
|
PenaltyReturnTypeOnItsOwnLine: 60
|
||
|
PenaltyIndentedWhitespace: 0
|
||
|
|
||
|
ReflowComments: true
|
||
|
SeparateDefinitionBlocks: Always
|
||
|
|
||
|
SortIncludes: CaseSensitive
|
||
|
SortUsingDeclarations: true
|
||
|
|
||
|
SpaceAfterCStyleCast: false
|
||
|
SpaceAfterLogicalNot: false
|
||
|
SpaceAfterTemplateKeyword: true
|
||
|
SpaceAroundPointerQualifiers: After
|
||
|
SpaceBeforeAssignmentOperators: true
|
||
|
SpaceBeforeCaseColon: false
|
||
|
SpaceBeforeCpp11BracedList: true
|
||
|
SpaceBeforeCtorInitializerColon: true
|
||
|
SpaceBeforeInheritanceColon: true
|
||
|
SpaceBeforeParens: ControlStatements
|
||
|
SpaceBeforeRangeBasedForLoopColon: true
|
||
|
SpaceBeforeSquareBrackets: false
|
||
|
SpaceInEmptyBlock: false
|
||
|
SpaceInEmptyParentheses: false
|
||
|
SpacesBeforeTrailingComments: 1
|
||
|
SpacesInAngles: Never
|
||
|
SpacesInCStyleCastParentheses: false
|
||
|
SpacesInConditionalStatement: false
|
||
|
SpacesInLineCommentPrefix:
|
||
|
Minimum: 1
|
||
|
Maximum: -1
|
||
|
SpacesInParentheses: false
|
||
|
SpacesInSquareBrackets: false
|
||
|
Standard: c++17
|