From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA882C27C40 for ; Thu, 24 Aug 2023 07:06:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233591AbjHXHGI (ORCPT ); Thu, 24 Aug 2023 03:06:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240326AbjHXHFr (ORCPT ); Thu, 24 Aug 2023 03:05:47 -0400 Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [IPv6:2001:780:45:1d:225:90ff:fe52:c662]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A4B6E4B for ; Thu, 24 Aug 2023 00:05:45 -0700 (PDT) Received: from [78.30.34.192] (port=60522 helo=gnumonks.org) by ganesha.gnumonks.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qZ4PV-00825N-3M; Thu, 24 Aug 2023 09:05:43 +0200 Date: Thu, 24 Aug 2023 09:05:40 +0200 From: Pablo Neira Ayuso To: Thomas Haller Cc: NetFilter Subject: Re: [nft PATCH] clang-format: add clang-format configuration file from Linux kernel Message-ID: References: <20230823071134.1573591-1-thaller@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230823071134.1573591-1-thaller@redhat.com> Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Hi Thomas, On Wed, Aug 23, 2023 at 09:11:31AM +0200, Thomas Haller wrote: > Clang-format is useful for developing, even if the code base does not > enforce an automated style. With this, I can select a function in the > editor, and reformat that portion with clang-format. In particular, it > can fix indentation and tabs. > > The style of nftables is close to kernel style, so take the file from > Linux v6.4 ([1]). There are no changes, except (manually) adjusting > "ForEachMacros". I'd prefer you keep this locally by now. If more developers are relying on this feature, we can revisit later.