From 6afc7eae16bc0e7aaa67c2c55acde02fbb9774ac Mon Sep 17 00:00:00 2001 From: Philipp Wagner Date: Wed, 11 Sep 2019 10:36:19 +0100 Subject: [PATCH] Add lowRISC standard clang-format file We use the Google C++ coding style (https://google.github.io/styleguide/cppguide.html) with some clarifications to make it more applicable for C, inspired by BoringSSL (https://boringssl.googlesource.com/boringssl/+/HEAD/STYLE.md). --- .clang-format | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..a2c542c4 --- /dev/null +++ b/.clang-format @@ -0,0 +1,5 @@ +BasedOnStyle: Google +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +DerivePointerAlignment: false +PointerAlignment: Right