2021-10-22 18:39:50 +00:00
|
|
|
# Commented out parameters are those with the same value as base LLVM style.
|
2017-01-15 21:21:15 +00:00
|
|
|
# We can uncomment them if we want to change their value, or enforce the
|
2024-06-18 15:36:58 +00:00
|
|
|
# chosen value in case the base style changes (last sync: Clang 18.1.8).
|
|
|
|
BasedOnStyle: LLVM
|
2017-01-15 21:21:15 +00:00
|
|
|
AccessModifierOffset: -4
|
|
|
|
AlignAfterOpenBracket: DontAlign
|
2021-10-22 18:39:50 +00:00
|
|
|
# AlignArrayOfStructures: None
|
2024-06-18 15:36:58 +00:00
|
|
|
# AlignConsecutiveAssignments:
|
|
|
|
# Enabled: false
|
|
|
|
# AcrossEmptyLines: false
|
|
|
|
# AcrossComments: false
|
|
|
|
# AlignCompound: false
|
|
|
|
# AlignFunctionPointers: false
|
|
|
|
# PadOperators: true
|
|
|
|
# AlignConsecutiveBitFields:
|
|
|
|
# Enabled: false
|
|
|
|
# AcrossEmptyLines: false
|
|
|
|
# AcrossComments: false
|
|
|
|
# AlignCompound: false
|
|
|
|
# AlignFunctionPointers: false
|
|
|
|
# PadOperators: false
|
|
|
|
# AlignConsecutiveDeclarations:
|
|
|
|
# Enabled: false
|
|
|
|
# AcrossEmptyLines: false
|
|
|
|
# AcrossComments: false
|
|
|
|
# AlignCompound: false
|
|
|
|
# AlignFunctionPointers: false
|
|
|
|
# PadOperators: false
|
|
|
|
# AlignConsecutiveMacros:
|
|
|
|
# Enabled: false
|
|
|
|
# AcrossEmptyLines: false
|
|
|
|
# AcrossComments: false
|
|
|
|
# AlignCompound: false
|
|
|
|
# AlignFunctionPointers: false
|
|
|
|
# PadOperators: false
|
|
|
|
# AlignConsecutiveShortCaseStatements:
|
|
|
|
# Enabled: false
|
|
|
|
# AcrossEmptyLines: false
|
|
|
|
# AcrossComments: false
|
|
|
|
# AlignCaseColons: false
|
2017-12-06 20:34:40 +00:00
|
|
|
# AlignEscapedNewlines: Right
|
2024-06-18 15:36:58 +00:00
|
|
|
AlignOperands: DontAlign
|
|
|
|
AlignTrailingComments:
|
|
|
|
Kind: Never
|
|
|
|
OverEmptyLines: 0
|
2021-10-22 18:39:50 +00:00
|
|
|
# AllowAllArgumentsOnNextLine: true
|
2017-01-15 21:21:15 +00:00
|
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# AllowBreakBeforeNoexceptSpecifier: Never
|
2021-10-22 18:39:50 +00:00
|
|
|
# AllowShortBlocksOnASingleLine: Never
|
2020-05-10 11:00:47 +00:00
|
|
|
# AllowShortCaseLabelsOnASingleLine: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# AllowShortCompoundRequirementOnASingleLine: true
|
|
|
|
# AllowShortEnumsOnASingleLine: true
|
2022-08-03 10:11:12 +00:00
|
|
|
# AllowShortFunctionsOnASingleLine: All
|
2021-10-22 18:39:50 +00:00
|
|
|
# AllowShortIfStatementsOnASingleLine: Never
|
2024-06-18 15:36:58 +00:00
|
|
|
# AllowShortLambdasOnASingleLine: All
|
2017-01-15 21:21:15 +00:00
|
|
|
# AllowShortLoopsOnASingleLine: false
|
|
|
|
# AlwaysBreakAfterReturnType: None
|
|
|
|
# AlwaysBreakBeforeMultilineStrings: false
|
2021-10-22 18:39:50 +00:00
|
|
|
# AlwaysBreakTemplateDeclarations: MultiLine
|
|
|
|
# AttributeMacros:
|
|
|
|
# - __capability
|
2017-01-15 21:21:15 +00:00
|
|
|
# BinPackArguments: true
|
|
|
|
# BinPackParameters: true
|
2024-06-18 15:36:58 +00:00
|
|
|
# BitFieldColonSpacing: Both
|
2017-01-15 21:21:15 +00:00
|
|
|
# BraceWrapping:
|
2024-06-18 15:36:58 +00:00
|
|
|
# AfterCaseLabel: false
|
|
|
|
# AfterClass: false
|
2021-10-22 18:39:50 +00:00
|
|
|
# AfterControlStatement: Never
|
2024-06-18 15:36:58 +00:00
|
|
|
# AfterEnum: false
|
|
|
|
# AfterFunction: false
|
|
|
|
# AfterNamespace: false
|
2017-01-15 21:21:15 +00:00
|
|
|
# AfterObjCDeclaration: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# AfterStruct: false
|
|
|
|
# AfterUnion: false
|
2018-07-18 14:24:33 +00:00
|
|
|
# AfterExternBlock: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# BeforeCatch: false
|
|
|
|
# BeforeElse: false
|
2021-10-22 18:39:50 +00:00
|
|
|
# BeforeLambdaBody: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# BeforeWhile: false
|
|
|
|
# IndentBraces: false
|
2017-12-06 20:34:40 +00:00
|
|
|
# SplitEmptyFunction: true
|
|
|
|
# SplitEmptyRecord: true
|
|
|
|
# SplitEmptyNamespace: true
|
2024-06-18 15:36:58 +00:00
|
|
|
# BreakAdjacentStringLiterals: true
|
|
|
|
# BreakAfterAttributes: Leave
|
|
|
|
# BreakAfterJavaFieldAnnotations: false
|
|
|
|
# BreakArrays: true
|
2017-01-15 21:21:15 +00:00
|
|
|
# BreakBeforeBinaryOperators: None
|
|
|
|
# BreakBeforeBraces: Attach
|
2024-06-18 15:36:58 +00:00
|
|
|
# BreakBeforeConceptDeclarations: Always
|
|
|
|
# BreakBeforeInlineASMColon: OnlyMultiline
|
2021-10-28 13:57:41 +00:00
|
|
|
# BreakBeforeTernaryOperators: true
|
2017-12-06 20:34:40 +00:00
|
|
|
BreakConstructorInitializers: AfterColon
|
2024-06-18 15:36:58 +00:00
|
|
|
# BreakInheritanceList: BeforeColon
|
2017-01-15 21:21:15 +00:00
|
|
|
# BreakStringLiterals: true
|
2024-06-18 15:36:58 +00:00
|
|
|
ColumnLimit: 0
|
|
|
|
# CommentPragmas: '^ IWYU pragma:'
|
2017-12-06 20:34:40 +00:00
|
|
|
# CompactNamespaces: false
|
|
|
|
ConstructorInitializerIndentWidth: 8
|
2017-01-15 21:21:15 +00:00
|
|
|
ContinuationIndentWidth: 8
|
|
|
|
Cpp11BracedListStyle: false
|
|
|
|
# DerivePointerAlignment: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# DisableFormat: false
|
2021-10-22 18:39:50 +00:00
|
|
|
# EmptyLineAfterAccessModifier: Never
|
|
|
|
# EmptyLineBeforeAccessModifier: LogicalBlock
|
2017-01-15 21:21:15 +00:00
|
|
|
# ExperimentalAutoDetectBinPacking: false
|
2017-12-06 20:34:40 +00:00
|
|
|
# FixNamespaceComments: true
|
|
|
|
# ForEachMacros:
|
|
|
|
# - foreach
|
|
|
|
# - Q_FOREACH
|
|
|
|
# - BOOST_FOREACH
|
2021-10-22 18:39:50 +00:00
|
|
|
# IfMacros:
|
|
|
|
# - KJ_IF_MAYBE
|
2024-06-18 15:36:58 +00:00
|
|
|
# IncludeBlocks: Preserve
|
2017-01-15 21:21:15 +00:00
|
|
|
IncludeCategories:
|
2024-06-18 15:36:58 +00:00
|
|
|
- Regex: ^".*"$
|
|
|
|
Priority: 1
|
|
|
|
- Regex: ^<.*\.h>$
|
|
|
|
Priority: 2
|
|
|
|
- Regex: ^<.*>$
|
|
|
|
Priority: 3
|
|
|
|
# IncludeIsMainRegex: (Test)?$
|
2021-10-22 18:39:50 +00:00
|
|
|
# IncludeIsMainSourceRegex: ''
|
|
|
|
# IndentAccessModifiers: false
|
|
|
|
# IndentCaseBlocks: false
|
2024-06-18 15:36:58 +00:00
|
|
|
IndentCaseLabels: true
|
|
|
|
# IndentExternBlock: AfterExternBlock
|
2021-10-22 18:39:50 +00:00
|
|
|
# IndentGotoLabels: true
|
2018-07-18 14:24:33 +00:00
|
|
|
# IndentPPDirectives: None
|
2024-06-18 15:36:58 +00:00
|
|
|
# IndentRequiresClause: true
|
|
|
|
IndentWidth: 4
|
2017-01-15 21:21:15 +00:00
|
|
|
# IndentWrappedFunctionNames: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# InsertBraces: false
|
|
|
|
# InsertNewlineAtEOF: false
|
2021-10-22 18:39:50 +00:00
|
|
|
# InsertTrailingCommas: None
|
2024-06-18 15:36:58 +00:00
|
|
|
# IntegerLiteralSeparator:
|
|
|
|
# Binary: 0
|
|
|
|
# BinaryMinDigits: 0
|
|
|
|
# Decimal: 0
|
|
|
|
# DecimalMinDigits: 0
|
|
|
|
# Hex: 0
|
|
|
|
# HexMinDigits: 0
|
|
|
|
JavaImportGroups:
|
|
|
|
- org.godotengine
|
|
|
|
- android
|
|
|
|
- androidx
|
|
|
|
- com.android
|
|
|
|
- com.google
|
|
|
|
- java
|
|
|
|
- javax
|
2017-01-15 21:21:15 +00:00
|
|
|
# JavaScriptQuotes: Leave
|
|
|
|
# JavaScriptWrapImports: true
|
2024-06-18 15:36:58 +00:00
|
|
|
# KeepEmptyLinesAtEOF: false
|
2020-05-14 11:23:58 +00:00
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
2021-10-22 18:39:50 +00:00
|
|
|
# LambdaBodyIndentation: Signature
|
2024-06-18 15:36:58 +00:00
|
|
|
# Language: Cpp
|
|
|
|
# LineEnding: DeriveLF
|
2017-01-15 21:21:15 +00:00
|
|
|
# MacroBlockBegin: ''
|
2024-06-18 15:36:58 +00:00
|
|
|
# MacroBlockEnd: ''
|
2017-01-15 21:21:15 +00:00
|
|
|
# MaxEmptyLinesToKeep: 1
|
|
|
|
# NamespaceIndentation: None
|
2024-06-18 15:36:58 +00:00
|
|
|
# ObjCBinPackProtocolList: Auto
|
|
|
|
ObjCBlockIndentWidth: 4
|
|
|
|
# ObjCBreakBeforeNestedBlockParam: true
|
|
|
|
# ObjCSpaceAfterProperty: false
|
|
|
|
# ObjCSpaceBeforeProtocolList: true
|
|
|
|
# PPIndentWidth: -1
|
|
|
|
PackConstructorInitializers: NextLine
|
2017-12-06 20:34:40 +00:00
|
|
|
# PenaltyBreakAssignment: 2
|
2017-01-15 21:21:15 +00:00
|
|
|
# PenaltyBreakBeforeFirstCallParameter: 19
|
|
|
|
# PenaltyBreakComment: 300
|
|
|
|
# PenaltyBreakFirstLessLess: 120
|
2022-04-12 09:07:56 +00:00
|
|
|
# PenaltyBreakOpenParenthesis: 0
|
2024-06-18 15:36:58 +00:00
|
|
|
# PenaltyBreakScopeResolution: 500
|
2017-01-15 21:21:15 +00:00
|
|
|
# PenaltyBreakString: 1000
|
2021-10-22 18:39:50 +00:00
|
|
|
# PenaltyBreakTemplateDeclaration: 10
|
2017-01-15 21:21:15 +00:00
|
|
|
# PenaltyExcessCharacter: 1000000
|
2021-10-22 18:39:50 +00:00
|
|
|
# PenaltyIndentedWhitespace: 0
|
2024-06-18 15:36:58 +00:00
|
|
|
# PenaltyReturnTypeOnItsOwnLine: 60
|
2017-12-06 20:34:40 +00:00
|
|
|
# PointerAlignment: Right
|
2024-06-18 15:36:58 +00:00
|
|
|
# QualifierAlignment: Leave
|
2021-10-22 18:39:50 +00:00
|
|
|
# ReferenceAlignment: Pointer
|
2024-06-18 15:36:58 +00:00
|
|
|
# ReflowComments: true
|
2022-04-12 09:07:56 +00:00
|
|
|
# RemoveBracesLLVM: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# RemoveParentheses: Leave
|
2024-10-07 14:57:21 +00:00
|
|
|
RemoveSemicolon: true
|
2024-06-18 15:36:58 +00:00
|
|
|
# RequiresClausePosition: OwnLine
|
|
|
|
# RequiresExpressionIndentation: OuterScope
|
2022-04-12 09:07:56 +00:00
|
|
|
# SeparateDefinitionBlocks: Leave
|
2021-10-22 18:39:50 +00:00
|
|
|
# ShortNamespaceLines: 1
|
2024-06-18 15:36:58 +00:00
|
|
|
# SkipMacroDefinitionBody: false
|
|
|
|
# SortIncludes: CaseSensitive
|
2021-10-22 18:39:50 +00:00
|
|
|
# SortJavaStaticImport: Before
|
2024-06-18 15:36:58 +00:00
|
|
|
# SortUsingDeclarations: LexicographicNumeric
|
2017-01-15 21:21:15 +00:00
|
|
|
# SpaceAfterCStyleCast: false
|
2021-10-22 18:39:50 +00:00
|
|
|
# SpaceAfterLogicalNot: false
|
2017-12-06 20:34:40 +00:00
|
|
|
# SpaceAfterTemplateKeyword: true
|
2024-06-18 15:36:58 +00:00
|
|
|
# SpaceAroundPointerQualifiers: Default
|
2017-01-15 21:21:15 +00:00
|
|
|
# SpaceBeforeAssignmentOperators: true
|
2021-10-22 18:39:50 +00:00
|
|
|
# SpaceBeforeCaseColon: false
|
|
|
|
# SpaceBeforeCpp11BracedList: false
|
|
|
|
# SpaceBeforeCtorInitializerColon: true
|
|
|
|
# SpaceBeforeInheritanceColon: true
|
2024-06-18 15:36:58 +00:00
|
|
|
# SpaceBeforeJsonColon: false
|
2022-04-12 09:07:56 +00:00
|
|
|
# SpaceBeforeParensOptions:
|
|
|
|
# AfterControlStatements: true
|
|
|
|
# AfterForeachMacros: true
|
|
|
|
# AfterFunctionDeclarationName: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# AfterFunctionDefinitionName: false
|
|
|
|
# AfterIfMacros: true
|
2022-04-12 09:07:56 +00:00
|
|
|
# AfterOverloadedOperator: false
|
2024-06-18 15:36:58 +00:00
|
|
|
# AfterPlacementOperator: true
|
|
|
|
# AfterRequiresInClause: false
|
|
|
|
# AfterRequiresInExpression: false
|
2022-04-12 09:07:56 +00:00
|
|
|
# BeforeNonEmptyParentheses: false
|
2021-10-22 18:39:50 +00:00
|
|
|
# SpaceBeforeRangeBasedForLoopColon: true
|
2024-06-18 15:36:58 +00:00
|
|
|
# SpaceBeforeSquareBrackets: false
|
2021-10-22 18:39:50 +00:00
|
|
|
# SpaceInEmptyBlock: false
|
|
|
|
# SpacesBeforeTrailingComments: 1
|
2024-06-18 15:36:58 +00:00
|
|
|
# SpacesInAngles: Never
|
2017-01-15 21:21:15 +00:00
|
|
|
# SpacesInContainerLiterals: true
|
2021-10-22 18:39:50 +00:00
|
|
|
## Godot TODO: We'll want to use a min of 1, but we need to see how to fix
|
|
|
|
## our comment capitalization at the same time.
|
|
|
|
SpacesInLineCommentPrefix:
|
2024-06-18 15:36:58 +00:00
|
|
|
Minimum: 0
|
|
|
|
Maximum: -1
|
|
|
|
# SpacesInParens: Never
|
|
|
|
# SpacesInParensOptions:
|
|
|
|
# InConditionalStatements: false
|
|
|
|
# InCStyleCasts: false
|
|
|
|
# InEmptyParentheses: false
|
|
|
|
# Other: false
|
2017-01-15 21:21:15 +00:00
|
|
|
# SpacesInSquareBrackets: false
|
2024-10-07 14:57:21 +00:00
|
|
|
Standard: c++20
|
2021-10-22 18:39:50 +00:00
|
|
|
# StatementAttributeLikeMacros:
|
|
|
|
# - Q_EMIT
|
|
|
|
# StatementMacros:
|
|
|
|
# - Q_UNUSED
|
|
|
|
# - QT_REQUIRE_VERSION
|
2024-06-18 15:36:58 +00:00
|
|
|
TabWidth: 4
|
|
|
|
UseTab: Always
|
|
|
|
# VerilogBreakBetweenInstancePorts: true
|
2021-10-22 18:39:50 +00:00
|
|
|
# WhitespaceSensitiveMacros:
|
|
|
|
# - BOOST_PP_STRINGIZE
|
|
|
|
# - CF_SWIFT_NAME
|
2024-06-18 15:36:58 +00:00
|
|
|
# - NS_SWIFT_NAME
|
|
|
|
# - PP_STRINGIZE
|
|
|
|
# - STRINGIZE
|