nix-config/templates/c++-bazel/.clang-format
Bruno BELANYI 06cc34dc1c
All checks were successful
ci/woodpecker/push/check Pipeline was successful
WIP: Bazel template
WIP: use new MODULE.bazel system.
WIP: use `.bazel` extension on BUILD files.
2024-05-13 10:56:08 +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
---