Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp238696pxu; Thu, 22 Oct 2020 22:12:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfp43p7MBdl6E6CGCtYZpyN+cvEl/rWpV1D4SSFp9E1+/BToYaU7NY44LDcKJKuNkFL2UD X-Received: by 2002:a05:6402:1148:: with SMTP id g8mr566548edw.271.1603429973233; Thu, 22 Oct 2020 22:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603429973; cv=none; d=google.com; s=arc-20160816; b=HFJHEgqHym3NEdJOAql45L84qWjCKuM1+e2HJBqNy1WGZ7SdXStJFed4i2n5LGXmhn uhtZ1X5Ty/bBJIdKLGWl+k7RbfqlXoxRUjDpFSETJjYv+rg6AvMCWqrXRpb8oUj/k1Rr P/cBcLyHUfA1/l6+bbVsp5hQ/Xdj9ha9s6y5EodKiuZkZxnYGNiHuUT/slrU3i+63r5s U7OROy+O7xgq3PuFVJ5pVuLV+36iKNuuu7mk26ZOxpEWt8xUsYPTfK+NqLSA9Fg+v8a5 id/WRD4azHtbtbNdrjuhuPPn7/P3SGbjYGFVT0eeGrWhAfOXZEWOuVfanTQ5wLdL5IcF ya7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pDLJnDFI5+2hJixggp+hQ+Cexb1z+zdD3F/VB0WCxGY=; b=oC9H7woB4HiG2BqXUbqnd2Rm7ZRvmvWD4QCRVuev4BS/bZV2jdb6vY9IGvr59+UFRw rWn8Eu8PYKECKuGC2pwGrOU31kuoSohtPCYrVo8sa0WAOqNDpDg6zYh7+VoqBV2LcTqn wdd+6qHcN8WKza9vdogSWSlpOuoAduLZnUGyHGS+jmlgeu3MiQa1mjBf+CrPULCuM3sR oE67CjdtokCojFDU2jZljDk+TsRWXWuKKMGDCge99Yz6iwd2fjh7oFJZbq0E/DeHzrY2 fkJJNWcEiGa5YrYP31uluzmRGOEanBhsB1hL6l72sRqiGyYoYy3+BADoSC6IorVDG2iQ dL0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=icUmV87M; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 18si162602ejv.717.2020.10.22.22.12.29; Thu, 22 Oct 2020 22:12:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=icUmV87M; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S368060AbgJVUQq (ORCPT + 99 others); Thu, 22 Oct 2020 16:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S367981AbgJVUQp (ORCPT ); Thu, 22 Oct 2020 16:16:45 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE145C0613CE for ; Thu, 22 Oct 2020 13:16:43 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id ce10so4194016ejc.5 for ; Thu, 22 Oct 2020 13:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pDLJnDFI5+2hJixggp+hQ+Cexb1z+zdD3F/VB0WCxGY=; b=icUmV87Mlo8IRuLWlWX0Q8a0BJZD76oadQnkj3WhLnjyHJVzIWe+VLbJxlGT/WkIch xK1dIF/XekCkRzBq29KEBmN35NdA1D1MutgcvORahweASuDqQTvaSneLw3gHfVzkezmO hS/E5GoRMNHLic2sTH4JupR6h61mIVAdzzoS8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pDLJnDFI5+2hJixggp+hQ+Cexb1z+zdD3F/VB0WCxGY=; b=ekKx7fYBceWSgJbx2i3ZX2g/23ipawA/nJELICGxZotjYW21Y8VDl5h49cCqsgj4tx ECxXwALVntN6OXsWPCUtjR6hnfQmx0yMqNJyLAkVW0MU6+hi3tHBvUPYQu/OZ3Pu/JRj gm2zshC6N5sH2P49yzq9bks3DoiEFiOZZKp9S4bu77VC0GhbLEXMaSANR8swarB+ZbhL 2Hy1PG6LANspqqmttK2RGyX9K0uGxM8MOic/6+tiMvCbSa2byDHLDm+PUpLhymL3gnVH 12VVpNgWrBy6H/49eVOtsXdHkZN+aOrZIEZHVPnawRUNGhm0cI9Yu4J+QE4L3r2MJZGO eGWw== X-Gm-Message-State: AOAM532jpKgw5Fe+Mb3eNjmMJtE7NwyjxJp3yyeFvpYvKy/A3B4kpQ2Z bzYrNFDUXfAMkOiAxqUjrDqRyYawxAy07A== X-Received: by 2002:a17:906:742:: with SMTP id z2mr1690851ejb.57.1603397802098; Thu, 22 Oct 2020 13:16:42 -0700 (PDT) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com. [209.85.128.52]) by smtp.gmail.com with ESMTPSA id k10sm1389472ejh.32.2020.10.22.13.16.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Oct 2020 13:16:40 -0700 (PDT) Received: by mail-wm1-f52.google.com with SMTP id e2so4792049wme.1 for ; Thu, 22 Oct 2020 13:16:40 -0700 (PDT) X-Received: by 2002:a1c:b7c6:: with SMTP id h189mr4379380wmf.154.1603397800227; Thu, 22 Oct 2020 13:16:40 -0700 (PDT) MIME-Version: 1.0 References: <20200916232924.129991-1-sonnysasaka@chromium.org> In-Reply-To: From: Sonny Sasaka Date: Thu, 22 Oct 2020 13:16:29 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH BlueZ] doc/coding-style: Allow spaces after tabs for indenting wrapped lines To: Marcel Holtmann , Luiz Augusto von Dentz Cc: linux-bluetooth Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org [Ping and resending in plain text] Hi Marcel, Could you share the reason behind the "only tab for indentation" rule for userspace code? I find that it is hard to format the code and it'd be good if we adopt the kernel space style indentation as well which increases readability and ease of code formatting. On Thu, Oct 1, 2020 at 12:16 AM Marcel Holtmann wrote: > > Hi Sonny, > > > The "only tabs for indentation" rule was enforced long ago to align with > > Linux kernel net coding style. This is no longer the case today so we > > are relaxing the coding style to allow spaces after tabs if it can > > increase readability. > > > > --- > > doc/coding-style.txt | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/doc/coding-style.txt b/doc/coding-style.txt > > index f0bf880e3..6a7415847 100644 > > --- a/doc/coding-style.txt > > +++ b/doc/coding-style.txt > > @@ -104,9 +104,16 @@ void btd_adapter_register_pin_cb(struct btd_adapter *adapter, > > void btd_adapter_register_pin_cb(struct btd_adapter *adapter, > > btd_adapter_pin_cb_t cb) > > > > +5) > > +void btd_adapter_register_pin_cb(struct btd_adapter *adapter, > > + btd_adapter_pin_cb_t cb) > > + > > The referred style for line wrapping is to indent as far as possible to the > > right without hitting the 80 columns limit. > > > > +It is acceptable to add padding with spaces after tabs to increase > > +readability, for example to indent function arguments at the parenthesis. > > + > > NAK. The userspace style is a bit different than the kernel one. > > Regards > > Marcel >