]> sourceware.org Git - libabigail.git/commitdiff
.clang-format: Add more options for match existing coding style
authorMatthias Maennich <maennich@google.com>
Tue, 21 May 2019 04:38:05 +0000 (05:38 +0100)
committerDodji Seketeli <dodji@redhat.com>
Wed, 22 May 2019 12:34:31 +0000 (14:34 +0200)
Add options for constructor intializers, using declarations and
consecutive declarations.

Even though sorting using declarations could be useful, it changes too
much existing code as of now.

* .clang-format: Add options for ConstructorInitializers
Set SortUsingDeclarations=false
Set AlignConsecutiveDeclarations=true

Signed-off-by: Matthias Maennich <maennich@google.com>
.clang-format

index e63b65144a2be6ae815de16a23099f877cc41451..54d573a5937f39c6e550114fa3d2c536fdde2f4a 100644 (file)
@@ -1,9 +1,14 @@
 ---
 BasedOnStyle: GNU
+AlignConsecutiveDeclarations: true
 AlwaysBreakAfterReturnType: All
+BreakConstructorInitializers: BeforeColon
+ConstructorInitializerAllOnOneLineOrOnePerLine: true
+ConstructorInitializerIndentWidth: 2
 BinPackParameters: false
 BreakStringLiterals: false
 PointerAlignment: Left
+SortUsingDeclarations: false
 SpaceBeforeParens: ControlStatements
 TabWidth: 8
 UseTab: Always
This page took 0.034498 seconds and 5 git commands to generate.