From: Matthias Clasen Date: Mon, 19 Jul 2021 19:53:37 +0000 (-0400) Subject: ci: Improve clang-format style X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~2^2~14^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c8bdf2ac2645b72ee80a677650cf5bc7dd65d83;p=gtk4.git ci: Improve clang-format style Add AlignConsecutiveDeclarations: true PointerAlignment: Right which will produce the style we want with llvm 13. --- diff --git a/.clang-format b/.clang-format index 13fd0fbd44..51e8ce8d5b 100644 --- a/.clang-format +++ b/.clang-format @@ -4,6 +4,8 @@ AlwaysBreakAfterDefinitionReturnType: All BreakBeforeBinaryOperators: None BinPackParameters: false SpaceAfterCStyleCast: true +AlignConsecutiveDeclarations: true +PointerAlignment: Right # Our column limit is actually 80, but setting that results in clang-format # making a lot of dubious hanging-indent choices; disable it and assume the # developer will line wrap appropriately. clang-format will still check