nix-config/templates/c++-bazel/.clang-format
Bruno BELANYI 314cd4956b
All checks were successful
ci/woodpecker/push/check Pipeline was successful
WIP: Bazel template
2024-04-05 13:53:52 +00:00

24 lines
459 B
YAML

# 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
---