From: Matthias Maennich Date: Tue, 21 May 2019 04:38:05 +0000 (+0100) Subject: .clang-format: Add more options for match existing coding style X-Git-Tag: libabigail-1.7~87 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=fb70149cb1bacb62209180d5ee59ba7022c7ec85;p=libabigail.git .clang-format: Add more options for match existing coding style 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 --- diff --git a/.clang-format b/.clang-format index e63b6514..54d573a5 100644 --- a/.clang-format +++ b/.clang-format @@ -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