From e6bef93d73665d9a8e0e86dfafbfa53667fdddee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20M=C3=ADchal?= Date: Wed, 9 Apr 2025 11:31:37 +0300 Subject: [PATCH] .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/ --- .clang-format | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index fe2521d284..1d27824df1 100644 --- a/.clang-format +++ b/.clang-format @@ -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