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).
This commit is contained in:
Philipp Wagner 2019-09-11 10:36:19 +01:00 committed by Philipp Wagner
parent 85ae06d054
commit 6afc7eae16
1 changed files with 5 additions and 0 deletions

5
.clang-format Normal file
View File

@ -0,0 +1,5 @@
BasedOnStyle: Google
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
DerivePointerAlignment: false
PointerAlignment: Right