.clang-format: Adjust bin-packing of parameters and arguments

As per GIMP's style documentation [0]:

- put function parameters on their own lines,
- pack function arguments to fit line and only then wrap.

[0] https://developer.gimp.org/core/coding_style/
This commit is contained in:
Ondřej Míchal 2025-04-09 11:31:37 +03:00
parent 7849f8cedb
commit e6bef93d73

View file

@ -15,9 +15,11 @@ AlignConsecutiveBitFields: AcrossComments
AlignConsecutiveMacros: AcrossComments
AlignEscapedNewlines: Left
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AlwaysBreakAfterReturnType: AllDefinitions
BinPackParameters: false
BinPackArguments: true
BinPackParameters: AlwaysOnePerLine
BreakBeforeBinaryOperators: None
BreakBeforeBraces: GNU
BreakBeforeTernaryOperators: false