From patchwork Sat Aug 17 12:00:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dodji Seketeli X-Patchwork-Id: 96025 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4D38F386100A for ; Sat, 17 Aug 2024 12:00:51 +0000 (GMT) X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by sourceware.org (Postfix) with ESMTPS id 36CF43861831 for ; Sat, 17 Aug 2024 12:00:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36CF43861831 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=seketeli.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 36CF43861831 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4b98:dc4:8::221 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723896033; cv=none; b=e6mNCkSEaOwUQaecbTz6GdTFzoGw+bFWHQNSluc7R3oQy54hYq3xaX3PmydvKHkT1N3dzN5R7MvbNhMcHK5awJYsaeEWh82msUfRcH3Kk8kbNRMeFrz6U/NS0lHkh91/UOgs8nVqlSOylLAZEM1Aqe2VvxoBurlyrR/sTH8ls/o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723896033; c=relaxed/simple; bh=+6JcwVN0nbLoAk6hRmVxEYQbGNNSseTkAMRjp+tEqsU=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=hiWZZH+8RK8sfvKVXuF9NfufPCCU2sHXR0o3E3X4JETpwEKoSkzDCgnFLm0jg44clD3cXk9JZ/MiYQwWI69btEVahiGTD884c7hEg/DmuQsDe850OrjJYYj7slzsClSweABwv89p1faKgrlsYdSkoWBwcV3O2zWBfnOaE6he0pU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail.gandi.net (Postfix) with ESMTPSA id 9E3AD240003; Sat, 17 Aug 2024 12:00:27 +0000 (UTC) Received: by localhost (Postfix, from userid 1000) id B219E507F1C8; Sat, 17 Aug 2024 14:00:26 +0200 (CEST) From: Dodji Seketeli To: libabigail@sourceware.org Cc: dodji@redhat.com Subject: [PATCH 1/4] ir: Improve legibility of set_member_function_is_virtual Date: Sat, 17 Aug 2024 14:00:23 +0200 Message-ID: <20240817120026.459568-1-dodji@redhat.com> X-Mailer: git-send-email 2.43.5 MIME-Version: 1.0 X-GND-Sasl: dodj@seketeli.org X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, 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: libabigail@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libabigail-bounces~patchwork=sourceware.org@sourceware.org * src/abg-ir.cc (set_member_function_is_virtual): Remove useless white space and use clearer helper function. Signed-off-by: Dodji Seketeli --- src/abg-ir.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/abg-ir.cc b/src/abg-ir.cc index 542f9060..bc23254a 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -6730,8 +6730,7 @@ set_member_function_is_virtual(const function_decl_sptr& fn, bool is_virtual) if (fn) { set_member_function_is_virtual(*fn, is_virtual); - fixup_virtual_member_function - (dynamic_pointer_cast(fn)); + fixup_virtual_member_function(is_method_decl(fn)); } }