Message ID | 20200515065012.206759-1-gprocida@google.com |
---|---|
State | Committed |
Headers |
Return-Path: <libabigail-bounces@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EF792397304C; Fri, 15 May 2020 06:50:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF792397304C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1589525423; bh=vawUuAaNVl7SCDoDpuMyPzAgp7yu+lXnxCX0bg1YdKU=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Help: List-Subscribe:From:Reply-To:Cc:From; b=ENgWeVC3FJrEdykbCXN8NIaGKO0eHZxEG2LL78BN3I15E9N2ejrQ+YCwiUN02re+s QezsNrAGRQeC3pr2ENGnXJJNGc459OfVfKc5UTmjcZ6Q45XcDXxq/vSYCD3gZdtENh SA6euMs8FUm+4r5lJUJe9zDIgUMX/LO3SkVyrk3k= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from mail-qt1-x849.google.com (mail-qt1-x849.google.com [IPv6:2607:f8b0:4864:20::849]) by sourceware.org (Postfix) with ESMTPS id 3C0E6397304C for <libabigail@sourceware.org>; Fri, 15 May 2020 06:50:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3C0E6397304C Received: by mail-qt1-x849.google.com with SMTP id m9so1425474qtf.2 for <libabigail@sourceware.org>; Thu, 14 May 2020 23:50:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=vawUuAaNVl7SCDoDpuMyPzAgp7yu+lXnxCX0bg1YdKU=; b=CCyFWlI0U+6zhKgqPAmFi27VV90fYpRdrNMzhlkQnziucj5GWzkgahLqS1EN4DXZt6 iJhAwlZhTLrcXBo8uVbgD+kKK45lwJwIeil0dgEFlovMbL7FjnVfg1a2WxSgE3e900yN jTCKfsPGnxEvvD//OQNgOVy9RCq4EnETHT2qUm5hSJ8vkn5vfCBDZ3ONNQtLfwaIy6aW 8tIRtW6gZRDtPHCoG8ZM0sbfX3R5m7zm5iNy3xMK9UXG+ymDHeMAIHAnhrpIZaeqsulg mVjSbYoLABgYbz1gFv/zOVDLEbELy9DOFxoWa7W7ezY4VgD5MEnl0PfTBDdj++5dYq7w mxqQ== X-Gm-Message-State: AOAM530a+gj7LngGgXgdEae36/Dhkpf09KSvyyG7nSr8yCMtOxGFooQP bPTJHorGVZ2lLQKyKncRRQ282i0TLwGmqbHxX39DhGbDnP1sGQlGAFJRAsXLP0FZB3cAcxGKx3g YEbePsV6D41Aa/1H5mky+I7+s8CqAQXqMVpIZaCSfQAlJBn27EF8rY/bBIY3U8u2ijkUbV9Y= X-Google-Smtp-Source: ABdhPJzhGiK46jIj3nTN8x/rzXks4zJpuv/iLaSNw2qFBwce7KlglTA5GSX6jk25KxOTXZL5PIStc3zPoH0TcA== X-Received: by 2002:a0c:b44c:: with SMTP id e12mr2072173qvf.30.1589525420715; Thu, 14 May 2020 23:50:20 -0700 (PDT) Date: Fri, 15 May 2020 07:50:12 +0100 Message-Id: <20200515065012.206759-1-gprocida@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.26.2.761.g0e0b3e54be-goog Subject: [PATCH] clang-format: set continuation indentation to 2 To: libabigail@sourceware.org, maennich@google.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-23.7 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project <libabigail.sourceware.org> List-Unsubscribe: <http://sourceware.org/mailman/options/libabigail>, <mailto:libabigail-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libabigail/> List-Help: <mailto:libabigail-request@sourceware.org?subject=help> List-Subscribe: <http://sourceware.org/mailman/listinfo/libabigail>, <mailto:libabigail-request@sourceware.org?subject=subscribe> From: Giuliano Procida via Libabigail <libabigail@sourceware.org> Reply-To: Giuliano Procida <gprocida@google.com> Cc: kernel-team@android.com, gprocida@google.com Errors-To: libabigail-bounces@sourceware.org Sender: "Libabigail" <libabigail-bounces@sourceware.org> |
Series |
clang-format: set continuation indentation to 2
|
|
Commit Message
Giuliano Procida
May 15, 2020, 6:50 a.m. UTC
This is a further tweak to the clang-format rules, bringing them
(on average) closer to the existing corpus of code.
The existing code mostly uses an indentaton of 2 spaces, rather than
4, for expressions broken across lines. There are exceptions such as
conditional expressions that are initialisers but clang-format's
indentation may be preferable to emacs' zero indentation here.
* .clang-format: Set ContinuationIndentWidth to 2.
Signed-off-by: Giuliano Procida <gprocida@google.com>
---
.clang-format | 1 +
1 file changed, 1 insertion(+)
Comments
On Fri, May 15, 2020 at 07:50:12AM +0100, Giuliano Procida wrote: >This is a further tweak to the clang-format rules, bringing them >(on average) closer to the existing corpus of code. > >The existing code mostly uses an indentaton of 2 spaces, rather than >4, for expressions broken across lines. There are exceptions such as >conditional expressions that are initialisers but clang-format's >indentation may be preferable to emacs' zero indentation here. > > * .clang-format: Set ContinuationIndentWidth to 2. > >Signed-off-by: Giuliano Procida <gprocida@google.com> Reviewed-by: Matthias Maennich <maennich@google.com> Cheers, Matthias >--- > .clang-format | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/.clang-format b/.clang-format >index f3a039c6..1dd679d4 100644 >--- a/.clang-format >+++ b/.clang-format >@@ -5,6 +5,7 @@ AlwaysBreakAfterReturnType: All > BreakConstructorInitializers: BeforeColon > ConstructorInitializerAllOnOneLineOrOnePerLine: true > ConstructorInitializerIndentWidth: 2 >+ContinuationIndentWidth: 2 > BinPackParameters: false > BreakStringLiterals: false > PointerAlignment: Left >-- >2.26.2.761.g0e0b3e54be-goog >
Giuliano Procida <gprocida@google.com> a écrit: > This is a further tweak to the clang-format rules, bringing them > (on average) closer to the existing corpus of code. > > The existing code mostly uses an indentaton of 2 spaces, rather than > 4, for expressions broken across lines. There are exceptions such as > conditional expressions that are initialisers but clang-format's > indentation may be preferable to emacs' zero indentation here. > > * .clang-format: Set ContinuationIndentWidth to 2. > > Signed-off-by: Giuliano Procida <gprocida@google.com> Acked-By: Dodji Seketeli <dodji@redhat.com> Applied to master, thanks! Cheers,
diff --git a/.clang-format b/.clang-format index f3a039c6..1dd679d4 100644 --- a/.clang-format +++ b/.clang-format @@ -5,6 +5,7 @@ AlwaysBreakAfterReturnType: All BreakConstructorInitializers: BeforeColon ConstructorInitializerAllOnOneLineOrOnePerLine: true ConstructorInitializerIndentWidth: 2 +ContinuationIndentWidth: 2 BinPackParameters: false BreakStringLiterals: false PointerAlignment: Left