Added clang-format config and some reformatting.

This commit is contained in:
Steffen Schuemann 2018-09-11 10:06:41 +02:00
parent 6d4f5b3539
commit f46f922ed5
2 changed files with 41 additions and 16 deletions

25
.clang-format Normal file
View File

@ -0,0 +1,25 @@
---
Language: Cpp
BasedOnStyle: Chromium
AccessModifierOffset: '-4'
IndentWidth: '4'
ColumnLimit: 256
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakConstructorInitializers: BeforeComma
ConstructorInitializerAllOnOneLineOrOnePerLine: false
...