From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 5LoOC31gRmBaagAAWB0awg (envelope-from ) for ; Mon, 08 Mar 2021 12:35:57 -0500 Received: by simark.ca (Postfix, from userid 112) id 2105B1EF78; Mon, 8 Mar 2021 12:35:57 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6FA1F1E793 for ; Mon, 8 Mar 2021 12:35:55 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BEE9E3870881; Mon, 8 Mar 2021 17:35:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BEE9E3870881 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615224954; bh=Erz4gcGpIUC0ONAhMHOmzOZR9Kbjk56APeubT6iA5zg=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=oD9vzqBpZ7lRKzilhh1A7Tyf+7ZeTculvDdmf8ZizNIJkd3PvnHEYgJNE42INdSp+ 5LJIsCyFvirSzc0rOB7hG7xajfmVs83Nl1/zZ1xu316ImDKWoMJ2LPBuf0cLm95JTO kVta53Z5cs7n4Mlte2NibM9aRQhSLmqTjL29Ewas= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 476A83850415 for ; Mon, 8 Mar 2021 17:35:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 476A83850415 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 128HZlta002293 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 8 Mar 2021 12:35:52 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 128HZlta002293 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id EC2DB1E793; Mon, 8 Mar 2021 12:35:46 -0500 (EST) Subject: Re: GNU style checker for GDB To: Zied Guermazi , gdb@sourceware.org References: <3a4748a5-8059-aa9e-a55a-3939dd569c36@trande.de> Message-ID: <278d129c-f27c-c47c-3e33-4a5a85cda855@polymtl.ca> Date: Mon, 8 Mar 2021 12:35:46 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <3a4748a5-8059-aa9e-a55a-3939dd569c36@trande.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 8 Mar 2021 17:35:47 +0000 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb Reply-To: Simon Marchi Errors-To: gdb-bounces@sourceware.org Sender: "Gdb" On 2021-03-08 8:10 a.m., Zied Guermazi wrote: > hi, > > is there a style checker that I can use to detect styles issues before sending patches to gdb-patches@sourceware.org? > > I have the program indent installed on my machine. can it be used for this purpose? which options shall i use? > > Kind Regards > > Zied Guermazi People try now and then to configure tools to do this, but so unfortunately so far there is no tool/configuration that matches exactly the style we use. If I remember correctly, indent does not know C++, so it's not useful here. clang-format can get quite close, but not enough so that we can say "just run this and it will be fine". To be clear, I really wish there existed such a tool, it would simplify things a lot. Simon