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