lpac/.clang-format
Coelacanthus c772895f2f chore: add clang-format config
Base on LLVM style, with a little change:
* IndentWidth = 4, inherit from our original style.
* 120 column limitation.
* AlignEscapeNewlines = Left, Right is too far from code since we use
  120 column limitation.
* BreakBeforeBinaryOperators = NonAssignment, After is right for '=',
  but for other operators we prefer to break before them.
* IndentPPDirective = AfterHash, with hierarchy and hash will align.

Signed-off-by: Coelacanthus <uwu@coelacanthus.name>
2025-08-15 23:11:39 +08:00

10 lines
201 B
YAML

Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 120
AlignEscapedNewlines: Left
BreakBeforeBinaryOperators: NonAssignment
IndentPPDirectives: AfterHash
# vim: ft=yaml
# kate: syntax yaml;