From d5d379fe2a0f266d732087098ec665f472654b7d Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Wed, 30 Jun 2021 16:42:59 +0200 Subject: [PATCH] Add preliminary .clang-format file. Our current coding style is not very uniform and we don't seem to be following any particular standard, even though there are some patterns we more or less follow. This attempts to mostly reproduce our current style. However, it still introduces quite a lot of changes since clang-format doesn't yet support dangling parentheses[*] (where the closing parenthesis of a parameter list goes on its own line). [*]: https://reviews.llvm.org/D33029 --- .clang-format | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..513238f --- /dev/null +++ b/.clang-format @@ -0,0 +1,11 @@ +--- +BasedOnStyle: WebKit +IndentWidth: 4 +ColumnLimit: 80 +--- +Language: cpp +PointerAlignment: Middle +IndentCaseLabels: true +BinPackArguments: true +SpaceAfterCStyleCast: true +---