Update .clang-format, .editorconfig and .gitignore

This commit is contained in:
Octavian Dima 2022-07-19 22:54:39 +02:00
parent 4cf68f86a4
commit f2d67bcf13
3 changed files with 4 additions and 27 deletions

View File

@ -5,32 +5,9 @@ Language: Cpp
AccessModifierOffset: -4
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
KeepEmptyLinesAtTheStartOfBlocks: false
PointerAlignment: Left
SpaceAfterTemplateKeyword: false
IncludeCategories:
- Regex: 'stdafx'
Priority: -1
- Regex: 'Windows'
Priority: 0
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true

View File

@ -10,8 +10,8 @@ trim_trailing_whitespace = true
[*.{c,h,cpp,hpp}]
indent_size = 4
[*.md]
[*.{md,yml}]
indent_size = 2
[*.yml]
[{CMakeLists.txt,*.cmake}]
indent_size = 2

2
.gitignore vendored
View File

@ -362,4 +362,4 @@ MigrationBackup/
FodyWeavers.xsd
### Custom ###
build
build/