Dotfiles: add dotfiles

This commit is contained in:
2022-04-11 13:49:25 +02:00
parent 4416740531
commit da23bc10f3
3 changed files with 105 additions and 0 deletions

47
.clang-format Normal file
View File

@@ -0,0 +1,47 @@
Language: Cpp
IndentWidth: 4
BreakBeforeBraces: Custom
NamespaceIndentation: All
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Never
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
SortIncludes: true
IncludeBlocks: Preserve
IncludeCategories:
- Regex: "<(.*)>"
Priority: 2
SortPriority: 2
- Regex: "\"(.*)\""
Priority: 3
SortPriority: 3
IndentCaseLabels: true
IndentPPDirectives: BeforeHash
DerivePointerAlignment: false
PointerAlignment: Left
AllowAllConstructorInitializersOnNextLine: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
BreakConstructorInitializers: BeforeColon
FixNamespaceComments: true
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
ReflowComments: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
ColumnLimit: 130
AllowShortFunctionsOnASingleLine: None
ConstructorInitializerIndentWidth: 4