ci: Improve clang-format style
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jul 2021 19:53:37 +0000 (15:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 9 Sep 2022 23:43:27 +0000 (19:43 -0400)
Add

AlignConsecutiveDeclarations: true
PointerAlignment: Right

which will produce the style we want with llvm 13.

.clang-format

index 13fd0fbd44e0b4247d1d4b0805e264f0b93763a1..51e8ce8d5b25a51b8dc8f5f3b3c28238fa6c8217 100644 (file)
@@ -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