public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Marc Poulhiès" <dkm@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-2849] ada: Tune comment of routine for detecting junk names
Date: Mon, 26 Sep 2022 09:10:48 +0000 (GMT)	[thread overview]
Message-ID: <20220926091048.660223858D32@sourceware.org> (raw)

https://gcc.gnu.org/g:fb95fb2125230fb594d88a7d73b524853c6604c5

commit r13-2849-gfb95fb2125230fb594d88a7d73b524853c6604c5
Author: Piotr Trojanek <trojanek@adacore.com>
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.

                 reply	other threads:[~2022-09-26  9:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220926091048.660223858D32@sourceware.org \
    --to=dkm@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).