From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id y0ULL9Ap+WrTjA4AWB0awg (envelope-from ) for ; Sat, 14 Nov 2026 22:41:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1794714064; bh=9ZhXsHv9ckhgJpqXxcBKJQyoPtrVLuH8cdyLsxcHaRo=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=FGKlxwuXTcpA2zyzjiFMQquK1yMNVLgy0vrV+/5PWNb2mHh3lqh7KD7K+0JcD0W+J tlUJpN31z6xVken7iIgBU9FoNZ2jViv4ePBGv/zfUyWTM36U6YwCoV9jNfBLnFwKq3 Buw10NQkDlmqOLTEKcb7whL66zYJb3HJEHSydO0g= Received: by simark.ca (Postfix, from userid 112) id B094C1E043; Sat, 14 Nov 2026 22:41:04 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=QqAGObiI; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E6C501E043 for ; Sat, 14 Nov 2026 22:41:02 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EBF2F4BA79A1 for ; Sun, 15 Nov 2026 03:41:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBF2F4BA79A1 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=QqAGObiI Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 685774BA23FA for ; Sun, 15 Nov 2026 03:40:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 685774BA23FA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 685774BA23FA Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794714035; cv=none; b=MVlv0NcnbTO70k8pesIYrx3pPy3536mMCGCxew29MDplaWGJS83EbXH3BFSKlFYaJJVzLYCojh6RCtzeEWSuk5I+STNXOkU7I1t+I0xgs0u4dARSnPBIUSSMHW39YFHLx8bLPNTkK97uv2bG1tjNpDVWgZ7QyQgB5SFzG7Gn6fQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794714035; c=relaxed/simple; bh=9ZhXsHv9ckhgJpqXxcBKJQyoPtrVLuH8cdyLsxcHaRo=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Gj0OjD+lmBz42oDxTm4FuBo/Yh8KhhtzGw/jWs01dnBQ4m8GCsR4Sl6edvh3HNPcw9uQAAvHSgw2c0A+sraOrsRcOf+jrOkC+JKOfojGlCbq6HEO1ZN/qtN4RTPmCTd3vWkgYGgWfiOyIOI7O8aXEoESoLuGd5XcB2VBgSA+JME= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=QqAGObiI DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 685774BA23FA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1794714032; bh=9ZhXsHv9ckhgJpqXxcBKJQyoPtrVLuH8cdyLsxcHaRo=; h=Date:Subject:To:References:From:In-Reply-To:From; b=QqAGObiIaymGCohfS73KEjKWW0eBG+OejaeCVwM3GuHoTIF9Kj+C+60cwwmk1bY+V GUXL4pzTg9ArZjR1YcjB3hv1WQfwIkwiRfu3D7aHaw9yelcTMoGEOk8U46QuNKjE9/ EJ0IyG4qgGi+KhTkEfJOLMpsV3MUEAA8Wh5TrLDA= Received: by simark.ca (Postfix) id BFBD51E043; Sat, 14 Nov 2026 22:40:31 -0500 (EST) Message-ID: Date: Sat, 14 Nov 2026 22:40:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 08/15] Remove span from cli-option.c:build_help_option To: Tom Tromey , gdb-patches@sourceware.org References: <20261111-span-part-1-v2-0-cd4e33a8a723@adacore.com> <20261111-span-part-1-v2-8-cd4e33a8a723@adacore.com> Content-Language: en-US From: Simon Marchi In-Reply-To: <20261111-span-part-1-v2-8-cd4e33a8a723@adacore.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 2026-11-11 10:58, Tom Tromey wrote: > cli-option.c:build_help_option takes a gdb::span argument, but it is > only ever passed a single option_def. This patch simplifies the > function. > --- > gdb/cli/cli-option.c | 30 ++++++++++++------------------ > 1 file changed, 12 insertions(+), 18 deletions(-) > > diff --git a/gdb/cli/cli-option.c b/gdb/cli/cli-option.c > index b4fafaa898c..70878bebe69 100644 > --- a/gdb/cli/cli-option.c > +++ b/gdb/cli/cli-option.c > @@ -866,28 +866,22 @@ append_indented_doc (const char *doc, std::string &help) > OPTIONS. */ > > static void > -build_help_option (gdb::span options, > - std::string &help) > +build_help_option (const option_def &option, std::string &help) Update comment above, OPTIONS -> OPTION. Simon