Add clang-format rules

Since we now have an external scanner, might as well have good looking
code.
This commit is contained in:
Bruno BELANYI 2022-06-02 16:56:24 +02:00
parent 50a0eaa071
commit 5be01b43fb

21
.clang-format Normal file
View file

@ -0,0 +1,21 @@
---
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
# Force pointers to the type for C.
DerivePointerAlignment: false
PointerAlignment: Right
# Short functions should not be on a single line, unless empty
AllowShortFunctionsOnASingleLine: Empty
# It makes more sense this way
BreakBeforeBinaryOperators: All
BreakBeforeTernaryOperators: true
# Aesthetic
AlignOperands: AlignAfterOperator
BinPackParameters: false
---
# vim: ft=yaml