Add clang-format rules
Since we now have an external scanner, might as well have good looking code.
This commit is contained in:
parent
50a0eaa071
commit
5be01b43fb
21
.clang-format
Normal file
21
.clang-format
Normal 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
|
Loading…
Reference in a new issue