From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7871) id 660223858D32; Mon, 26 Sep 2022 09:10:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 660223858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664183448; bh=ZqIrOPhOTLqIhbyLRlWGOgvB3phMRVIJSC5ylIPUntg=; h=From:To:Subject:Date:From; b=t0Vh3NLtjwZTjkWwLZOM57gzoQRgusr6S7M9Mo1dVgSrRt7gAxgog72B1NEU1kuXB RiU1hQOwZpM39zEXutGNtyzR6vbSqSWNCsB4xgGQ46pDCp69cNGQNpRRDGdlIqiFnk ztGM8jmLzCjwHSu1bNswyUdczXasieQO9LUBZ3y0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: =?iso-8859-1?q?Marc_Poulhi=E8s?= To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-2849] ada: Tune comment of routine for detecting junk names X-Act-Checkin: gcc X-Git-Author: Piotr Trojanek X-Git-Refname: refs/heads/master X-Git-Oldrev: 6c37375640f429f68d397be67321c41b8e03fa41 X-Git-Newrev: fb95fb2125230fb594d88a7d73b524853c6604c5 Message-Id: <20220926091048.660223858D32@sourceware.org> Date: Mon, 26 Sep 2022 09:10:48 +0000 (GMT) List-Id: https://gcc.gnu.org/g:fb95fb2125230fb594d88a7d73b524853c6604c5 commit r13-2849-gfb95fb2125230fb594d88a7d73b524853c6604c5 Author: Piotr Trojanek Date: Wed Sep 7 19:11:06 2022 +0200 ada: Tune comment of routine for detecting junk names Reword comment to avoid repetition between spec and body. gcc/ada/ * sem_warn.ads (Has_Junk_Name): Reword comment. Diff: --- gcc/ada/sem_warn.ads | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gcc/ada/sem_warn.ads b/gcc/ada/sem_warn.ads index 1894f36f4b0..6681e545a35 100644 --- a/gcc/ada/sem_warn.ads +++ b/gcc/ada/sem_warn.ads @@ -257,12 +257,9 @@ package Sem_Warn is ---------------------- function Has_Junk_Name (E : Entity_Id) return Boolean; - -- Return True if the entity name contains any of the following substrings: - -- discard - -- dummy - -- ignore - -- junk - -- unused + -- Return True if the entity name contains substrings like "junk" or + -- "dummy" (see the body for the complete list). + -- -- Used to suppress warnings on names matching these patterns. The contents -- of Name_Buffer and Name_Len are destroyed by this call.