Skip to content

Commit

Permalink
Apply Rebel coding style (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielaOrtner authored Nov 30, 2023
2 parents 5fd5a51 + ebbfe49 commit 870aeb0
Show file tree
Hide file tree
Showing 2,011 changed files with 887,877 additions and 686,415 deletions.
146 changes: 68 additions & 78 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -6,67 +6,67 @@
# Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
# AlignArrayOfStructures: None
AlignConsecutiveAssignments: None
# Enabled: false
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Left
AlignConsecutiveAssignments:
Enabled: true
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCompound: false
AcrossComments: true
AlignCompound: true
# PadOperators: true
AlignConsecutiveBitFields: None
# Enabled: false
AlignConsecutiveBitFields:
Enabled: true
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCompound: false
# PadOperators: false
AlignConsecutiveDeclarations: None
AcrossComments: true
AlignCompound: true
PadOperators: true
# AlignConsecutiveDeclarations:
# Enabled: false
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCompound: false
# PadOperators: false
AlignConsecutiveMacros: None
AlignConsecutiveMacros:
Enabled: true
# AcrossEmptyLines: false
AcrossComments: true
AlignCompound: true
PadOperators: true
# AlignConsecutiveShortCaseStatements:
# Enabled: false
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCompound: false
# PadOperators: false
# AlignConsecutiveShortCaseStatements:
# Enabled: false
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCaseColons: false
# AlignCaseColons: false
# AlignEscapedNewlines: Right
AlignOperands: DontAlign
AlignTrailingComments: false
AlignOperands: AlignAfterOperator
# AlignTrailingComments:
# Kind: Always
# OverEmptyLines: 0
# AllowAllArgumentsOnNextLine: true
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
# AllowShortBlocksOnASingleLine: Never
AllowShortBlocksOnASingleLine: Empty
# AllowShortCaseLabelsOnASingleLine: false
# AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
# AllowShortIfStatementsOnASingleLine: Never
# AllowShortLambdasOnASingleLine: All
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Empty
# AllowShortLoopsOnASingleLine: false
# AlwaysBreakAfterDefinitionReturnType: None
# AlwaysBreakAfterReturnType: None
# AlwaysBreakBeforeMultilineStrings: false
# AlwaysBreakTemplateDeclarations: MultiLine
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
# AttributeMacros:
# BinPackArguments: true
# BinPackParameters: true
BinPackArguments: false
BinPackParameters: false
# BitFieldColonSpacing: Both
# BraceWrapping:
BraceWrapping:
# AfterCaseLabel: false
# AfterClass: false
# AfterControlStatement: Never
# AfterEnum: false
# AfterExternBlock: false
# AfterFunction: false
# AfterNamespace: false
AfterNamespace: true
# AfterObjCDeclaration: false
# AfterStruct: false
# AfterUnion: false
Expand All @@ -75,30 +75,30 @@ AllowShortFunctionsOnASingleLine: Inline
# BeforeLambdaBody: false
# BeforeWhile: false
# IndentBraces: false
# SplitEmptyFunction: true
# SplitEmptyRecord: true
# SplitEmptyNamespace: true
# BreakAfterAttributes: Never
# BreakAfterJavaFieldAnnotations: false
# BreakArrays: true
# BreakBeforeBinaryOperators: None
# BreakBeforeBraces: Attach
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakAfterAttributes: Always
BreakAfterJavaFieldAnnotations: true
BreakArrays: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
# BreakBeforeConceptDeclarations: Always
# BreakBeforeInlineASMColon: OnlyMultiline
# BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
# BreakInheritanceList: BeforeColon
BreakInheritanceList: AfterColon
# BreakStringLiterals: true
ColumnLimit: 0
# CommentPragmas: '^ IWYU pragma:'
# ColumnLimit: 80
CommentPragmas: ''
# CompactNamespaces: false
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
Cpp11BracedListStyle: false
# ConstructorInitializerIndentWidth: 4
# ContinuationIndentWidth: 4
# Cpp11BracedListStyle: true
# DerivePointerAlignment: false
# DisableFormat: false
# EmptyLineAfterAccessModifier: Never
# EmptyLineBeforeAccessModifier: LogicalBlock
EmptyLineBeforeAccessModifier: Always
# ExperimentalAutoDetectBinPacking: false
# FixNamespaceComments: true
# ForEachMacros:
Expand All @@ -107,21 +107,17 @@ Cpp11BracedListStyle: false
# - BOOST_FOREACH
# IfMacros:
# - KJ_IF_MAYBE
# IncludeBlocks: Preserve
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '".*"'
Priority: 1
# SortPriority: 0
# CaseSensitive: false
- Regex: '^<.*\.h>'
Priority: 2
# SortPriority: 0
# CaseSensitive: false
- Regex: '^<.*'
Priority: 3
Priority: 2
# SortPriority: 0
# CaseSensitive: false
# IncludeIsMainRegex: '(Test)?$'
IncludeIsMainRegex: '$'
# IncludeIsMainSourceRegex: ''
# IndentAccessModifiers: false
# IndentCaseBlocks: false
Expand All @@ -132,9 +128,9 @@ IndentCaseLabels: true
# IndentRequiresClause: true
IndentWidth: 4
# IndentWrappedFunctionNames: false
# InsertBraces: false
# InsertNewlineAtEOF: false
# InsertTrailingCommas: None
InsertBraces: true
InsertNewlineAtEOF: true
InsertTrailingCommas: Wrapped
# IntegerLiteralSeparator:
# Binary: 0
# BinaryMinDigits: 0
Expand All @@ -143,15 +139,15 @@ IndentWidth: 4
# Hex: 0
# HexMinDigits: 0
JavaImportGroups: ['com.rebeltoolbox', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax']
# JavaScriptQuotes: Leave
JavaScriptQuotes: Single
# JavaScriptWrapImports: true
# KeepEmptyLinesAtEOF: false
KeepEmptyLinesAtTheStartOfBlocks: false
# LambdaBodyIndentation: Signature
# LineEnding: DeriveLF
# Macros:
# MacroBlockBegin: ''
# MacroBlockEnd: ''
# Macros:
# MaxEmptyLinesToKeep: 1
# NamespaceIndentation: None
# NamespaceMacros:
Expand All @@ -160,18 +156,18 @@ ObjCBlockIndentWidth: 4
# ObjCBreakBeforeNestedBlockParam: true
# ObjCSpaceAfterProperty: false
# ObjCSpaceBeforeProtocolList: true
# PackConstructorInitializers: BinPack
PackConstructorInitializers: CurrentLine
# PenaltyBreakAssignment: 2
# PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakBeforeFirstCallParameter: 0
# PenaltyBreakComment: 300
# PenaltyBreakFirstLessLess: 120
# PenaltyBreakOpenParenthesis: 0
# PenaltyBreakString: 1000
# PenaltyBreakTemplateDeclaration: 10
# PenaltyExcessCharacter: 1000000
# PenaltyIndentedWhitespace: 0
# PenaltyReturnTypeOnItsOwnLine: 60
# PointerAlignment: Right
PenaltyReturnTypeOnItsOwnLine: 1000
PointerAlignment: Left
# PPIndentWidth: -1
# QualifierAlignment: Leave
# QualifierOrder:
Expand All @@ -183,11 +179,11 @@ ObjCBlockIndentWidth: 4
# RemoveSemicolon: false
# RequiresClausePosition: OwnLine
# RequiresExpressionIndentation: OuterScope
# SeparateDefinitionBlocks: Leave
# ShortNamespaceLines: 1
SeparateDefinitionBlocks: Always
ShortNamespaceLines: 0
# SortIncludes: CaseSensitive
# SortJavaStaticImport: Before
# SortUsingDeclarations: LexicographicNumeric
SortUsingDeclarations: Lexicographic
# SpaceAfterCStyleCast: false
# SpaceAfterLogicalNot: false
# SpaceAfterTemplateKeyword: true
Expand All @@ -212,18 +208,13 @@ ObjCBlockIndentWidth: 4
# SpaceBeforeRangeBasedForLoopColon: true
# SpaceBeforeSquareBrackets: false
# SpaceInEmptyBlock: false
# SpaceInEmptyParentheses: false
# SpacesBeforeTrailingComments: 1
# SpacesInAngles: Never
# SpacesInConditionalStatement: false
# SpacesInContainerLiterals: true
# SpacesInCStyleCastParentheses: false
## TODO: We want to use a min of 1, but
## we need to fix comment capitalization.
SpacesInLineCommentPrefix:
Minimum: 0
Maximum: -1
# SpacesInParens: Never
# Minimum: 1
Maximum: 1
# SpacesInParens: Never
# SpacesInParensOptions:
# InConditionalStatements: false
# InCStyleCasts: false
Expand All @@ -239,7 +230,6 @@ Standard: c++14
TabWidth: 4
# TypeNames:
# TypenameMacros:
UseCRLF: false
UseTab: Always
# UseTab: Never
# VerilogBreakBetweenInstancePorts: true
# WhitespaceSensitiveMacros:
Loading

0 comments on commit 870aeb0

Please sign in to comment.