From patchwork Wed Apr 28 01:01:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 1470930 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=DNXiq4mx; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FVL234VRLz9sWc for ; Wed, 28 Apr 2021 11:02:03 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5DA1739C000A; Wed, 28 Apr 2021 01:01:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from gateway20.websitewelcome.com (gateway20.websitewelcome.com [192.185.65.13]) by sourceware.org (Postfix) with ESMTPS id 3333F3844023 for ; Wed, 28 Apr 2021 01:01:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3333F3844023 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 89AAD400F9208 for ; Tue, 27 Apr 2021 19:50:16 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id bYaBlqSvNL7DmbYaBlsb7j; Tue, 27 Apr 2021 20:01:39 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2CKzzNhPetJXKCCxKap6irBgmbMlp3QLWP9qfJpaROo=; b=DNXiq4mxAfIPG6GqDSGM38GM6N /yh2yWFgcaAjFSFud84FOiOuHuXfWa41SX+RgQzmLT2zwx1LnNWafR5SWpURYNFsB4QMuJHco1Iae SrG50nP7MOze/sPo2OMdGpy92; Received: from 97-122-70-176.hlrn.qwest.net ([97.122.70.176]:32966 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lbYaA-003tiR-U0; Tue, 27 Apr 2021 19:01:38 -0600 From: Tom Tromey To: gcc-patches@gcc.gnu.org Subject: [PATCH v2 02/21] libcc1: use "override" Date: Tue, 27 Apr 2021 19:01:00 -0600 Message-Id: <20210428010119.806184-3-tom@tromey.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210428010119.806184-1-tom@tromey.com> References: <20210428010119.806184-1-tom@tromey.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gcc.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.70.176 X-Source-L: No X-Exim-ID: 1lbYaA-003tiR-U0 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-70-176.hlrn.qwest.net (localhost.localdomain) [97.122.70.176]:32966 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3032.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP, T_FILL_THIS_FORM_SHORT, URIBL_CSS, URIBL_CSS_A 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Tromey Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" This changes libcc1 to use "override" where appropriate. libcc1/ChangeLog 2021-04-27 Tom Tromey * libcp1.cc (class compiler_triplet_regexp) (class compiler_driver_filename, class libcp1_connection): Use "override". * libcc1.cc (class compiler_triplet_regexp) (class compiler_driver_filename, class libcc1_connection): Use "override". --- libcc1/ChangeLog | 9 +++++++++ libcc1/libcc1.cc | 6 +++--- libcc1/libcp1.cc | 6 +++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/libcc1/libcc1.cc b/libcc1/libcc1.cc index 68d366a72871..2c08dabb1a49 100644 --- a/libcc1/libcc1.cc +++ b/libcc1/libcc1.cc @@ -93,7 +93,7 @@ struct libcc1 : public gcc_c_context private: std::string triplet_regexp_; public: - virtual char *find (std::string &compiler) const; + char *find (std::string &compiler) const override; compiler_triplet_regexp (libcc1 *self, std::string triplet_regexp) : compiler (self), triplet_regexp_ (triplet_regexp) { @@ -109,7 +109,7 @@ struct libcc1 : public gcc_c_context private: std::string driver_filename_; public: - virtual char *find (std::string &compiler) const; + char *find (std::string &compiler) const override; compiler_driver_filename (libcc1 *self, std::string driver_filename) : compiler (self), driver_filename_ (driver_filename) { @@ -132,7 +132,7 @@ public: { } - virtual void print (const char *buf) + void print (const char *buf) override { back_ptr->print (buf); } diff --git a/libcc1/libcp1.cc b/libcc1/libcp1.cc index 34d89579c31c..fb91125ef0cf 100644 --- a/libcc1/libcp1.cc +++ b/libcc1/libcp1.cc @@ -94,7 +94,7 @@ struct libcp1 : public gcc_cp_context private: std::string triplet_regexp_; public: - virtual char *find (std::string &compiler) const; + char *find (std::string &compiler) const override; compiler_triplet_regexp (libcp1 *self, std::string triplet_regexp) : compiler (self), triplet_regexp_ (triplet_regexp) { @@ -110,7 +110,7 @@ struct libcp1 : public gcc_cp_context private: std::string driver_filename_; public: - virtual char *find (std::string &compiler) const; + char *find (std::string &compiler) const override; compiler_driver_filename (libcp1 *self, std::string driver_filename) : compiler (self), driver_filename_ (driver_filename) { @@ -133,7 +133,7 @@ public: { } - virtual void print (const char *buf) + void print (const char *buf) override { back_ptr->print (buf); }