Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4655003iob; Sun, 8 May 2022 20:47:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHNbdTt5J7rDkHcJtlSBkFfUmJvSSS4tB0hBFufhPqBYn+oxDOJmX+CZ76EVEv/CKZ8L2c X-Received: by 2002:a05:6a00:1903:b0:4fa:fa9e:42e6 with SMTP id y3-20020a056a00190300b004fafa9e42e6mr14263146pfi.1.1652068055525; Sun, 08 May 2022 20:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652068055; cv=none; d=google.com; s=arc-20160816; b=Naw8FNJVEKzeqKza0y3gYEwXl+ea2aO2ZRRhTD5qwwJjBN5M7E0nJ825KmVcaYPVfc DnurlJLUx//VZ18aG1x9s9/5w0GPMttt9uI49IM7x3o+SdvH+3yoIUKi4huXTBb/Msqd yTaJ2O7daPNCKSgzu+nSLopWIjiDDSZGDWtCZYi7NLPOZ6iOuOMhcWsRM50YRRjPkLUP GQPo1YPYD+vklOobL+A7vBe0aXQqHnYhrR0O/MJ64HZzV25xk9FRCcG4H/2fG2kisEgw d7cQwkLptRwA5d+gdeHqljtZuLsUGJQosLD6iY+B0xhy5wu0GckCY/p2WG4jdxIN4ErV 3vQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AzgNZM+h6biEXdyhrgCQP2wLs5R/cXaHcCMqxyqcfYU=; b=IrrRKc9jCJNh2oLVZKl1E+JC4GKfUCy3SyhPdXWIC4Ub/5sPUYxJxLL6VSHPyi9PgP EgxVq04Z02Lr6TyUsmJSKt/PuEkSq5IBPqXVTla33fmkPbd3gFaIaY/0RM7dRUfLn/0l kXEpnrQ+3pyU3wH/vORwPXz7kNS4z+llZv4hHKMlx2Ie72TdYSM+e+9LiG1jwrc2c5V8 ZtMZkd6Xx+80nJ06LXr/ijVuXtbYxf5taCsJjMGzfBMUvgZd4nJl7s8wN8Gwk7gechZh +hGUGhfQ22xWGfVCNefqkchCkQ3j0jimj4zGEOsorA/IQakPovNTUS3llVbmaTB0ONJn 7BKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=lRc3SrWT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n12-20020a170902e54c00b0015b4a198c8fsi11473154plf.288.2022.05.08.20.47.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:47:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=lRc3SrWT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4C6EDB34; Sun, 8 May 2022 20:45:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443273AbiEFQEL (ORCPT + 99 others); Fri, 6 May 2022 12:04:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443267AbiEFQDj (ORCPT ); Fri, 6 May 2022 12:03:39 -0400 Received: from smtp-42ab.mail.infomaniak.ch (smtp-42ab.mail.infomaniak.ch [84.16.66.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AAD96D3AF for ; Fri, 6 May 2022 08:59:56 -0700 (PDT) Received: from smtp-2-0001.mail.infomaniak.ch (unknown [10.5.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4KvwHr6bv2zMqSHG; Fri, 6 May 2022 17:59:52 +0200 (CEST) Received: from localhost (unknown [23.97.221.149]) by smtp-2-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4KvwHq1CRGzljsTN; Fri, 6 May 2022 17:59:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1651852792; bh=wXt5V32MOkd3JJdPG9GwDCkPTH/BF8OWATmyHyUQ6Gs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lRc3SrWTV3AmR/r28718FJBdJMqWCLH3epIPUkeDPP5Fvsxo0yTfsoSPEIx8a41Y3 eD6qhRb2ozK76zekD+h18j4KhJ0cqak1Vg21qn/w3LrH6g6XnjHr5Ez123dytbMtSe g6zCe59CnX4hyrlxED8pwmtjPGgn6C06qu7PKqFk= From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Miguel Ojeda Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Andy Whitcroft , Brian Norris , Dwaipayan Ray , "Jason A . Donenfeld" , Joe Perches , Kees Cook , Konstantin Meskhidze , Lukas Bulwahn , Nathan Chancellor , Nick Desaulniers , Paul Moore , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH v2 5/5] clang-format: Fix space after for_each macros Date: Fri, 6 May 2022 18:01:06 +0200 Message-Id: <20220506160106.522341-6-mic@digikod.net> In-Reply-To: <20220506160106.522341-1-mic@digikod.net> References: <20220506160106.522341-1-mic@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set SpaceBeforeParens to ControlStatementsExceptForEachMacros to not add space between a for_each macro and the following parenthesis. This option is available since clang-format-11 [1] and is in line with the checkpatch.pl rules [2]. I found that this patch has also been sent by Brian Norris some weeks ago [3]. Link: https://clang.llvm.org/docs/ClangFormatStyleOptions.html [1] Link: https://lore.kernel.org/r/8b6b252b-47a6-9d52-f0bd-10d3bc4ad244@digikod.net [2] Link: https://lore.kernel.org/lkml/YmHuZjmP9MxkgJ0R@google.com/ [3] Cc: Miguel Ojeda Cc: Tom Rix Co-developed-by: Brian Norris Signed-off-by: Brian Norris Signed-off-by: Mickaël Salaün Link: https://lore.kernel.org/r/20220506160106.522341-6-mic@digikod.net --- .clang-format | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 235f7bb8f84a..1e083df1a689 100644 --- a/.clang-format +++ b/.clang-format @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # -# clang-format configuration file. Intended for clang-format >= 6. +# clang-format configuration file. Intended for clang-format >= 11. # # For more information, see: # @@ -667,7 +667,7 @@ SpaceAfterTemplateKeyword: true SpaceBeforeAssignmentOperators: true SpaceBeforeCtorInitializerColon: true SpaceBeforeInheritanceColon: true -SpaceBeforeParens: ControlStatements +SpaceBeforeParens: ControlStatementsExceptForEachMacros SpaceBeforeRangeBasedForLoopColon: true SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: 1 -- 2.35.1