Added clang-format file

This commit is contained in:
Mattias Lasersköld 2020-04-05 17:16:27 +02:00
parent f6efaf4468
commit e37e59c479
3 changed files with 26 additions and 7 deletions

18
.clang-format Normal file
View File

@ -0,0 +1,18 @@
# Clang format based on https://github.com/mls-m5/matgui/blob/master/.clang-format
Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 4
SortIncludes: true
AccessModifierOffset: -4
AlwaysBreakTemplateDeclarations: true
AllowShortFunctionsOnASingleLine: None
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Custom
BraceWrapping:
BeforeCatch: true
BeforeElse: true
AlwaysBreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 1000000

View File

@ -1,4 +1,5 @@
{ {
"editor.formatOnSave": true,
"files.associations": { "files.associations": {
"array": "cpp", "array": "cpp",
"deque": "cpp", "deque": "cpp",