2018-11-23 22:09:41 +00:00
|
|
|
# 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
|
2021-02-28 19:52:06 +00:00
|
|
|
# AllowShortCaseLabelsOnASingleLine: false
|
2018-11-23 22:09:41 +00:00
|
|
|
AllowShortFunctionsOnASingleLine: Inline
|
2021-02-28 19:52:06 +00:00
|
|
|
# AllowShortIfStatementsOnASingleLine: false
|
2018-11-23 22:09:41 +00:00
|
|
|
# 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
|
2021-02-28 19:52:06 +00:00
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
2018-11-23 22:09:41 +00:00
|
|
|
# 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
|
2021-02-28 19:52:06 +00:00
|
|
|
Standard: Cpp11
|
2018-11-23 22:09:41 +00:00
|
|
|
---
|
|
|
|
### ObjC specific config ###
|
|
|
|
Language: ObjC
|
2021-02-28 19:52:06 +00:00
|
|
|
Standard: Cpp11
|
2018-11-23 22:09:41 +00:00
|
|
|
ObjCBlockIndentWidth: 4
|
|
|
|
# ObjCSpaceAfterProperty: false
|
|
|
|
# ObjCSpaceBeforeProtocolList: true
|
|
|
|
---
|
|
|
|
### Java specific config ###
|
|
|
|
Language: Java
|
|
|
|
# BreakAfterJavaFieldAnnotations: false
|
2021-02-28 19:52:06 +00:00
|
|
|
JavaImportGroups: ['org.godotengine', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax']
|
2018-11-23 22:09:41 +00:00
|
|
|
...
|