mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Style: Sync clang-format template with Clang 14.0
Not using any of the new options yet so we preserve compatibility with 13.0, which is still the recommended version as 14.0 actually has a regression.
This commit is contained in:
parent
f586e06f7b
commit
788f355ad2
@ -1,6 +1,6 @@
|
|||||||
# Commented out parameters are those with the same value as base LLVM style.
|
# 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
|
# 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 13.0).
|
# chosen value in case the base style changes (last sync: Clang 14.0).
|
||||||
---
|
---
|
||||||
### General config, applies to all languages ###
|
### General config, applies to all languages ###
|
||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
@ -15,7 +15,6 @@ AlignAfterOpenBracket: DontAlign
|
|||||||
AlignOperands: DontAlign
|
AlignOperands: DontAlign
|
||||||
AlignTrailingComments: false
|
AlignTrailingComments: false
|
||||||
# AllowAllArgumentsOnNextLine: true
|
# AllowAllArgumentsOnNextLine: true
|
||||||
# AllowAllConstructorInitializersOnNextLine: true
|
|
||||||
AllowAllParametersOfDeclarationOnNextLine: false
|
AllowAllParametersOfDeclarationOnNextLine: false
|
||||||
# AllowShortEnumsOnASingleLine: true
|
# AllowShortEnumsOnASingleLine: true
|
||||||
# AllowShortBlocksOnASingleLine: Never
|
# AllowShortBlocksOnASingleLine: Never
|
||||||
@ -62,8 +61,8 @@ BreakConstructorInitializers: AfterColon
|
|||||||
# BreakStringLiterals: true
|
# BreakStringLiterals: true
|
||||||
ColumnLimit: 0
|
ColumnLimit: 0
|
||||||
# CommentPragmas: '^ IWYU pragma:'
|
# CommentPragmas: '^ IWYU pragma:'
|
||||||
|
# QualifierAlignment: Leave
|
||||||
# CompactNamespaces: false
|
# CompactNamespaces: false
|
||||||
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
||||||
ConstructorInitializerIndentWidth: 8
|
ConstructorInitializerIndentWidth: 8
|
||||||
ContinuationIndentWidth: 8
|
ContinuationIndentWidth: 8
|
||||||
Cpp11BracedListStyle: false
|
Cpp11BracedListStyle: false
|
||||||
@ -73,6 +72,9 @@ Cpp11BracedListStyle: false
|
|||||||
# EmptyLineAfterAccessModifier: Never
|
# EmptyLineAfterAccessModifier: Never
|
||||||
# EmptyLineBeforeAccessModifier: LogicalBlock
|
# EmptyLineBeforeAccessModifier: LogicalBlock
|
||||||
# ExperimentalAutoDetectBinPacking: false
|
# ExperimentalAutoDetectBinPacking: false
|
||||||
|
# PackConstructorInitializers: BinPack
|
||||||
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
||||||
|
# AllowAllConstructorInitializersOnNextLine: true
|
||||||
# FixNamespaceComments: true
|
# FixNamespaceComments: true
|
||||||
# ForEachMacros:
|
# ForEachMacros:
|
||||||
# - foreach
|
# - foreach
|
||||||
@ -112,6 +114,7 @@ KeepEmptyLinesAtTheStartOfBlocks: false
|
|||||||
# PenaltyBreakBeforeFirstCallParameter: 19
|
# PenaltyBreakBeforeFirstCallParameter: 19
|
||||||
# PenaltyBreakComment: 300
|
# PenaltyBreakComment: 300
|
||||||
# PenaltyBreakFirstLessLess: 120
|
# PenaltyBreakFirstLessLess: 120
|
||||||
|
# PenaltyBreakOpenParenthesis: 0
|
||||||
# PenaltyBreakString: 1000
|
# PenaltyBreakString: 1000
|
||||||
# PenaltyBreakTemplateDeclaration: 10
|
# PenaltyBreakTemplateDeclaration: 10
|
||||||
# PenaltyExcessCharacter: 1000000
|
# PenaltyExcessCharacter: 1000000
|
||||||
@ -121,6 +124,8 @@ KeepEmptyLinesAtTheStartOfBlocks: false
|
|||||||
# PPIndentWidth: -1
|
# PPIndentWidth: -1
|
||||||
# ReferenceAlignment: Pointer
|
# ReferenceAlignment: Pointer
|
||||||
# ReflowComments: true
|
# ReflowComments: true
|
||||||
|
# RemoveBracesLLVM: false
|
||||||
|
# SeparateDefinitionBlocks: Leave
|
||||||
# ShortNamespaceLines: 1
|
# ShortNamespaceLines: 1
|
||||||
# SortIncludes: CaseSensitive
|
# SortIncludes: CaseSensitive
|
||||||
# SortJavaStaticImport: Before
|
# SortJavaStaticImport: Before
|
||||||
@ -134,15 +139,20 @@ KeepEmptyLinesAtTheStartOfBlocks: false
|
|||||||
# SpaceBeforeCtorInitializerColon: true
|
# SpaceBeforeCtorInitializerColon: true
|
||||||
# SpaceBeforeInheritanceColon: true
|
# SpaceBeforeInheritanceColon: true
|
||||||
# SpaceBeforeParens: ControlStatements
|
# SpaceBeforeParens: ControlStatements
|
||||||
|
# SpaceBeforeParensOptions:
|
||||||
|
# AfterControlStatements: true
|
||||||
|
# AfterForeachMacros: true
|
||||||
|
# AfterFunctionDefinitionName: false
|
||||||
|
# AfterFunctionDeclarationName: false
|
||||||
|
# AfterIfMacros: true
|
||||||
|
# AfterOverloadedOperator: false
|
||||||
|
# BeforeNonEmptyParentheses: false
|
||||||
# SpaceAroundPointerQualifiers: Default
|
# SpaceAroundPointerQualifiers: Default
|
||||||
# SpaceBeforeRangeBasedForLoopColon: true
|
# SpaceBeforeRangeBasedForLoopColon: true
|
||||||
# SpaceInEmptyParentheses: false
|
|
||||||
# SpacesBeforeTrailingComments: 1
|
|
||||||
# SpaceInEmptyBlock: false
|
# SpaceInEmptyBlock: false
|
||||||
# SpaceInEmptyParentheses: false
|
# SpaceInEmptyParentheses: false
|
||||||
# SpacesBeforeTrailingComments: 1
|
# SpacesBeforeTrailingComments: 1
|
||||||
# SpacesInAngles: Never
|
# SpacesInAngles: Never
|
||||||
# SpacesInContainerLiterals: true
|
|
||||||
# SpacesInConditionalStatement: false
|
# SpacesInConditionalStatement: false
|
||||||
# SpacesInContainerLiterals: true
|
# SpacesInContainerLiterals: true
|
||||||
# SpacesInCStyleCastParentheses: false
|
# SpacesInCStyleCastParentheses: false
|
||||||
|
Loading…
Reference in New Issue
Block a user