add .clang-format

This commit is contained in:
Georgi Gerganov
2021-01-10 12:29:20 +02:00
parent ec4a1be281
commit 67f54dccde
2 changed files with 15 additions and 0 deletions

14
.clang-format Normal file
View File

@@ -0,0 +1,14 @@
---
BasedOnStyle: Google
IndentWidth: '4'
DerivePointerAlignment: false
PointerAlignment: Middle
ColumnLimit: 160
AllowShortFunctionsOnASingleLine: false
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false'
SpaceAfterCStyleCast: 'true'
...

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@ build
build-em
compile_commands.json
.clangd
.vimspector.json