This commit is contained in:
Simon Hardt
2022-02-22 23:22:29 +01:00
commit 722fce888d
5 changed files with 113 additions and 0 deletions

71
.clang-format Normal file
View File

@@ -0,0 +1,71 @@
Language: Cpp
TabWidth: 4
UseTab: Never
AccessModifierOffset: -4
MaxEmptyLinesToKeep: 4
ColumnLimit: 100
ContinuationIndentWidth: 2
IndentWidth: 4
BinPackArguments: false
AlignConsecutiveAssignments: true
AlignTrailingComments: true
AlignAfterOpenBracket: Align
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterStruct: true
BeforeCatch: true
AfterControlStatement: "Always"
AfterFunction: true
AfterNamespace: true
AfterUnion: true
SplitEmptyFunction: true
SplitEmptyNamespace: true
SplitEmptyRecord: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
BreakStringLiterals: true
Cpp11BracedListStyle: false
FixNamespaceComments: true
IncludeBlocks: Preserve
SortIncludes: true
IndentCaseLabels: true
KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: All
PointerAlignment: Left
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeRangeBasedForLoopColon: true
SpacesBeforeTrailingComments: 4
Standard: Auto