[COMMITTED,08/14] ada: Remove redundant parentheses inside unary operators in comments
| Message ID | 20250113105349.928779-8-poulhies@adacore.com |
|---|---|
| State | Committed |
| Commit | 34943af17e3ed7963bb8b85757e24b300aa03cce |
| Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> 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 476943857719 for <patchwork@sourceware.org>; Mon, 13 Jan 2025 11:09:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 476943857719 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=PN9kkB+/ X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id 5DF193858288 for <gcc-patches@gcc.gnu.org>; Mon, 13 Jan 2025 10:54:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5DF193858288 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 5DF193858288 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736765650; cv=none; b=c66yks1koPMkyX6TyX9MbcCWLPa42hMVwEEvz2rEjU9pRodB4dCuV5BJpry1gUKoX9HYYE/HYKeGdA5QkQ2WcOd+TKTtCMhRHSz+qeFUxDacqcdVlQLcQl07xxSIEuPoOoh+G4cUa67g4ifSK+lBmy6Ft15r6DvUIW/1twB4plU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736765650; c=relaxed/simple; bh=t0Cu9snveI6lMiAcez85xqc6SXNDT2PW/TshM3MYwmg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=BXLdBNta0w0eq3RIKQl3mQw4MPnTsDwC8jA6GJMbqdjRpRbwVPr8sjR6Kcq30yH7ykYDCVJZOProa6oh1HxC6qgwpKHTIDHOx02z3n+cget/VX8XCbkd0kG3rqswYT+ihisHosUqYnVJ4yWCxQ3MgYcbOH9mhYT34NhEMcqFFY8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5DF193858288 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-436202dd7f6so47563255e9.0 for <gcc-patches@gcc.gnu.org>; Mon, 13 Jan 2025 02:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1736765649; x=1737370449; 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=n/KosGv3Im7A0gf57RMWEDIdBjF9R2XRrwsQmn9ITik=; b=PN9kkB+/pGOSuRcjt2VrnawhoiDdGQrdsYmV1ye+vNUmoSdmJ+tHMtJlWkVLaYbzq3 tPjPUhOvQ2GeREjUfA5p1AdnEXIp/WaR2UuDqxO2ZfBaIwW+mXUYuPFOec7mz/7hdqNf gLJQ2LV8eWn7al8+rvQMS+3zqoOmXZHLQDMU+FxDZkLQM+epR+HGwyW9l9HVeVFhObV8 fWP+WQEJkk6/peZWhcYkHVCvPB5YJNBdsuBB+iwvp6IPSvio15/AtOJt0CtWpioEzzJ9 z8DiI+hNgG70G6YXzb0BZOsu/NRuKXLU+r1osRVtdDJirNuS2L8uI+Md9AH7pIV/O05f m+1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736765649; x=1737370449; 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=n/KosGv3Im7A0gf57RMWEDIdBjF9R2XRrwsQmn9ITik=; b=XulFDrno7xcKAMV75pjb//RB1ul4U+CSAn6ISL7fEJSdA4AvjZ6eWxn+9nYut58WJk Daj3KCt+97mJPSC8TER8WdK2aQEnyOFEjLmX9MPeUw0jOEQyST/UbmJrm43H3Wj+dxLn wCw9ZzKDba1gPL4Ixgf/ngRElCXewxP2xSrkw0W8NfBS8RMSupdLHSvWjBbjlHe4NZ5/ CUR2nLHt38PDFBEIPbEJbP83M2HGeqcmS4u8HQbMrQQXJYV7KwdK7ff6hmWcrW0wL7Y3 ebGtZ46HyZYN+Obmf239bbvOKUQvHiHyC7Uy2+AZW9tOSeH5fY8EiL+dpOQA9WKPOG7Z 1v2Q== X-Gm-Message-State: AOJu0YwWIoGlMxjKUUsmSHtDw2wWkSBAPsZ2q5kNDQ/VAWtZZ3SpIRPc WDC0zhBhebwOEFSxi4atOfIDzMU/yYiHgGz6g0G1uWkrFsJj18U2FD3john9GT/wExPZfGVRU3A = X-Gm-Gg: ASbGncuK61JxYp3OEr2TI2teczmL/BizjCON1kJl70/czzK4Gd67D+KzaEQ4PmbBJcn n7Ta3jw+8rfqF6/sMCS2o9w3vOdiwRW6E8L9t7sTQHdP8jWBXp98l9D3ZE5bnzOSLEjpoa6ZoJj vAoR6spdEOpu1ZspJIUJ6pgRF+4PV7DsnNrInveT2brc+CAF0kV6eozxFZ+aSkpawebJ9zs2X/g ZLSwy1vOUA0eE6/sNlGLQN56/xtj/HxwqryhLxB2oGJ0FwgcyR9IiiDHPtmwwLo8f4JlfIqSGaw wH4XP79k9aDp/gNPWyOD7OFWhMfdPH42WmAxeOxjmilnOamo/W3+Rw7Rw71/FyhaPP61ZQWe X-Google-Smtp-Source: AGHT+IHTaI/xWWnY14QI4l7WcIy3xU/gVY1c4e5pVnF72KDsY1XHJQWlB9G09rWdAG4pS66YZKTnAQ== X-Received: by 2002:adf:b197:0:b0:38a:88b8:99af with SMTP id ffacd0b85a97d-38a88b89a0amr13888951f8f.22.1736765649071; Mon, 13 Jan 2025 02:54:09 -0800 (PST) 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-38a8e3834fbsm11709138f8f.26.2025.01.13.02.54.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2025 02:54:08 -0800 (PST) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek <trojanek@adacore.com> Subject: [COMMITTED 08/14] ada: Remove redundant parentheses inside unary operators in comments Date: Mon, 13 Jan 2025 11:53:41 +0100 Message-ID: <20250113105349.928779-8-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250113105349.928779-1-poulhies@adacore.com> References: <20250113105349.928779-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
| Series |
[COMMITTED,01/14] ada: Fix parsing of raise expressions with no parens
|
|
Commit Message
Marc Poulhiès
Jan. 13, 2025, 10:53 a.m. UTC
From: Piotr Trojanek <trojanek@adacore.com>
GNAT already emits a style warning when redundant parentheses appear inside
logical and short-circuit operators. A similar warning will be soon emitted for
unary operators as well. This patch removes the redundant parentheses to avoid
future build errors.
gcc/ada/ChangeLog:
* libgnat/s-genbig.adb: Remove redundant parentheses in comments.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/libgnat/s-genbig.adb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ada/libgnat/s-genbig.adb b/gcc/ada/libgnat/s-genbig.adb index 82bf3f76fc2..2780305e042 100644 --- a/gcc/ada/libgnat/s-genbig.adb +++ b/gcc/ada/libgnat/s-genbig.adb @@ -91,7 +91,7 @@ package body System.Generic_Bignums is Remainder : out Big_Integer; Discard_Quotient : Boolean := False; Discard_Remainder : Boolean := False); - -- Returns the Quotient and Remainder from dividing abs (X) by abs (Y). The + -- Returns the Quotient and Remainder from dividing abs X by abs Y. The -- values of X and Y are not modified. If Discard_Quotient is True, then -- Quotient is undefined on return, and if Discard_Remainder is True, then -- Remainder is undefined on return. Service routine for Big_Div/Rem/Mod.