From patchwork Thu Jan 11 10:12:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ken Matsui X-Patchwork-Id: 187280 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1346485dyi; Thu, 11 Jan 2024 02:14:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IEncA03g7dY3yL5TfDpM/O+vzefZMFNN4AFuuvK0N2iA2Hv2+HZpIatsDWZY+EbgwJ1zmok X-Received: by 2002:ac8:7d86:0:b0:429:8bca:eb79 with SMTP id c6-20020ac87d86000000b004298bcaeb79mr426598qtd.54.1704968057604; Thu, 11 Jan 2024 02:14:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704968057; cv=pass; d=google.com; s=arc-20160816; b=uKXTIORbVUGwMYhatiSesDpKHmq/8k92WFI/xoTkqP/dHzQbGRJjZnLKTPTZN4vbi6 px554i2HYyGeB7KZYYbJfeAOV+sDYUj/cfEtouAqr95cnhuWAhwxfXuRJUOy9Nd/jySj nyhErDr6pbzCdhuOoUirRQnRHesGSPkGBRXnrjj86QNpfj19yBVRnrI6znbgDz8t3Sca gRNjjKe1aKy/zaFAB0ExzufAwBhKykt6yKwQyETKZw+TKLoAeV8abGBlHHycBRpozlgR Xy9DywfATg9D6YlH5cHYea6Q/FNNKyXuGlp0u9ViP6LTmmsh/1pUDup0tlP1qr4a2RIB pDQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:arc-filter:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=bWZCFrdk5HoIKlf6du9ezYwWeIPVPgKDVbwUp+fzavQ=; fh=kSSy/oyUXqQD15FLeKdymIgDBFPFITPA1Gj52CNOxRQ=; b=ubxpYCEznWlXG3dcWbUAkSNGhSLVxuVCKBaauRR9XVaHl+nwy4Va7Jdn8Zp+vB0Cw+ h5EVnN8FpOq0hUXQlLWuWGwRDE+4a+YPOIPkpcSrUHlPmxWgDCZp7gjWSfMwegL+XTIP mcWhJ/DUmCtC4RX69neE4pvL86fmg+VQtb1YkL6q8dLAn0oVZIpijvaXHFuED2B81ziP pWQQFTGCQrNBnaqeRaW5ZbN5FUB1NlbFJr8DJ9CJDXk06ofLAtp2UxDfzv4UUi1OuSjH /XaVl9BLW12Zd6kXAUfsNAhfTSyWWodIj5yUpzGluUJ2q+h9Jc7gMbMAfNh7tbPE2qqy u6mA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Cs8EPds+; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id p2-20020a05622a00c200b00429b5e35e05si625201qtw.259.2024.01.11.02.14.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:14:17 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Cs8EPds+; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 46D6A3857703 for ; Thu, 11 Jan 2024 10:14:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46D6A3857703 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704968057; bh=bWZCFrdk5HoIKlf6du9ezYwWeIPVPgKDVbwUp+fzavQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Cs8EPds+TFlTLCZ1hnAzSWV7XaIGttCdjyHvnDoXtPlhYpwKdf+F7L+YlVhVDfuNV 0M+tVZL0ZgEH3b1uqHZXlCPgVFvS8UTaxQtd19vbiIbhUKel7QGN5O+7i5m7n5JiZH 1+Z+fYiCncx4p+t81YVz47kqzfdNK2uutC+j9uGk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-00641c01.pphosted.com (mx0a-00641c01.pphosted.com [205.220.165.146]) by sourceware.org (Postfix) with ESMTPS id 7612C3858024; Thu, 11 Jan 2024 10:12:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7612C3858024 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=gcc.gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7612C3858024 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.165.146 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704967963; cv=none; b=kgJowHknjqk1bxqxoXgdo60RGpWEFn8+WUQbVWXgCkXEv9Gh4oHYDHtU52sHqBEZ2o1jEGWBDP9XCHRbnrObUb6JtQ2SOOZLoTLzfbEU8jphqB5ayd/FHCp578rgHnRpjlcbIw0vCJUHr8C70B3nm9yil2J5dDQupBEH2xzAEhA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704967963; c=relaxed/simple; bh=uRO3jNqAXovX5zfXIUW+Og+/yVR87KI4l1lciTKW2Wo=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=sEAxL8maiMdm65pCpPO6Yrw/f9uSueJQp/u/MWWSLUadZpEW3gktwPb1AnIARVuL+rL7a0M/ifiGALvjv6SLjSvb9JJAZwdRe2BuCyUwfGrZv1NWoGTwBtghCoUtzBVu7HlW9IBzGTqCN9VimlRPQSyDUTdzLcBZYaxEnPhQszo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0247471.ppops.net [127.0.0.1]) by mx0a-00641c01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40BABMoA008308; Thu, 11 Jan 2024 10:12:38 GMT Received: from mxout24.cac.washington.edu (mxout24.cac.washington.edu [140.142.234.158]) by mx0a-00641c01.pphosted.com (PPS) with ESMTPS id 3vj87s16h6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2024 10:12:38 +0000 Received: from smtp.washington.edu (smtp.washington.edu [128.208.60.132]) by mxout24.cac.washington.edu (8.14.4+UW20.07/8.14.4+UW22.04) with ESMTP id 40BACLgH021262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Jan 2024 02:12:21 -0800 X-Auth-Received: from kmatsui-ThinkPad-X1-Carbon-Gen-9.dhcp4.washington.edu ([10.154.74.143]) (authenticated authid=kmatsui) by smtp.washington.edu (8.16.1+UW21.10/8.14.4+UW19.10) with ESMTPSA id 40BACL6Z004950 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2024 02:12:21 -0800 X-UW-Orig-Sender: kmatsui@smtp.washington.edu From: Ken Matsui To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org, Ken Matsui Subject: [PATCH v3 2/2] libstdc++: Use using instead of typedef in opts-common.h Date: Thu, 11 Jan 2024 02:12:02 -0800 Message-ID: <20240111101202.952224-2-kmatsui@gcc.gnu.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240111094038.876653-1-kmatsui@gcc.gnu.org> References: <20240111094038.876653-1-kmatsui@gcc.gnu.org> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: CVK8rcNL78pZtZlWptMy9h6zd4MbXH4R X-Proofpoint-GUID: CVK8rcNL78pZtZlWptMy9h6zd4MbXH4R X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-11_05,2024-01-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 mlxlogscore=948 clxscore=1034 adultscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401110083 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NEUTRAL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787786679583700405 X-GMAIL-MSGID: 1787788586113119712 libstdc++-v3/ChangeLog: * src/filesystem/ops-common.h (stat_type): Use using. Signed-off-by: Ken Matsui --- libstdc++-v3/src/filesystem/ops-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/src/filesystem/ops-common.h b/libstdc++-v3/src/filesystem/ops-common.h index d78a54754c2..d917fddbeb1 100644 --- a/libstdc++-v3/src/filesystem/ops-common.h +++ b/libstdc++-v3/src/filesystem/ops-common.h @@ -118,7 +118,7 @@ namespace __gnu_posix inline int close(int fd) { return ::_close(fd); } - typedef struct ::__stat64 stat_type; + using stat_type = struct ::__stat64; inline int stat(const wchar_t* path, stat_type* buffer) { return ::_wstat64(path, buffer); } @@ -184,7 +184,7 @@ namespace __gnu_posix using ::open; using ::close; # ifdef _GLIBCXX_HAVE_SYS_STAT_H - typedef struct ::stat stat_type; + using stat_type = struct ::stat; using ::stat; # ifdef _GLIBCXX_USE_LSTAT using ::lstat;