clang-format: add configuration
This commit is contained in:
parent
3e790dbb87
commit
669a9f5fa2
23
.clang-format
Normal file
23
.clang-format
Normal file
|
@ -0,0 +1,23 @@
|
|||
# vim: ft=yaml
|
||||
---
|
||||
BasedOnStyle: LLVM
|
||||
IndentWidth: 4
|
||||
---
|
||||
Language: Cpp
|
||||
# Force pointers to the type for C++.
|
||||
DerivePointerAlignment: false
|
||||
PointerAlignment: Left
|
||||
|
||||
# Short functions should not be on a single line, unless empty
|
||||
AllowShortFunctionsOnASingleLine: Empty
|
||||
|
||||
# Make them level
|
||||
AccessModifierOffset: -4
|
||||
|
||||
# It makes more sense this way
|
||||
BreakBeforeBinaryOperators: All
|
||||
BreakBeforeTernaryOperators: true
|
||||
|
||||
# Aesthetic
|
||||
AlignOperands: AlignAfterOperator
|
||||
---
|
Loading…
Reference in a new issue