Message ID | 20240829130750.1651060-4-poulhies@adacore.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=ie85ThsA; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WvhTj06ltz1yfn for <incoming@patchwork.ozlabs.org>; Thu, 29 Aug 2024 23:10:17 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC79E386180C for <incoming@patchwork.ozlabs.org>; Thu, 29 Aug 2024 13:10:14 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 8582F386074B for <gcc-patches@gcc.gnu.org>; Thu, 29 Aug 2024 13:08:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8582F386074B 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 8582F386074B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::436 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724936891; cv=none; b=crpz/GLB6fjlaNUVemKu2Uq21Y0EFE+eZiR1zwjX6WQLWF8ViNG8U3Dd4ovHsr9P2WC/OdGm0g+54JEpHZ5mepYx5sPq/6+fvE6isLcgS34tD+7O6atAlFRO2UgQdo8f+jNzsJYQxYtCEY52X9lOm3ARJeryE2gph+WBLylr4KQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724936891; c=relaxed/simple; bh=jiiNLR2UdlIPeuNVM5h/3rzFELYR6yd2/uKzAG+Jq5w=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=JbnBZpgTEo5ruOdIdMvpYVGfrRz/vs2s+NA65UUoh0hSmVLOFHPB2PwXLZ/M3yS/3A/zE0N9ghAAHHeIB9UPBCxTZ9QfRaKG68CoOBACvCre6ay8CU/A+q09rher2T1K2qx8+MpX8beXOuRRujzEhGEjvSiETDq2fPaWEWQ60fA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-37196229343so439248f8f.0 for <gcc-patches@gcc.gnu.org>; Thu, 29 Aug 2024 06:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1724936887; x=1725541687; 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=6+XVNj5ksjqOS0Lov+4iOUuHDCFu0LUtzNQdIeElqGA=; b=ie85ThsAkEEAcYl0miXmjZgx0zc4rAKEzf7QlH7LbJAltBrHyCHNaLpDwLlmB4DVif FlGRhW9doOo7R66GKIG4OvKrtTuAj/5I2nUZ9t17rdw1RU1KTH/H+1zCKI7Y3QscZD+X kddgpHPmV7rnOh9zwgxSKMEWeaN0ctg3oAm3pghjzzuxomC1TWNp7PuIwz6cDzJZatIA prSuPcr2isebOVUoTSZsXqFskoL2r9kd7D8rGLBj6ofxKoxis6LAdjwuJigYRK/2Ycwm ElDEaZ1JwU5pnhHwfZahEIfzjaIFmUuSuEmNwvo+RZcpJawr5NxV0TUxWjiy7a/QQWTZ kmiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724936887; x=1725541687; 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=6+XVNj5ksjqOS0Lov+4iOUuHDCFu0LUtzNQdIeElqGA=; b=f0ym9+Ul6RXj/FJv1HyPZgUYKZ619Bwx0/CyQ4uxw1RhmkI3Xmh+3Kttr6CgmefSRq FG2YMLfPnLVOEChauwtmUktRmPAyd+FrTTs6QFoeMTEhmU+awop/apO76qOhpyyNqbKU 6CfDN8lRcZ889mbuu0CjJ14fc7Gi6f6LuBb1iaLFOa1XOXl6H5tjZRG8Bd5E9mmEXKL3 /G0bFFQcXmF/PkiEJFbYYsSymhjtAJgMhlFS+7Zp3D18T23d0kzki92dB7MnBw4Ox8Gd 0p1fZCvigQ22UbxY8F6P2ZAzcNVtMRT/HxYiogkXoaEuSkrShdHH7t1aVqKHM+UUZf9z eUUQ== X-Gm-Message-State: AOJu0Yy861bfgiHKDZzjQyjDosca7aDtfD2KSq/GWWzrMWNbpIpQZrPg KexoywcWTq6n6hCLLfsr8kxaVm7hcpfV3b/aM/f/oEPuT6znym4xOTQCux2R9snqcUHT1F5fC9U = X-Google-Smtp-Source: AGHT+IFPwQS9n4yNvcKo2hwLxgmVryaeI16TWkLn2xewFfSxMgV2ZhXDKxTPOu7oV03VZjAEgj5y3Q== X-Received: by 2002:a5d:6a88:0:b0:367:99fd:d7bb with SMTP id ffacd0b85a97d-3749b594e8cmr1702606f8f.63.1724936886514; Thu, 29 Aug 2024 06:08:06 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:5e2c:51b0:ac4a:92ca]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6deb2f5sm17074605e9.2.2024.08.29.06.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 06:08:05 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Viljar Indus <indus@adacore.com> Subject: [COMMITTED 04/17] ada: Display actual line length in line length check Date: Thu, 29 Aug 2024 15:07:34 +0200 Message-ID: <20240829130750.1651060-4-poulhies@adacore.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240829130750.1651060-1-poulhies@adacore.com> References: <20240829130750.1651060-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.7 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, 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 <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~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[COMMITTED,01/17] ada: Update documentation for conditional when constructs
|
expand
|
diff --git a/gcc/ada/styleg.adb b/gcc/ada/styleg.adb index c405dec2b33..74b629c34b3 100644 --- a/gcc/ada/styleg.adb +++ b/gcc/ada/styleg.adb @@ -38,6 +38,7 @@ with Sinfo; use Sinfo; with Sinfo.Nodes; use Sinfo.Nodes; with Sinput; use Sinput; with Stylesw; use Stylesw; +with Uintp; use Uintp; package body Styleg is @@ -672,8 +673,9 @@ package body Styleg is begin if Style_Check_Max_Line_Length then if Len > Style_Max_Line_Length then + Error_Msg_Uint_1 := UI_From_Int (Len); Error_Msg - ("(style) this line is too long?M?", + ("(style) this line is too long: ^?M?", Current_Line_Start + Source_Ptr (Style_Max_Line_Length)); end if; end if;
From: Viljar Indus <indus@adacore.com> gcc/ada/ * styleg.adb (Check_Line_Max_Length): Add the actual line length to the diagnostic message. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/styleg.adb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)