Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp236348iob; Mon, 2 May 2022 18:05:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+/f4I1tBQeODwfSIEyfT2Q76oRYwLTF68u7xy9TV3olD9ffSDu7CF4WV5iD+7yhPtPl2/ X-Received: by 2002:a17:90b:3847:b0:1da:2e07:bb5a with SMTP id nl7-20020a17090b384700b001da2e07bb5amr2052340pjb.82.1651539929204; Mon, 02 May 2022 18:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651539929; cv=none; d=google.com; s=arc-20160816; b=L0TZ3Sl9U7Iq6x2znOy2lY9KV8PB49G4s4na73S0ds4psVc6SZeE1yTQMiaFqefWbu AM0Em2sUnw2+Gny4QVq1U8UtgZunYIn2gVzNxofXbNvaJfCN/5Zbp4bzv9ZppXXuA4hC 3W4jfkVc9YUUzkF/uMSgi6Ln6hsTb2uNchFpvVdnZi8FB5/qxT7VJucrwhrHPb9WydsT rTvfqsU9CgJ53Qj4Z2t1S6mGZ+BEAOeM+qNn+wamObK6FHOECbt2QBWxYc7x/7JtQjXU WhkPHU6Bfe7XkfJSjUgNDZI9bROPUagK4ZaOjdCROGkEWCTUYt3IQ/jOdHwZTI9Pdg35 IRAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :references:cc:to:from:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=xv803didKXxezxcW3mzR8X6mp4Dw819KRfRf5Um5BxI=; b=KEp9vSjy81WbcPoSjA/smVj/FRsRkSX+akLT3zKcHbj3YyBrWgstVjoTnxygl5RtHh NdomfzD0JGYIwqdDcAV/Al1lCZNX7b1jZtlQhiDI8Hv7wMiIWdAFDjgErmbKehMlCul4 7SqJSV1uTY0Hbxo1iTwGBogBxhBNUrv/pbNnLmr6fcMRWHa2pszFtQgVP7WVdxooUdfu fOfzPaiH+A2V03yBNwyFdA2WKQ9OV24ZKFci6/An5O9ydgVBZ+LN2f6mChqQAliPA6mR HgoS7SpRTzvtuWzQTsHSv3EVPk6Rtqa6ph1s1zEp58Uc+f6/l6y017cAvGg2P0+oqNHI MJRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b="bn9kQv/9"; 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 i17-20020a6561b1000000b003a56645cf96si15889243pgv.335.2022.05.02.18.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:05:29 -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="bn9kQv/9"; 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 82BDA3C70F; Mon, 2 May 2022 17:48:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232448AbiEBTP1 (ORCPT + 99 others); Mon, 2 May 2022 15:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232124AbiEBTP0 (ORCPT ); Mon, 2 May 2022 15:15:26 -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 1835CB7F for ; Mon, 2 May 2022 12:11:55 -0700 (PDT) Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4KsXlG0SWnzMqFPG; Mon, 2 May 2022 21:11:54 +0200 (CEST) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4KsXlF18QfzlhSMS; Mon, 2 May 2022 21:11:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1651518714; bh=0NxUaaWbrR2tDqr7m+/6m1rvuQPmqjcU76RBWpb2ACo=; h=Date:From:To:Cc:References:Subject:In-Reply-To:From; b=bn9kQv/9cYMoic4chLoAuI0NTaixiFmyd0AVe5+MB/o3qzTIRPBCjxK9baQXjuyrO 6IQguVyyZjdlm6mL4SwdN0JAIajtfuB5IyCu0pdBD1VMDeoCHYn8jN8Ra1HbeLJghP NKYmm3EH0g+EgCOMfbk+6fFDaXl8nu7qxE/6P6UM= Message-ID: Date: Mon, 2 May 2022 21:13:05 +0200 MIME-Version: 1.0 User-Agent: Content-Language: en-US From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= To: Miguel Ojeda , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Cc: Nathan Chancellor , Nick Desaulniers , Tom Rix , llvm@lists.linux.dev, linux-kernel@vger.kernel.org References: <8b6b252b-47a6-9d52-f0bd-10d3bc4ad244@digikod.net> Subject: Re: clang-format inconsistencies with checkpatch.pl In-Reply-To: <8b6b252b-47a6-9d52-f0bd-10d3bc4ad244@digikod.net> Content-Type: text/plain; charset=UTF-8; format=flowed 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 On 23/04/2022 13:45, Mickaël Salaün wrote: > Hi, > > I would like to use clang-format (with a pinned version, probably 14) to > keep a consistent coding style, or at least start with one. However, > there is some inconsistencies with the checkpatch.pl script: > > In some cases, goto labels are indented, which checkpatch.pl doesn't like. This can be fixed with SplitEmptyFunction: false. I'll send a patch for that if it's OK with you. > > checkpatch.pl complains about some functions (e.g. FIXTURE or > FIXTURE_VARIANT_ADD) that get an open brace just after but without a space. Miguel, do you know how/if clang-format can enforce that style? FIXTURE macros are struct declarations though.