From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay3.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 921952F25 for ; Wed, 11 May 2022 17:38:58 +0000 (UTC) Received: from omf15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EF410324D4; Wed, 11 May 2022 17:38:54 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA id E7B6723; Wed, 11 May 2022 17:38:51 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 5/5] clang-format: Fix space after for_each macros From: Joe Perches To: =?ISO-8859-1?Q?Micka=EBl_Sala=FCn?= , Miguel Ojeda Cc: Andy Whitcroft , Brian Norris , Dwaipayan Ray , "Jason A . Donenfeld" , Kees Cook , Konstantin Meskhidze , Lukas Bulwahn , Nathan Chancellor , Nick Desaulniers , Paul Moore , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Date: Wed, 11 May 2022 10:38:50 -0700 In-Reply-To: References: <20220506160106.522341-1-mic@digikod.net> <20220506160106.522341-6-mic@digikod.net> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.4-1ubuntu2 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.39 X-Stat-Signature: xk4rirt9tqcfdijxwq6jsuccg5tji759 X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: E7B6723 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18KCf0qJJBiyy4lhCRxjdwXstA6/L23tnk= X-HE-Tag: 1652290731-601001 On Wed, 2022-05-11 at 19:34 +0200, Mickaël Salaün wrote: > On 11/05/2022 17:40, Joe Perches wrote: > > On Fri, 2022-05-06 at 18:01 +0200, Mickaël Salaün wrote: > > > 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]. > > > > If this is applied, could the .clang_format ForEachMacros: > > block be removed? > > The ForEachMacros block is still required to not put the " {" on the > next line. Pity these aren't linked as many for_each macro definitions and uses exist outside of the grep search paths.