mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
0be6d925dc
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
129 lines
3.8 KiB
YAML
129 lines
3.8 KiB
YAML
# Commented out parameters are those with the same value as base LLVM style
|
|
# We can uncomment them if we want to change their value, or enforce the
|
|
# chosen value in case the base style changes (last sync: Clang 6.0.1).
|
|
---
|
|
### General config, applies to all languages ###
|
|
BasedOnStyle: LLVM
|
|
AccessModifierOffset: -4
|
|
AlignAfterOpenBracket: DontAlign
|
|
# AlignConsecutiveAssignments: false
|
|
# AlignConsecutiveDeclarations: false
|
|
# AlignEscapedNewlines: Right
|
|
# AlignOperands: true
|
|
AlignTrailingComments: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
# AllowShortBlocksOnASingleLine: false
|
|
# AllowShortCaseLabelsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: Inline
|
|
# AllowShortIfStatementsOnASingleLine: false
|
|
# AllowShortLoopsOnASingleLine: false
|
|
# AlwaysBreakAfterDefinitionReturnType: None
|
|
# AlwaysBreakAfterReturnType: None
|
|
# AlwaysBreakBeforeMultilineStrings: false
|
|
# AlwaysBreakTemplateDeclarations: false
|
|
# BinPackArguments: true
|
|
# BinPackParameters: true
|
|
# BraceWrapping:
|
|
# AfterClass: false
|
|
# AfterControlStatement: false
|
|
# AfterEnum: false
|
|
# AfterFunction: false
|
|
# AfterNamespace: false
|
|
# AfterObjCDeclaration: false
|
|
# AfterStruct: false
|
|
# AfterUnion: false
|
|
# AfterExternBlock: false
|
|
# BeforeCatch: false
|
|
# BeforeElse: false
|
|
# IndentBraces: false
|
|
# SplitEmptyFunction: true
|
|
# SplitEmptyRecord: true
|
|
# SplitEmptyNamespace: true
|
|
# BreakBeforeBinaryOperators: None
|
|
# BreakBeforeBraces: Attach
|
|
# BreakBeforeInheritanceComma: false
|
|
BreakBeforeTernaryOperators: false
|
|
# BreakConstructorInitializersBeforeComma: false
|
|
BreakConstructorInitializers: AfterColon
|
|
# BreakStringLiterals: true
|
|
ColumnLimit: 0
|
|
# CommentPragmas: '^ IWYU pragma:'
|
|
# CompactNamespaces: false
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
ConstructorInitializerIndentWidth: 8
|
|
ContinuationIndentWidth: 8
|
|
Cpp11BracedListStyle: false
|
|
# DerivePointerAlignment: false
|
|
# DisableFormat: false
|
|
# ExperimentalAutoDetectBinPacking: false
|
|
# FixNamespaceComments: true
|
|
# ForEachMacros:
|
|
# - foreach
|
|
# - Q_FOREACH
|
|
# - BOOST_FOREACH
|
|
# IncludeBlocks: Preserve
|
|
IncludeCategories:
|
|
- Regex: '".*"'
|
|
Priority: 1
|
|
- Regex: '^<.*\.h>'
|
|
Priority: 2
|
|
- Regex: '^<.*'
|
|
Priority: 3
|
|
# IncludeIsMainRegex: '(Test)?$'
|
|
IndentCaseLabels: true
|
|
# IndentPPDirectives: None
|
|
IndentWidth: 4
|
|
# IndentWrappedFunctionNames: false
|
|
# JavaScriptQuotes: Leave
|
|
# JavaScriptWrapImports: true
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
# MacroBlockBegin: ''
|
|
# MacroBlockEnd: ''
|
|
# MaxEmptyLinesToKeep: 1
|
|
# NamespaceIndentation: None
|
|
# PenaltyBreakAssignment: 2
|
|
# PenaltyBreakBeforeFirstCallParameter: 19
|
|
# PenaltyBreakComment: 300
|
|
# PenaltyBreakFirstLessLess: 120
|
|
# PenaltyBreakString: 1000
|
|
# PenaltyExcessCharacter: 1000000
|
|
# PenaltyReturnTypeOnItsOwnLine: 60
|
|
# PointerAlignment: Right
|
|
# RawStringFormats:
|
|
# - Delimiter: pb
|
|
# Language: TextProto
|
|
# BasedOnStyle: google
|
|
# ReflowComments: true
|
|
# SortIncludes: true
|
|
# SortUsingDeclarations: true
|
|
# SpaceAfterCStyleCast: false
|
|
# SpaceAfterTemplateKeyword: true
|
|
# SpaceBeforeAssignmentOperators: true
|
|
# SpaceBeforeParens: ControlStatements
|
|
# SpaceInEmptyParentheses: false
|
|
# SpacesBeforeTrailingComments: 1
|
|
# SpacesInAngles: false
|
|
# SpacesInContainerLiterals: true
|
|
# SpacesInCStyleCastParentheses: false
|
|
# SpacesInParentheses: false
|
|
# SpacesInSquareBrackets: false
|
|
TabWidth: 4
|
|
UseTab: Always
|
|
---
|
|
### C++ specific config ###
|
|
Language: Cpp
|
|
Standard: Cpp11
|
|
---
|
|
### ObjC specific config ###
|
|
Language: ObjC
|
|
Standard: Cpp11
|
|
ObjCBlockIndentWidth: 4
|
|
# ObjCSpaceAfterProperty: false
|
|
# ObjCSpaceBeforeProtocolList: true
|
|
---
|
|
### Java specific config ###
|
|
Language: Java
|
|
# BreakAfterJavaFieldAnnotations: false
|
|
JavaImportGroups: ['org.godotengine', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax']
|
|
...
|