From 67f54dccde28ad058c46e79049321921dd431862 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 10 Jan 2021 12:29:20 +0200 Subject: [PATCH] add .clang-format --- .clang-format | 14 ++++++++++++++ .gitignore | 1 + 2 files changed, 15 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..645ff92 --- /dev/null +++ b/.clang-format @@ -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' + +... diff --git a/.gitignore b/.gitignore index df4c1d5..5924e8a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build build-em compile_commands.json .clangd +.vimspector.json