2017-01-15 22:21:15 +01: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
|
2018-07-18 16:24:33 +02:00
|
|
|
# chosen value in case the base style changes (last sync: Clang 6.0.1).
|
2017-12-06 21:34:40 +01:00
|
|
|
---
|
|
|
|
### General config, applies to all languages ###
|
|
|
|
BasedOnStyle: LLVM
|
2017-01-15 22:21:15 +01:00
|
|
|
AccessModifierOffset: -4
|
|
|
|
AlignAfterOpenBracket: DontAlign
|
|
|
|
# AlignConsecutiveAssignments: false
|
|
|
|
# AlignConsecutiveDeclarations: false
|
2017-12-06 21:34:40 +01:00
|
|
|
# AlignEscapedNewlines: Right
|
2017-01-15 22:21:15 +01:00
|
|
|
# AlignOperands: true
|
|
|
|
AlignTrailingComments: false
|
|
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
|
|
# AllowShortBlocksOnASingleLine: false
|
|
|
|
AllowShortCaseLabelsOnASingleLine: true
|
|
|
|
AllowShortFunctionsOnASingleLine: Inline
|
|
|
|
AllowShortIfStatementsOnASingleLine: true
|
|
|
|
# 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
|
2018-07-18 16:24:33 +02:00
|
|
|
# AfterExternBlock: false
|
2017-01-15 22:21:15 +01:00
|
|
|
# BeforeCatch: false
|
|
|
|
# BeforeElse: false
|
|
|
|
# IndentBraces: false
|
2017-12-06 21:34:40 +01:00
|
|
|
# SplitEmptyFunction: true
|
|
|
|
# SplitEmptyRecord: true
|
|
|
|
# SplitEmptyNamespace: true
|
2017-01-15 22:21:15 +01:00
|
|
|
# BreakBeforeBinaryOperators: None
|
|
|
|
# BreakBeforeBraces: Attach
|
2017-12-06 21:34:40 +01:00
|
|
|
# BreakBeforeInheritanceComma: false
|
2017-01-15 22:21:15 +01:00
|
|
|
BreakBeforeTernaryOperators: false
|
|
|
|
# BreakConstructorInitializersBeforeComma: false
|
2017-12-06 21:34:40 +01:00
|
|
|
BreakConstructorInitializers: AfterColon
|
2017-01-15 22:21:15 +01:00
|
|
|
# BreakStringLiterals: true
|
|
|
|
ColumnLimit: 0
|
|
|
|
# CommentPragmas: '^ IWYU pragma:'
|
2017-12-06 21:34:40 +01:00
|
|
|
# CompactNamespaces: false
|
|
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
|
|
ConstructorInitializerIndentWidth: 8
|
2017-01-15 22:21:15 +01:00
|
|
|
ContinuationIndentWidth: 8
|
|
|
|
Cpp11BracedListStyle: false
|
|
|
|
# DerivePointerAlignment: false
|
|
|
|
# DisableFormat: false
|
|
|
|
# ExperimentalAutoDetectBinPacking: false
|
2017-12-06 21:34:40 +01:00
|
|
|
# FixNamespaceComments: true
|
|
|
|
# ForEachMacros:
|
|
|
|
# - foreach
|
|
|
|
# - Q_FOREACH
|
|
|
|
# - BOOST_FOREACH
|
2018-07-18 16:24:33 +02:00
|
|
|
# IncludeBlocks: Preserve
|
2017-01-15 22:21:15 +01:00
|
|
|
IncludeCategories:
|
|
|
|
- Regex: '".*"'
|
|
|
|
Priority: 1
|
|
|
|
- Regex: '^<.*\.h>'
|
|
|
|
Priority: 2
|
|
|
|
- Regex: '^<.*'
|
|
|
|
Priority: 3
|
2017-12-06 21:34:40 +01:00
|
|
|
# IncludeIsMainRegex: '(Test)?$'
|
2017-01-15 22:21:15 +01:00
|
|
|
IndentCaseLabels: true
|
2018-07-18 16:24:33 +02:00
|
|
|
# IndentPPDirectives: None
|
2017-01-15 22:21:15 +01:00
|
|
|
IndentWidth: 4
|
|
|
|
# IndentWrappedFunctionNames: false
|
|
|
|
# JavaScriptQuotes: Leave
|
|
|
|
# JavaScriptWrapImports: true
|
|
|
|
# KeepEmptyLinesAtTheStartOfBlocks: true
|
|
|
|
# MacroBlockBegin: ''
|
|
|
|
# MacroBlockEnd: ''
|
|
|
|
# MaxEmptyLinesToKeep: 1
|
|
|
|
# NamespaceIndentation: None
|
2017-12-06 21:34:40 +01:00
|
|
|
# PenaltyBreakAssignment: 2
|
2017-01-15 22:21:15 +01:00
|
|
|
# PenaltyBreakBeforeFirstCallParameter: 19
|
|
|
|
# PenaltyBreakComment: 300
|
|
|
|
# PenaltyBreakFirstLessLess: 120
|
|
|
|
# PenaltyBreakString: 1000
|
|
|
|
# PenaltyExcessCharacter: 1000000
|
|
|
|
# PenaltyReturnTypeOnItsOwnLine: 60
|
2017-12-06 21:34:40 +01:00
|
|
|
# PointerAlignment: Right
|
2018-07-18 16:24:33 +02:00
|
|
|
# RawStringFormats:
|
|
|
|
# - Delimiter: pb
|
|
|
|
# Language: TextProto
|
|
|
|
# BasedOnStyle: google
|
2017-01-15 22:21:15 +01:00
|
|
|
# ReflowComments: true
|
2017-12-06 21:34:40 +01:00
|
|
|
# SortIncludes: true
|
|
|
|
# SortUsingDeclarations: true
|
2017-01-15 22:21:15 +01:00
|
|
|
# SpaceAfterCStyleCast: false
|
2017-12-06 21:34:40 +01:00
|
|
|
# SpaceAfterTemplateKeyword: true
|
2017-01-15 22:21:15 +01:00
|
|
|
# SpaceBeforeAssignmentOperators: true
|
|
|
|
# SpaceBeforeParens: ControlStatements
|
|
|
|
# SpaceInEmptyParentheses: false
|
|
|
|
# SpacesBeforeTrailingComments: 1
|
|
|
|
# SpacesInAngles: false
|
|
|
|
# SpacesInContainerLiterals: true
|
|
|
|
# SpacesInCStyleCastParentheses: false
|
|
|
|
# SpacesInParentheses: false
|
|
|
|
# SpacesInSquareBrackets: false
|
|
|
|
TabWidth: 4
|
|
|
|
UseTab: Always
|
2017-12-06 21:34:40 +01:00
|
|
|
---
|
|
|
|
### C++ specific config ###
|
|
|
|
Language: Cpp
|
2021-05-04 14:20:36 +02:00
|
|
|
Standard: c++14
|
2017-12-06 21:34:40 +01:00
|
|
|
---
|
|
|
|
### ObjC specific config ###
|
|
|
|
Language: ObjC
|
|
|
|
ObjCBlockIndentWidth: 4
|
|
|
|
# ObjCSpaceAfterProperty: false
|
|
|
|
# ObjCSpaceBeforeProtocolList: true
|
2017-12-10 01:16:07 +01:00
|
|
|
---
|
|
|
|
### Java specific config ###
|
|
|
|
Language: Java
|
|
|
|
# BreakAfterJavaFieldAnnotations: false
|
2020-05-05 10:26:19 +02:00
|
|
|
JavaImportGroups: ['org.godotengine', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax']
|
2017-01-15 22:21:15 +01:00
|
|
|
...
|