From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id E5E6D3857C7B for ; Mon, 8 Mar 2021 23:21:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E5E6D3857C7B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=marples.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dave@marples.net Received: by mail-wm1-x335.google.com with SMTP id i9so490777wml.0 for ; Mon, 08 Mar 2021 15:21:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marples.net; s=mail; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=G7707GSgBQzR7370dI85wMDtba2748ICLNyXFZzSDv4=; b=OrLak8DSRtlqUOabczBWNFZCNzT7GS5WVKtQzJoYaUHQVrLl8huAzEMqZrYI8s5fHk NYabt/sAffjpLoWCYvS8iJUrGW/8stP3lmAJojxC1xjfjepHvbOwiceJOAKqLqjl6qcY 6zDOIqYba1MG2iDJCoW2oOcFV/vIbdcLOdLk0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=G7707GSgBQzR7370dI85wMDtba2748ICLNyXFZzSDv4=; b=skGZCxH8UaboIb6D+Q2Z9y1p+jqRiD72A+ODUg41LuPiN3RgeOZ85z3eaLpPwro4rs m0nGdlGb91H6Vzvzt/Tv6a1YRLfM5MEaXogv8TmySvOrkcP7lHE4uWIZRqe9T+nVsOf/ 3LVpjVvoVPWXYg5fIjT4r/tE0sOxSwD3oChBMUlaBXYTSsBFBbnvXC9eo2ZesgCir3kq S1t6IV2VOCEH4bFFRANH5oxlTXcKRdXGweAZvA6m3qItFyxECBrjWBzlW5lTB+A1eLP/ Izd3lJjcHMBf/asyMaDfDDa/vfA+cVNAEJfUgfMrvnlx3imElWWVDhwEvck9E+SrV8Av m8DQ== X-Gm-Message-State: AOAM532d1vOY9xQ8P0ye1R4tImnRWJ1JnMhgkEfXpQdEMh1n/wAmLdeE lpFWWgKj96DXZ1hz2haefsMa/1chsApI+A== X-Google-Smtp-Source: ABdhPJxyo7wYmRfW0vZhagCMTuPaD92DBMJSjrGBiGwsnMKw6XHYbftItMUzzX0NHw45jwwLGfjSWg== X-Received: by 2002:a7b:cdf7:: with SMTP id p23mr1032747wmj.26.1615245710893; Mon, 08 Mar 2021 15:21:50 -0800 (PST) Received: from [172.26.172.53] (cpc143272-mfl21-2-0-cust550.13-1.cable.virginm.net. [86.28.226.39]) by smtp.gmail.com with ESMTPSA id f7sm23399296wrm.36.2021.03.08.15.21.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Mar 2021 15:21:50 -0800 (PST) Subject: Re: GNU style checker for GDB To: gdb@sourceware.org References: <3a4748a5-8059-aa9e-a55a-3939dd569c36@trande.de> <278d129c-f27c-c47c-3e33-4a5a85cda855@polymtl.ca> From: Dave Marples Message-ID: Date: Mon, 8 Mar 2021 23:21:49 +0000 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 08 Mar 2021 23:21:53 -0000 On 08/03/2021 22:39, David Blaikie via Gdb wrote: > > I think if you can point to a widely used style (the gdb (& binutils more > generally?) codebase) there's probably going to be a fair bit of > sympathy/understanding there. It seems to me that this is a problem screaming out for Machine Learning. I see so many projects that don't have a formal style guide but have a "please format your code like the rest of the code is already formatted 'cos we like that" policy. Nothing wrong with that policy at all, except that it's obviously incredibly difficult to automate. It would make a really nice final year undergrad project for someone to train up an AI on the style of an existing codebase, then use the developed knowledge to edit new code into that same format. ...anyone got any suitably smart final year students that would bite on a project like that? I can think of plenty of projects that could make use of it! DAVE