Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp810339pxb; Tue, 12 Apr 2022 14:05:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw4NVYYgGVFrgnzk6G4/sGUmk/uQZpqtSeOKw4MHi5VYuX+4UfbIOiCtBKh7GchBE2f0++ X-Received: by 2002:a65:4b85:0:b0:399:8cd:5270 with SMTP id t5-20020a654b85000000b0039908cd5270mr31447389pgq.418.1649797504786; Tue, 12 Apr 2022 14:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649797504; cv=none; d=google.com; s=arc-20160816; b=kewGg17qmaqwMT2pWOiwLD9A1U3ViV6+nPrmeRzExpmIwv9e1A/JzhcOC1teB3fatL JjUGjc8OW8iRwxJxEbLyqVM6JqqrEKQmrXTOchuIKKBG73yxyfT+UESVAVIvMlk2fizH hU3EdA4TF2DJ6SdBdkFeRKvfboSw8wSbaPDDzKyRpAbVjoyJY1ztynqh3MvsokJ0pN0X Z5NbH3k5FNCDltFeUHUPe0Q2KBRBT4zMowmiR0YkBWnIxD0exTwHssWYheZQ774WOjjy OHoSzIYEy/OCiSy7ja0EZQQ7QVweDv8uTh5RJQSifoRXDiCjyByLGgGHtPy06Q++SmAU GdZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KLVJDr6jcH/Hhpk5ljJEeWK/iV9uol+R9xxj2F+8Y4A=; b=1A1zaU2KxPpkzNIXuZEn7GQgcUXstmS0NKdSuZu9VihFPU51wPr7SVla9M+6ZfM9Xa +NweNrBWXmNXuxPN3DNRk5MIZzJDMHlqSIlJc3eZPZlHEVhw/wq1MW9aroxqYDlTfWyZ OPCKcCDScWZQwTB7Ub+0JxfrxHF9mDLfnYTr4ndHNmKvZ35Ul6amh/+gGBofaxUYcu99 qbb+py3ROgRS85/j+sfx4I721yNiJb5UHMe2xdkJz7bVoAQM00hGkOrymE69aBrrt89W DwBqpdhDwY5Z6tyHwHEbM7uuCNuLHkoMKaEXTt8S644cy2/+yDyy4SE/WK0O9sDrILRj 9/pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IiKMX57C; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s5-20020a170902b18500b0015873700316si4679279plr.45.2022.04.12.14.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:05:04 -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=@gmail.com header.s=20210112 header.b=IiKMX57C; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B92CCDCA83; Tue, 12 Apr 2022 13:24:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350737AbiDLRio (ORCPT + 99 others); Tue, 12 Apr 2022 13:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358639AbiDLRiN (ORCPT ); Tue, 12 Apr 2022 13:38:13 -0400 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53BF55BD13; Tue, 12 Apr 2022 10:35:55 -0700 (PDT) Received: by mail-il1-x133.google.com with SMTP id d4so13398544iln.6; Tue, 12 Apr 2022 10:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=KLVJDr6jcH/Hhpk5ljJEeWK/iV9uol+R9xxj2F+8Y4A=; b=IiKMX57C5YzcokCDFZdUE8zJQg/C0NyIHC5HWRAvzjaLUUxIxy4ABzQaRjHbEWwACc Kg8zVLikJEHR44DHdL7wUaGnMO+0NWiUcb/Gje/dAfucsma0qPwytTqgv8bPfQdwh1FO yFDLs486T781Go/Wf08yHKK8UegRCQeaEfuxzC+BKzJ2wcsg+js8ADYm5aI4J4BehwmI Dt0TRW0YPQWg2mgrAlfC13jb7/N75LrvuQCrqW4H0g3aBRUsx9Dl36bXb3REoCx2gpkz ka20mF4NxvyVsT02NQ7wD2Y9O+DbrwrD8xQ1/G/2Fa66NMVlOQLkxmwcwrZwwVNwTjdh CCTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=KLVJDr6jcH/Hhpk5ljJEeWK/iV9uol+R9xxj2F+8Y4A=; b=KQoOYVkybrO/RLLdUBqgafImWU6nMchw99PPV6KN8kMQpw8qlin5ctOAXK0oVVcW3m JAa06mDazBqJXVh1Ix7zA9B7eujT9Z30KmbhG0sR3Tq2mqA29uY7fAiH5jRWKkMHuUUc fxMUfkmUPlnYns/LAdZe6nAFG6BtLAfLfcL4rAel7jMG14wm/KEQ1b/MlTEW2t/EMRFc UHLW/RehLz6FqR9y8Y+cSKJxYYMKGNQY4bin4k6nLobuO4SKq+yD0te0Jbps6iAUzoz1 YggcvuVjZdogYjvytHeDiKbvFPK17Ndm6ep4ePxWIq0TGbHBSrVNGwWPtQZG45zluc/M JRgg== X-Gm-Message-State: AOAM530Rs2AFHfGf6K+ONHycTeFMTDcv4ya4bL/BeU6y9s7zGPRXXXGY KML1LTFxecEt1qJXqa4KSmmcrRifdu6aO2IliZY= X-Received: by 2002:a05:6e02:1a64:b0:2ca:c168:a190 with SMTP id w4-20020a056e021a6400b002cac168a190mr3814301ilv.72.1649784954752; Tue, 12 Apr 2022 10:35:54 -0700 (PDT) MIME-Version: 1.0 References: <20220412153906.428179-1-mic@digikod.net> In-Reply-To: From: Miguel Ojeda Date: Tue, 12 Apr 2022 19:35:43 +0200 Message-ID: Subject: Re: [PATCH v1] clang-format: Update and extend the for_each list with tools/ To: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Cc: Shuah Khan , Kees Cook , Miguel Ojeda , Nathan Chancellor , Nick Desaulniers , Tom Rix , bpf , linux-kernel , llvm@lists.linux.dev, "open list:KERNEL SELFTEST FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 On Tue, Apr 12, 2022 at 7:05 PM Micka=C3=ABl Sala=C3=BCn = wrote: > > I'm wondering about the ASSERT_* and EXPECT_* macros from > tools/testing/selftests/kselftest_harness.h > Do you think we should treat them as "for macros" as well? They can > either be used with or without a following code block. I would keep the style that we have in the kernel -- as far as I can see, that means without a space. Also, from a quick grep, it seems most callers do not use the optional handler, which also makes sense w.r.t. not using a space. Cheers, Miguel