initial version of a clang format file that matches quite good with the existing coding style (#436)

Co-authored-by: Daniel B <daniel-brosche@users.noreply.github.com>
This commit is contained in:
Daniel B 2021-10-01 19:44:44 +02:00 committed by GitHub
parent a6d8a6d1ef
commit bb28930eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.clang-format Normal file
View File

@ -0,0 +1,25 @@
---
Language: Cpp
SortIncludes: false
BasedOnStyle: Chromium
BreakBeforeBraces: Stroustrup
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
ConstructorInitializerIndentWidth: '2'
ColumnLimit: '150'
ContinuationIndentWidth: '2'
TabWidth: '2'
IndentWidth: '2'
AccessModifierOffset : '-2'
IndentCaseLabels: false
Cpp11BracedListStyle: 'true'
...