From patchwork Thu Sep 11 09:18:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 120047 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 BC726385840B for ; Thu, 11 Sep 2025 09:36:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC726385840B Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Gm3URa83 X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id A50503858C53 for ; Thu, 11 Sep 2025 09:19:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A50503858C53 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A50503858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::335 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757582374; cv=none; b=gg6p9ZhvTnww4WrAvs3/g1XIcvRVf6Rynj+UIcHZfgPYsNsWgwySmki0alxdfLLwLHSmVYATJax7Kq4KAIBpyU2BGpTvUHQqHKBJB9D0qsBLLqjsw21r69sZMR+BWNEbfm1EGTyRNvvNNpi+/QnebIKRwfPqr7SsABzPRPCgfPI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757582374; c=relaxed/simple; bh=agMRg5Y/vqJI++kojMu2gsSg/BzTkZ66iZQwlLZ/BLU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=dbFa7tAfXua31jPEi977urn4DTCoNcutbBzpDognl9x/2iqWU4rLsMXsGuVIxGZEogUXOdYLsRwIYz7MfpKmmfp1g0JewjjxZvKCwvBkSVcFe4pXmNnHn476VsM4SCaoa/2g372wnEH4vWAS4Mca1pVQ546Afe45NA5xqT0WZLs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A50503858C53 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-45b9c35bc0aso4656945e9.2 for ; Thu, 11 Sep 2025 02:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1757582373; x=1758187173; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/Ldrv+fUPNimv9GFQubsA67l/p8Iwq3D/x5izCeO74A=; b=Gm3URa83+f5zatc0p3PecPT1rXZya8UxkRxlvtfxLPktGwHT2YwMSGpUrfk7/0cTQ8 wU7byC7IGvXImaDp89q4HL3Pkl/WvZCM9esm554KAC1l6nJIdzq2lW/q88rP2Toh3vcA 3l0vPhQt+RafiZ5gZSU/MMpYJlnv9qlnsH6mVa04wLhKMMCgt+FyyE70tuk3DX4Flo4x k9BTAMAhY+qymU46o3GkyOa/9QnsYWAQGCdszAGnkaB2KG9k6hNwrQrcQlYG4QW3T0SN uuofjw/+c3StJyBnn6W342xYCZbqyax2TdE1UQcTatjfXYl4XlE9IAQGFpa1APKOgj/8 ya7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757582373; x=1758187173; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/Ldrv+fUPN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yejADxUolYjzvzQwv1SaiCgiMlViGTfPfOGnzXOmos/xoxRuiQ== X-Received: by 2002:a05:600c:3b97:b0:45d:edf6:367c with SMTP id 5b1f17b1804b1-45e41a18c99mr2763325e9.30.1757582373047; Thu, 11 Sep 2025 02:19:33 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3e7607cd27dsm1649971f8f.41.2025.09.11.02.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Sep 2025 02:19:32 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Viljar Indus Subject: [COMMITTED 22/31] ada: Update coding style Date: Thu, 11 Sep 2025 11:18:54 +0200 Message-ID: <20250911091904.1505690-22-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250911091904.1505690-1-poulhies@adacore.com> References: <20250911091904.1505690-1-poulhies@adacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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~patchwork=sourceware.org@gcc.gnu.org From: Viljar Indus gcc/ada/ChangeLog: * ghost.adb (Check_Ghost_Policy): Update coding style. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/ghost.adb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gcc/ada/ghost.adb b/gcc/ada/ghost.adb index 0918d27daeb7..4f1a0d9d6a46 100644 --- a/gcc/ada/ghost.adb +++ b/gcc/ada/ghost.adb @@ -857,11 +857,11 @@ package body Ghost is and then Applic_Policy = Ignore and then Known_To_Be_Assigned (Ref) then - Error_Msg_N (Ghost_Policy_Error_Msg, Ref); + Error_Msg_N (Ghost_Policy_Error_Msg, Ref); Error_Msg_Sloc := Sloc (Id); Error_Msg_NE ("\& declared # with ghost policy `Check`", Ref, Id); Error_Msg_Sloc := Sloc (Ref); - Error_Msg_NE ("\& used # with ghost policy `Ignore`", Ref, Id); + Error_Msg_NE ("\& used # with ghost policy `Ignore`", Ref, Id); end if; -- A ghost entity E shall not be referenced within an aspect @@ -886,13 +886,12 @@ package body Ghost is return; end if; - if Is_Ignored_Ghost_Entity (Id) and then Applic_Policy = Check - then - Error_Msg_N (Ghost_Policy_Error_Msg, Ref); + if Is_Ignored_Ghost_Entity (Id) and then Applic_Policy = Check then + Error_Msg_N (Ghost_Policy_Error_Msg, Ref); Error_Msg_Sloc := Sloc (Id); Error_Msg_NE ("\& declared # with ghost policy `Ignore`", Ref, Id); Error_Msg_Sloc := Sloc (Ref); - Error_Msg_NE ("\& used # with ghost policy `Check`", Ref, Id); + Error_Msg_NE ("\& used # with ghost policy `Check`", Ref, Id); end if; end Check_Ghost_Policy;