From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EX27FtWVKGpWdz4AWB0awg (envelope-from ) for ; Tue, 09 Jun 2026 18:38:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1781044693; bh=H6zxNU/YrOF94kXB7t25vgAhgsqmjsqw8JmWrZ54Ax0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=mxrRkXWQ/vQx81UECD5PbkmUHyueE8uEasokQOBCoJGgVaWsSMweBw2Ljo6z5KFdr CIKr6+osVxGTRE1ud0Ij0ymy5cn7Z3eNAZfXTJfCjQlrRK9AJgMjHJwGDXpGccDNgU BWfX8K6253zq339kxiVnYNjo6Z83qrRIANYEK9b4= Received: by simark.ca (Postfix, from userid 112) id 57DB01E024; Tue, 09 Jun 2026 18:38:13 -0400 (EDT) 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=Kog5s02K; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 9BECF1E024 for ; Tue, 09 Jun 2026 18:38:12 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2E0354BA540B for ; Tue, 9 Jun 2026 22:38:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E0354BA540B 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=Kog5s02K Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id DB7F74BA540B for ; Tue, 9 Jun 2026 22:37:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DB7F74BA540B 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 DB7F74BA540B 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=1781044662; cv=none; b=wijq9X9738vpFw2Azgj10Z9g05k/bqeXokqDobwmy/yrTl/n4Dw/TEKvlKOzwULpw19MJeKW7rsUdA7lVpMq+es2mpcMwkRa42ZZCY8PvjXEdvuj//IK/q8oULtUeoT5eo6pqsDcidf4yhDSk6azG0+08DpsHcya0RQiTqUrAUk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781044662; c=relaxed/simple; bh=H6zxNU/YrOF94kXB7t25vgAhgsqmjsqw8JmWrZ54Ax0=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=KLuUiOj/GhrFzCQsy0hL5dy626/k4g03Sql13b03pOHU0OrKsXmjzMt0/ye7UDmYwrsDQQFAzcEU8J13vvcFOcavE6SZyACQPlRG8096Eigd8Kddkm/l0J3P651Ng6Ubc6mhhToya8QkzCKLpbaFTvULbgjk2TE6f0KlvIsuaFY= 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=Kog5s02K DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB7F74BA540B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1781044660; bh=H6zxNU/YrOF94kXB7t25vgAhgsqmjsqw8JmWrZ54Ax0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Kog5s02KsOy/FEUlbniKXUlpAupx8Px0fga15WZ7VwgcnQQ10jTOUCB+JY7Jew2UN XX1o3m7DU7d/eU4IvQVEtcUqEnvPGeh14HU3Gq3qxpIz/K+Uh3NFgZESts6SHvB6WZ gUyE/jIeG8lMFM1dtOqcF2qhk8tqVzJUMib64OwU= Received: by simark.ca (Postfix) id 74ADF1E024; Tue, 09 Jun 2026 18:37:40 -0400 (EDT) Message-ID: <46b1c0f1-8e1d-4154-95b4-effb0eea64ef@simark.ca> Date: Tue, 9 Jun 2026 18:37:39 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] [gdb] Use using instead of typedef To: Tom Tromey , Tom de Vries Cc: gdb-patches@sourceware.org References: <20260609162257.1674992-1-tdevries@suse.de> <87pl1zfymw.fsf@tromey.com> Content-Language: en-US From: Simon Marchi In-Reply-To: <87pl1zfymw.fsf@tromey.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-06-09 12:48, Tom Tromey wrote: >>>>>> "Tom" == Tom de Vries writes: > > Tom> After commit 1eed06ae51d ("[gdbsupport] Use using instead of typedef in > Tom> next_iterator") I wondered if I could do something similar using sed. > > First of all, thanks for doing this. > > I don't know how anyone else feels but I normally find 'using' simpler > to understand, I suppose because I don't need to try to decode the right > hand side to find the name being defined -- it's right there before the > '='. > > So, I am in favor of this patch. I'm going to approve it but I think > you should wait for a bit before checking it in, in case someone wants > to object. I am also in favor, I think it's easier to read, and I guess it's the "correct" thing to use in modern C++. Simon