Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1548682ybg; Thu, 11 Jun 2020 12:44:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG+p90JVMIFUfO2Z5DZgLtYFfzngnjunJuK7pV1Q70b9uo7P6ODpyqk+lgsdGof0PGgxyA X-Received: by 2002:aa7:d74c:: with SMTP id a12mr8515862eds.369.1591904672066; Thu, 11 Jun 2020 12:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591904672; cv=none; d=google.com; s=arc-20160816; b=DghDF/wNDsbXX/QMvcgq1IC2y2myWQ6Y4HSRhyU/vOAdQ5s5KGAlA9l50Anw2nyzGY LG1fUM3gz2n9qMKe4cxExqBdkBqNuiYvOZlVAiTW6i5tWxSTnWdP6c5LNZ6PyDcut+Uh d+zdb3ZQL2DWEcpYlqpYQL3fyZtjGinV3iLkRkUG6sGthoFA17woYjsMIeirgnnrF2y3 4UUENIm+VU5C0GYbZMJevDAjzsQHgmrEilZDQaF+7tYY54EEZOkE+cw35F8LFOK+VB12 lqVsb4nSaoURPSD3LKUPjQZu9z8zNtQKObV7pe1jaImw7dss6s3I7d2v7TddXl/zynG7 3uaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=F7i6ozYWDoWdhQUF8n+x9eu910xpemZDjtGEhhP0cTk=; b=gNiBJ6854YKrKlgRm0rvSmO/PxaCXN8KzvpqYLatcMucxXsufCKBwOtCc36rgy5wxf 5DeoOEBFc0iO/bGuk8gVVT5+e13L5ZjxD7OKVVOM+SliNqp4E087XWWBY2FbnYAlvlex L1W74Gv/wdSDYT/tyQ8FFgbiFO5x88L6qlBxKsXofXoLZFmLFOLe0g9ZNlWF9Wi1Zvpo B2aIn4NxaVh7kbrgjuVRn1bMOq5ufSlpiMaWkf+eTI2AtkgT07C8/t1UZXu3h6huV+pL YbJ0mImIrpl2uwv59Kd51nJ4I6V1eGM1IEehkBMmVfhTYoogjb6I7MhzE9mMHaxPmsy7 /8qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="rlp/XaVY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si2360278eji.387.2020.06.11.12.44.07; Thu, 11 Jun 2020 12:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20161025 header.b="rlp/XaVY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728180AbgFKSva (ORCPT + 99 others); Thu, 11 Jun 2020 14:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726159AbgFKSv3 (ORCPT ); Thu, 11 Jun 2020 14:51:29 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8702AC08C5C1 for ; Thu, 11 Jun 2020 11:51:29 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id 202so4094425lfe.5 for ; Thu, 11 Jun 2020 11:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F7i6ozYWDoWdhQUF8n+x9eu910xpemZDjtGEhhP0cTk=; b=rlp/XaVYonga5QinfFwsLoaIXlslNYQSJwttXyi6N1DPtni+Z9xseTTwICCdRvqWr6 qPZ5lhRsiQsy8BwTDRCfw65JYP1996bXUGBgdT+Yq5uJALkY3iOFcj3WR7qQDGN3kCzL D8l+fO94iptR4okMhyofMB67D103f2O4gtY1Kyp0Jaokdr3zGa50AXSpLY9Xtr38noct ArIW2AIVuJxvMJuZkHphTfhW9va9ZRhvGdwmzc8q4MCfpwIDHLq4Rq2Y0AhV1hNKd4Su 7JjvuOZp2WItjlpJdst2FXSm8PlyBWTqcs46ByVF064hxRhM/YC2vwDdjvLsq/SrZxOp ISKg== 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=F7i6ozYWDoWdhQUF8n+x9eu910xpemZDjtGEhhP0cTk=; b=m3iAUY5rariaYjRCTVz2eaGTYP4IHYsf6PPeVmGdx9PhbSbtSL8KMA5nx/gsVCoUdW vH1Z/gfFrVh91haiXEforh8D82qs/fmuQ5RkwHktTKAMryUZPMi8hZh+v+myvDE0eYFC QOsCI9YCM5ipTbXHmjTJ+X/Dj+sE9oHQrh2xvu2tv6+Czr/nANpy8iAK22bDlwSRYCQU 5ykETTp6r0AiDte9RG87713fg7yzuS9Vf40JjkUQbHzQIfBzh/9gCkRxF/WnNcJaiTbq WCqOCpzA1DfLmEAA/jIey0qFbS4c/sezdRX8fjfI0KViL4CKSmvMUq0jEmQq72YitN4Z 0Ilw== X-Gm-Message-State: AOAM533mLMAoWYGkAYjK1byUegX/M5FYuYY5UN72LLOvV8n0CaOJ1dx4 S8qjzMx0yy+/rosYY27/GaIHIwlcarUlgLoWk+4= X-Received: by 2002:a19:3f01:: with SMTP id m1mr4909173lfa.130.1591901487983; Thu, 11 Jun 2020 11:51:27 -0700 (PDT) MIME-Version: 1.0 References: <20200610125147.2782142-1-christian.brauner@ubuntu.com> <4c6f8d63817cbc51765fd0b3046f81dccbd17ec7.camel@perches.com> In-Reply-To: From: Miguel Ojeda Date: Thu, 11 Jun 2020 20:51:16 +0200 Message-ID: Subject: Re: [PATCH] .clang-format: update column limit To: Joe Perches Cc: Christian Brauner , linux-kernel , clang-built-linux , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 11, 2020 at 6:22 PM Joe Perches wrote: > > On Thu, 2020-06-11 at 13:54 +0200, Miguel Ojeda wrote: > > Why is 80 "still preferred" to begin with? > > That's neither my nor your issue to solve. ? You (or Linus, I still don't know since the commit is on your name but I can't find the full patch in the list...) updated the wording on `coding-style.rst` and I have to decide what limit to put into `ColumnLimit` to make `clang-format` most useful for developers within the new constraints. So it does concern us... In my view, `coding-style.rst` is saying what it used to say from the point of view of a new contributor. But regardless of that, forcing `clang-format` to work under the 80-column constraint means we will get code that won't look as good as giving it a slightly higher hard limit. Yes, more lines will get over 80, but that is not as big of a concern now since it is not as "strongly preferred" as before, which is the point I was trying to make. A concern for keeping the `clang-format` limit as it is that I can think of is that newcomers using `clang-format` may feel forced not to go over 80-column no matter what since "that is what the tool does". On the other hand, my concern for *increasing* it is about things like function signatures, since there is no easy way to decrease their length or rearrange them without reducing the identifiers' length. A third alternative is using `ColumnWidth: 0` and let people break lines on their own, `clang-format` will respect that if possible. But then we rely on people using `checkpatch` and they have to take care of the limit themselves, so the advantage of automatic formatting decreases. By the way, I noticed that a lot of kernel code will still trigger the 100-column warning (~20% of the previous set triggering it!). Cheers, Miguel